fix: Fix provided for using Default Azure credentials based on environment#236
Merged
Prajwal-Microsoft merged 2 commits intomainfrom Oct 21, 2025
Merged
fix: Fix provided for using Default Azure credentials based on environment#236Prajwal-Microsoft merged 2 commits intomainfrom
Prajwal-Microsoft merged 2 commits intomainfrom
Conversation
Avijit-Microsoft
approved these changes
Oct 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request updates Azure authentication across multiple services and components to use
DefaultAzureCredentialinstead ofManagedIdentityCredential, and standardizes the environment variable configuration for Azure credentials. It also upgrades theAzure.IdentityNuGet package to version 1.16.0 throughout the solution. These changes improve flexibility and compatibility with different Azure authentication scenarios.Authentication Modernization:
ManagedIdentityCredentialwithDefaultAzureCredential(DefaultAzureCredential.DefaultEnvironmentVariableName)in service constructors and client builders, includingBlobServiceClient,QueueClient,DocumentAnalysisClient,SearchIndexClient,OpenAIClient, and other Azure SDK clients. This enables support for multiple authentication mechanisms and better local development experience. [1] [2] [3] [4] [5] [6] [7] [8]Dependency Upgrades:
Azure.IdentityNuGet package from versions 1.12.0/1.13.2 to 1.16.0 in all affected.csprojfiles for host, storage, web client, and kernel memory extensions. [1] [2] [3] [4] [5] [6] [7] [8] [9]Environment Variable Standardization:
AZURE_TOKEN_CREDENTIALSenvironment variable toManagedIdentityCredentialin relevant Dockerfiles and set it todevfor local development inProgram.cs. This ensures consistent credential selection across environments. [1] [2] [3]These updates collectively improve Azure authentication reliability, developer experience, and maintainability across the codebase.
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information