Hello Wallison Ferreira,
Thanks for posting your question in the Microsoft Q&A forum.
Ensure you have the latest version of Azure CLI installed. You can update it using:
az upgrade
Clear your Azure CLI token cache
az account clear
Try logging in with the interactive browser method
az login
If the interactive login doesn't work, try using device code authentication
az login --use-device-code
If you're still facing issues, check if your Azure AD application has the correct permissions and is properly configured for the Azure OpenAI service For the
az account get-access-token
command, ensure you're using the correct resource URL.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful