When using the Azure Identity library, it's recommended to only use DefaultAzureCredential for testing purposes. For example, the C++ docs state the following:
Note: DefaultAzureCredential is intended to simplify getting started with the SDK by handling common scenarios with reasonable default behaviors. It is not recommended to use it in production. Developers who want more control or whose scenario isn't served by the default settings should use other credential types.
Thus, the documentation should be updated to show the proper usage of WorkloadIdentityCredential in addition to or instead of the DefaultAzureCredential.
Type of issue
Missing information
Feedback
When using the Azure Identity library, it's recommended to only use
DefaultAzureCredential
for testing purposes. For example, the C++ docs state the following:Thus, the documentation should be updated to show the proper usage of
WorkloadIdentityCredential
in addition to or instead of theDefaultAzureCredential
.Page URL
https://learn.microsoft.com/en-us/azure/aks/workload-identity-overview?tabs=dotnet
Content source URL
https://github.com/MicrosoftDocs/azure-aks-docs/blob/main/articles/aks/workload-identity-overview.md
Author
@tamram
Document Id
f1e18be4-3bb1-89fb-42d7-0735744ee734