Skip to content

Azure Local Provisioning needs az CLI installed #2003

@eerhardt

Description

@eerhardt

The requirements at

https://learn.microsoft.com/en-us/dotnet/aspire/deployment/azure/local-provisioning#requirements

are incomplete. The machine needs the az CLI installed. When it isn't installed, I get the following error:

2024-10-31T11:27:58 Provisioning openai...
2024-10-31T11:27:58
 Error provisioning openai.
Azure.Identity.CredentialUnavailableException: DefaultAzureCredential failed to retrieve a token from the included credentials. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/defaultazurecredential/troubleshoot
- EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot
- Visual Studio Token provider can't be accessed at C:\Users\eerhardt\AppData\Local\.IdentityService\AzureServiceAuth\tokenprovider.json
- Azure CLI not installed
- Azure Developer CLI could not be found.
 ---> System.AggregateException: Multiple exceptions were encountered while attempting to authenticate. (EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot) (Visual Studio Token provider can't be accessed at C:\Users\eerhardt\AppData\Local\.IdentityService\AzureServiceAuth\tokenprovider.json) (Azure CLI not installed) (Azure Developer CLI could not be found.)
 ---> Azure.Identity.CredentialUnavailableException: EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot
   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage, Boolean isCredentialUnavailable)
   at Azure.Identity.EnvironmentCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.EnvironmentCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)

Associated WorkItem - 336337

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.Pri1High priority, do before Pri2 and Pri3doc-bugProblem with the content; needs to be fixed [org][type][category]in-prokr-healthokr-qualityContent-health KR: Concerns article defects/freshness or build warnings.

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions