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 b05849f commit 1bc20efCopy full SHA for 1bc20ef
docs/azure/sdk/snippets/authentication/local-dev-service-principal/Program.cs
@@ -54,6 +54,9 @@ void registerUsingServicePrincipal(WebApplicationBuilder builder)
54
clientBuilder.AddBlobServiceClient(
55
new Uri("https://<account-name>.blob.core.windows.net"));
56
57
+ // By default, the client builder creates a DefaultAzureCredential instance on your
58
+ // behalf. For production use, it is strongly recommended that you register an
59
+ // instance of the specific credential type with the builder.
60
clientBuilder.UseCredential(new ClientSecretCredential(tenantId, clientId, clientSecret));
61
});
62
#endregion snippet_ClientSecretCredential_UseCredential
0 commit comments