Skip to content

Commit b05849f

Browse files
scottaddiejsquire
andauthored
Apply suggestion from @jsquire
Co-authored-by: Jesse Squire <[email protected]>
1 parent 9dafb48 commit b05849f

File tree

1 file changed

+4
-1
lines changed
  • docs/azure/sdk/snippets/authentication/local-dev-account

1 file changed

+4
-1
lines changed

docs/azure/sdk/snippets/authentication/local-dev-account/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ void registerUsingServicePrincipal(WebApplicationBuilder builder)
5050
clientBuilder.AddBlobServiceClient(
5151
new Uri("https://<account-name>.blob.core.windows.net"));
5252

53-
clientBuilder.UseCredential(new DefaultAzureCredential());
53+
// 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());
5457
});
5558
#endregion snippet_DefaultAzureCredential_UseCredential
5659
}

0 commit comments

Comments
 (0)