File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/azsdk-cli/Azure.Sdk.Tools.Cli/Services/Azure Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ public TokenCredential GetCredential(string? tenantId = null)
2424 try
2525 {
2626 return new ChainedTokenCredential (
27- new ManagedIdentityCredential ( clientId : Environment . GetEnvironmentVariable ( "AZURE_CLIENT_ID" ) ) ,
2827 new AzureCliCredential ( new AzureCliCredentialOptions { TenantId = tenantId } ) ,
2928 new AzurePowerShellCredential ( new AzurePowerShellCredentialOptions { TenantId = tenantId } ) ,
3029 new AzureDeveloperCliCredential ( new AzureDeveloperCliCredentialOptions { TenantId = tenantId } ) ,
31- new VisualStudioCredential ( new VisualStudioCredentialOptions { TenantId = tenantId } )
30+ new VisualStudioCredential ( new VisualStudioCredentialOptions { TenantId = tenantId } ) ,
31+ new ManagedIdentityCredential ( clientId : Environment . GetEnvironmentVariable ( "AZURE_CLIENT_ID" ) )
3232 ) ;
3333 }
3434 catch ( CredentialUnavailableException )
You can’t perform that action at this time.
0 commit comments