From 9b3e01d284b0ae67033146b64091e49260c57803 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Tue, 16 Jan 2024 14:36:40 -0500 Subject: [PATCH] phrasing --- .../create-token-credentials-from-configuration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/azure/sdk/authentication/create-token-credentials-from-configuration.md b/docs/azure/sdk/authentication/create-token-credentials-from-configuration.md index cfb572e4d532c..1693e91156214 100644 --- a/docs/azure/sdk/authentication/create-token-credentials-from-configuration.md +++ b/docs/azure/sdk/authentication/create-token-credentials-from-configuration.md @@ -8,11 +8,11 @@ ms.date: 1/16/2024 # Create credential types using configuration files -The `Microsoft.Extensions.Azure` library supports creating different types from values defined in _appsettings.json_ and other configuration files. This article describes which `TokenCredential` types can be created and how to configure the required values. +The `Microsoft.Extensions.Azure` library supports creating different types from values defined in _appsettings.json_ and other configuration files. This article describes the support for different `TokenCredential` types and how to configure the required values for each type. ## Support for authentication credentials through configuration -The `Microsoft.Extensions.Azure` library can automatically create and provide Azure service clients with a `TokenCredential` class by searching _appsettings.json_ or other configuration files for credentials. The configuration files are searched using the default `IConfiguration` service for .NET. This approach allows developers to explicitly set credential values across different environments through configuration rather than through app code directly. +The `Microsoft.Extensions.Azure` library can automatically provide Azure service clients with a `TokenCredential` class by searching _appsettings.json_ or other configuration files for credential values using the default `IConfiguration` service for .NET. This approach allows developers to explicitly set credential values across different environments through configuration rather than through app code directly. The following credential types are supported via configuration: @@ -22,14 +22,14 @@ The following credential types are supported via configuration: * * -The configuration file values are only used if the service client doesn't* explicitly set an authentication mechanism. For example, the following code initiates a search for values in _appsettings.json_ because the is created without specifying any credentials: +The configuration file values are only used if the service client doesn't* explicitly set an authentication mechanism. For example, the following code initiates a search for values in _appsettings.json_ because the does not specify any credentials during instantiation: ```csharp // No TokenCredential or access key provided - configuration files will be searched var blobServiceClient = new BlobServiceClient(""); ``` -However, the following code does *not* initiate a search for configuration values in _appsettings.json_, because `DefaultAzureCredential` is already provided directly: +In comparison, the following code provides `DefaultAzureCredential` directly and therefore does *not* initiate a search for configuration values in _appsettings.json_: ```csharp // Configuration files will not be searched - DefaultAzureCredential is already provided