We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dafb48 commit b05849fCopy full SHA for b05849f
docs/azure/sdk/snippets/authentication/local-dev-account/Program.cs
@@ -50,7 +50,10 @@ void registerUsingServicePrincipal(WebApplicationBuilder builder)
50
clientBuilder.AddBlobServiceClient(
51
new Uri("https://<account-name>.blob.core.windows.net"));
52
53
- clientBuilder.UseCredential(new DefaultAzureCredential());
+ // By default, the client builder creates a DefaultAzureCredential instance on your
54
+ // behalf. If you want to customize the credential used for Azure clients, you can
55
+ // register a custom instance with the builder.
56
+ clientBuilder.UseCredential(new AzureCliCredential());
57
});
58
#endregion snippet_DefaultAzureCredential_UseCredential
59
}
0 commit comments