diff --git a/docs/azure/sdk/authentication/credential-chains.md b/docs/azure/sdk/authentication/credential-chains.md index 225a19390c9c5..a8edd152191ec 100644 --- a/docs/azure/sdk/authentication/credential-chains.md +++ b/docs/azure/sdk/authentication/credential-chains.md @@ -2,7 +2,7 @@ title: 'Credential chains in the Azure Identity library for .NET' description: 'This article describes the DefaultAzureCredential and ChainedTokenCredential classes in the Azure Identity library.' ms.topic: concept-article -ms.date: 05/30/2025 +ms.date: 08/13/2025 --- # Credential chains in the Azure Identity library for .NET @@ -13,7 +13,7 @@ The Azure Identity library provides *credentials*—public classes derived f At runtime, a credential chain attempts to authenticate using the sequence's first credential. If that credential fails to acquire an access token, the next credential in the sequence is attempted, and so on, until an access token is successfully obtained. The following sequence diagram illustrates this behavior: -:::image type="content" source="../media/mermaidjs/ChainSequence.svg" alt-text="Credential chain sequence diagram"::: +:::image type="content" source="../media/mermaidjs/chain-sequence.svg" alt-text="Credential chain sequence diagram"::: ## Why use credential chains @@ -37,7 +37,7 @@ There are two disparate philosophies to credential chaining: [DefaultAzureCredential](/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet&preserve-view=true) is an opinionated, preconfigured chain of credentials. It's designed to support many environments, along with the most common authentication flows and developer tools. In graphical form, the underlying chain looks like this: -:::image type="content" source="../media/mermaidjs/DefaultAzureCredentialAuthFlow.svg" alt-text="DefaultAzureCredential auth flowchart"::: +:::image type="content" source="../media/mermaidjs/default-azure-credential-authentication-flow-inline.svg" alt-text="Diagram that shows DefaultAzureCredential authentication flow." lightbox="../media/mermaidjs/default-azure-credential-authentication-flow-expanded.png"::: The order in which `DefaultAzureCredential` attempts credentials follows. @@ -47,19 +47,24 @@ The order in which `DefaultAzureCredential` attempts credentials follows. | 2 | [Workload Identity][wi-cred] |If the app is deployed to an Azure host with Workload Identity enabled, authenticate that account. | Yes | | 3 | [Managed Identity][mi-cred] |If the app is deployed to an Azure host with Managed Identity enabled, authenticate the app to Azure using that Managed Identity. | Yes | | 4 | [Visual Studio][vs-cred] |If the developer authenticated to Azure by logging into Visual Studio, authenticate the app to Azure using that same account. | Yes | -| 5 | [Azure CLI][az-cred] |If the developer authenticated to Azure using Azure CLI's `az login` command, authenticate the app to Azure using that same account. | Yes | -| 6 | [Azure PowerShell][pwsh-cred] |If the developer authenticated to Azure using Azure PowerShell's `Connect-AzAccount` cmdlet, authenticate the app to Azure using that same account. | Yes | -| 7 | [Azure Developer CLI][azd-cred] |If the developer authenticated to Azure using Azure Developer CLI's `azd auth login` command, authenticate with that account. | Yes | -| 8 | [Interactive browser][int-cred] |If enabled, interactively authenticate the developer via the current system's default browser. | No | +| 5 | [Visual Studio Code][vsc-cred] |If the developer authenticated via Visual Studio Code's [Azure Resources extension][vsc-ext] and the [Azure.Identity.Broker package][broker-pkg] is installed, authenticate that account. | Yes | +| 6 | [Azure CLI][az-cred] |If the developer authenticated to Azure using Azure CLI's `az login` command, authenticate the app to Azure using that same account. | Yes | +| 7 | [Azure PowerShell][pwsh-cred] |If the developer authenticated to Azure using Azure PowerShell's `Connect-AzAccount` cmdlet, authenticate the app to Azure using that same account. | Yes | +| 8 | [Azure Developer CLI][azd-cred] |If the developer authenticated to Azure using Azure Developer CLI's `azd auth login` command, authenticate with that account. | Yes | +| 9 | [Interactive browser][int-cred] |If enabled, interactively authenticate the developer via the current system's default browser. | No | +| 10 | [Broker][int-cred] |Authenticates using the default account logged into the OS via a broker. Requires that the [Azure.Identity.Broker package][broker-pkg] is installed. | Yes | [env-cred]: /dotnet/api/azure.identity.environmentcredential?view=azure-dotnet&preserve-view=true [wi-cred]: /dotnet/api/azure.identity.workloadidentitycredential?view=azure-dotnet&preserve-view=true [mi-cred]: /dotnet/api/azure.identity.managedidentitycredential?view=azure-dotnet&preserve-view=true [vs-cred]: /dotnet/api/azure.identity.visualstudiocredential?view=azure-dotnet&preserve-view=true +[vsc-cred]: /dotnet/api/azure.identity.visualstudiocodecredential?view=azure-dotnet&preserve-view=true [az-cred]: /dotnet/api/azure.identity.azureclicredential?view=azure-dotnet&preserve-view=true [pwsh-cred]: /dotnet/api/azure.identity.azurepowershellcredential?view=azure-dotnet&preserve-view=true [azd-cred]: /dotnet/api/azure.identity.azuredeveloperclicredential?view=azure-dotnet&preserve-view=true [int-cred]: /dotnet/api/azure.identity.interactivebrowsercredential?view=azure-dotnet&preserve-view=true +[vsc-ext]: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureresourcegroups +[broker-pkg]: https://www.nuget.org/packages/Azure.Identity.Broker In its simplest form, you can use the parameterless version of `DefaultAzureCredential` as follows: @@ -70,7 +75,7 @@ In its simplest form, you can use the parameterless version of `DefaultAzureCred ### How to customize DefaultAzureCredential -The following sections describe strategies for omitting credentials from the chain. +The following sections describe strategies for controlling which credentials are included in the chain. #### Exclude an individual credential @@ -80,7 +85,7 @@ To exclude an individual credential from `DefaultAzureCredential`, use the corre In the preceding code sample, `EnvironmentCredential`, `ManagedIdentityCredential`, and `WorkloadIdentityCredential` are removed from the credential chain. As a result, the first credential to be attempted is `VisualStudioCredential`. The modified chain contains only development-time credentials and looks like this: -:::image type="content" source="../media/mermaidjs/DefaultAzureCredentialExcludes.svg" alt-text="DefaultAzureCredential using Excludes properties"::: +:::image type="content" source="../media/mermaidjs/default-azure-credential-excludes.svg" alt-text="DefaultAzureCredential using Excludes properties"::: > [!NOTE] > `InteractiveBrowserCredential` is excluded by default and therefore isn't shown in the preceding diagram. To include `InteractiveBrowserCredential`, either pass `true` to constructor or set property to `false`. @@ -101,15 +106,33 @@ As more `Exclude`-prefixed properties are set to `true` (credential exclusions a To exclude all `Developer tool` or `Deployed service` credentials, set environment variable `AZURE_TOKEN_CREDENTIALS` to `prod` or `dev`, respectively. When a value of `prod` is used, the underlying credential chain looks as follows: -:::image type="content" source="../media/mermaidjs/DefaultAzureCredentialEnvVarProd.svg" alt-text="DefaultAzureCredential with AZURE_TOKEN_CREDENTIALS set to 'prod'"::: +:::image type="content" source="../media/mermaidjs/default-azure-credential-environment-variable-production.svg" alt-text="DefaultAzureCredential with AZURE_TOKEN_CREDENTIALS set to 'prod'"::: When a value of `dev` is used, the chain looks as follows: -:::image type="content" source="../media/mermaidjs/DefaultAzureCredentialEnvVarDev.svg" alt-text="DefaultAzureCredential with AZURE_TOKEN_CREDENTIALS set to 'dev'"::: +:::image type="content" source="../media/mermaidjs/default-azure-credential-environment-variable-development.svg" alt-text="DefaultAzureCredential with AZURE_TOKEN_CREDENTIALS set to 'dev'"::: > [!IMPORTANT] > The `AZURE_TOKEN_CREDENTIALS` environment variable is supported in `Azure.Identity` package versions 1.14.0 and later. +#### Use a specific credential + +To exclude all credentials except for one, set environment variable `AZURE_TOKEN_CREDENTIALS` to the credential name. For example, you can reduce the `DefaultAzureCredential` chain to `VisualStudioCredential` by setting `AZURE_TOKEN_CREDENTIALS` to `VisualStudioCredential`. The string comparison is performed in a case-insensitive manner. Valid string values for the environment variable include: + +- `AzureCliCredential` +- `AzureDeveloperCliCredential` +- `AzurePowerShellCredential` +- `BrokerCredential` +- `EnvironmentCredential` +- `InteractiveBrowserCredential` +- `ManagedIdentityCredential` +- `VisualStudioCredential` +- `VisualStudioCodeCredential` +- `WorkloadIdentityCredential` + +> [!IMPORTANT] +> The `AZURE_TOKEN_CREDENTIALS` environment variable supports individual credential names in `Azure.Identity` package versions 1.15.0 and later. + ## ChainedTokenCredential overview [ChainedTokenCredential](/dotnet/api/azure.identity.chainedtokencredential?view=azure-dotnet&preserve-view=true) is an empty chain to which you add credentials to suit your app's needs. For example: @@ -118,7 +141,7 @@ When a value of `dev` is used, the chain looks as follows: The preceding code sample creates a tailored credential chain comprised of two development-time credentials. `AzurePowerShellCredential` is attempted first, followed by `VisualStudioCredential`, if necessary. In graphical form, the chain looks like this: -:::image type="content" source="../media/mermaidjs/ChainedTokenCredentialAuthFlow.svg" alt-text="ChainedTokenCredential"::: +:::image type="content" source="../media/mermaidjs/chained-token-credential-authentication-flow.svg" alt-text="ChainedTokenCredential"::: > [!TIP] > For improved performance, optimize credential ordering in `ChainedTokenCredential` from most to least used credential. diff --git a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialAuthFlow.svg b/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialAuthFlow.svg deleted file mode 100644 index f60052a3a0662..0000000000000 --- a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialAuthFlow.svg +++ /dev/null @@ -1 +0,0 @@ -DefaultAzureCredential authentication flow;Flowchart showing the credential chain implemented by DefaultAzureCredential;
CREDENTIALS
Interactive browser
Environment
Workload Identity
Managed Identity
Visual Studio
Azure CLI
Azure PowerShell
Azure Developer CLI
CREDENTIAL TYPES
Interactive
Deployed service
Developer tool
\ No newline at end of file diff --git a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarDev.svg b/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarDev.svg deleted file mode 100644 index 026493af91987..0000000000000 --- a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarDev.svg +++ /dev/null @@ -1 +0,0 @@ -DefaultAzureCredential authentication flow without deployed service credentials;Flowchart showing the credential chain implemented by DefaultAzureCredential when AZURE_TOKEN_CREDENTIALS is set to "dev";
Visual Studio
Azure CLI
Azure PowerShell
Azure Developer CLI
\ No newline at end of file diff --git a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialExcludes.svg b/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialExcludes.svg deleted file mode 100644 index 00a06628cd569..0000000000000 --- a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialExcludes.svg +++ /dev/null @@ -1 +0,0 @@ -
Visual Studio
Azure CLI
Azure PowerShell
Azure Developer CLI
\ No newline at end of file diff --git a/docs/azure/sdk/media/mermaidjs/ChainSequence.md b/docs/azure/sdk/media/mermaidjs/chain-sequence.md similarity index 89% rename from docs/azure/sdk/media/mermaidjs/ChainSequence.md rename to docs/azure/sdk/media/mermaidjs/chain-sequence.md index 10982f7638ef1..34263ea94ebba 100644 --- a/docs/azure/sdk/media/mermaidjs/ChainSequence.md +++ b/docs/azure/sdk/media/mermaidjs/chain-sequence.md @@ -8,7 +8,7 @@ ms.date: 08/07/2024 %% ======================= %% 1. Install mermaid CLI v10.9.1 (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md): %% npm i -g @mermaid-js/mermaid-cli@10.9.1 -%% 2. Run command: mmdc -i ChainSequence.md -o ../../media/mermaidjs/ChainSequence.svg +%% 2. Run command: mmdc -i chain-sequence.md -o ../../media/mermaidjs/chain-sequence.svg sequenceDiagram autonumber; diff --git a/docs/azure/sdk/media/mermaidjs/ChainSequence.svg b/docs/azure/sdk/media/mermaidjs/chain-sequence.svg similarity index 100% rename from docs/azure/sdk/media/mermaidjs/ChainSequence.svg rename to docs/azure/sdk/media/mermaidjs/chain-sequence.svg diff --git a/docs/azure/sdk/media/mermaidjs/ChainedTokenCredentialAuthFlow.md b/docs/azure/sdk/media/mermaidjs/chained-token-credential-authentication-flow.md similarity index 80% rename from docs/azure/sdk/media/mermaidjs/ChainedTokenCredentialAuthFlow.md rename to docs/azure/sdk/media/mermaidjs/chained-token-credential-authentication-flow.md index 8c2309d589e15..c64cb398eeb94 100644 --- a/docs/azure/sdk/media/mermaidjs/ChainedTokenCredentialAuthFlow.md +++ b/docs/azure/sdk/media/mermaidjs/chained-token-credential-authentication-flow.md @@ -8,7 +8,7 @@ ms.date: 08/07/2024 %% ======================= %% 1. Install mermaid CLI v10.9.1 (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md): %% npm i -g @mermaid-js/mermaid-cli@10.9.1 -%% 2. Run command: mmdc -i ChainedTokenCredentialAuthFlow.md -o ../../media/mermaidjs/ChainedTokenCredentialAuthFlow.svg +%% 2. Run command: mmdc -i chained-token-credential-authentication-flow.md -o ../../media/mermaidjs/chained-token-credential-authentication-flow.svg %%{ init: { diff --git a/docs/azure/sdk/media/mermaidjs/ChainedTokenCredentialAuthFlow.svg b/docs/azure/sdk/media/mermaidjs/chained-token-credential-authentication-flow.svg similarity index 100% rename from docs/azure/sdk/media/mermaidjs/ChainedTokenCredentialAuthFlow.svg rename to docs/azure/sdk/media/mermaidjs/chained-token-credential-authentication-flow.svg diff --git a/docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow-expanded.png b/docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow-expanded.png new file mode 100644 index 0000000000000..a23ccca289781 Binary files /dev/null and b/docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow-expanded.png differ diff --git a/docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow-inline.svg b/docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow-inline.svg new file mode 100644 index 0000000000000..1ae54d26a09b6 --- /dev/null +++ b/docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow-inline.svg @@ -0,0 +1 @@ +DefaultAzureCredential authentication flow;Flowchart showing the credential chain implemented by DefaultAzureCredential;
CREDENTIALS
Broker
Environment
Workload Identity
Managed Identity
Visual Studio
Visual Studio Code
Azure CLI
Azure PowerShell
Azure Developer CLI
Interactive browser
CREDENTIAL TYPES
Interactive
Deployed service
Developer tool
\ No newline at end of file diff --git a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialAuthFlow.md b/docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow.md similarity index 67% rename from docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialAuthFlow.md rename to docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow.md index 377eb05685e99..4b5b98c6eeea9 100644 --- a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialAuthFlow.md +++ b/docs/azure/sdk/media/mermaidjs/default-azure-credential-authentication-flow.md @@ -1,6 +1,6 @@ --- ms.topic: include -ms.date: 08/07/2024 +ms.date: 08/13/2025 --- ```mermaid @@ -8,7 +8,9 @@ ms.date: 08/07/2024 %% ======================= %% 1. Install mermaid CLI v10.9.1 (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md): %% npm i -g @mermaid-js/mermaid-cli@10.9.1 -%% 2. Run command: mmdc -i DefaultAzureCredentialAuthFlow.md -o ../../media/mermaidjs/DefaultAzureCredentialAuthFlow.svg +%% 2. Run commands: +%% mmdc -i default-azure-credential-authentication-flow.md -o ../../media/mermaidjs/default-azure-credential-authentication-flow-inline.svg +%% mmdc -i default-azure-credential-authentication-flow.md -o ../../media/mermaidjs/default-azure-credential-authentication-flow-expanded.png -w 1156 %%{ init: { @@ -31,7 +33,16 @@ flowchart LR; subgraph CREDENTIALS; direction LR; - A(Environment):::deployed --> B(Workload Identity):::deployed --> C(Managed Identity):::deployed --> D(Visual Studio):::developer --> E(Azure CLI):::developer --> F(Azure PowerShell):::developer --> G(Azure Developer CLI):::developer --> H(Interactive browser):::interactive; + A(Environment):::deployed --> + B(Workload Identity):::deployed --> + C(Managed Identity):::deployed --> + D(Visual Studio):::developer --> + E(Visual Studio Code):::developer --> + F(Azure CLI):::developer --> + G(Azure PowerShell):::developer --> + H(Azure Developer CLI):::developer --> + I(Interactive browser):::interactive --> + J(Broker):::developer; end; %% Define styles for credential type boxes @@ -44,8 +55,10 @@ flowchart LR; click B "https://learn.microsoft.com/dotnet/api/azure.identity.workloadidentitycredential?view=azure-dotnet" _blank; click C "https://learn.microsoft.com/dotnet/api/azure.identity.managedidentitycredential?view=azure-dotnet" _blank; click D "https://learn.microsoft.com/dotnet/api/azure.identity.visualstudiocredential?view=azure-dotnet" _blank; - click E "https://learn.microsoft.com/dotnet/api/azure.identity.azureclicredential?view=azure-dotnet" _blank; - click F "https://learn.microsoft.com/dotnet/api/azure.identity.azurepowershellcredential?view=azure-dotnet" _blank; - click G "https://learn.microsoft.com/dotnet/api/azure.identity.azuredeveloperclicredential?view=azure-dotnet" _blank - click H "https://learn.microsoft.com/dotnet/api/azure.identity.interactivebrowsercredential?view=azure-dotnet" _blank; + click E "https://learn.microsoft.com/dotnet/api/azure.identity.visualstudiocodecredential?view=azure-dotnet" _blank; + click F "https://learn.microsoft.com/dotnet/api/azure.identity.azureclicredential?view=azure-dotnet" _blank; + click G "https://learn.microsoft.com/dotnet/api/azure.identity.azurepowershellcredential?view=azure-dotnet" _blank; + click H "https://learn.microsoft.com/dotnet/api/azure.identity.azuredeveloperclicredential?view=azure-dotnet" _blank + click I "https://learn.microsoft.com/dotnet/api/azure.identity.interactivebrowsercredential?view=azure-dotnet" _blank; + click J "https://learn.microsoft.com/dotnet/api/azure.identity.interactivebrowsercredential?view=azure-dotnet" _blank; ``` diff --git a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarDev.md b/docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-development.md similarity index 66% rename from docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarDev.md rename to docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-development.md index 000a536963b79..3407e948165d8 100644 --- a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarDev.md +++ b/docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-development.md @@ -1,6 +1,6 @@ --- ms.topic: include -ms.date: 05/30/2025 +ms.date: 08/13/2025 --- ```mermaid @@ -8,7 +8,7 @@ ms.date: 05/30/2025 %% ======================= %% 1. Install mermaid CLI v10.9.1 (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md): %% npm i -g @mermaid-js/mermaid-cli@10.9.1 -%% 2. Run command: mmdc -i DefaultAzureCredentialEnvVarDev.md -o ../../media/mermaidjs/DefaultAzureCredentialEnvVarDev.svg +%% 2. Run command: mmdc -i default-azure-credential-environment-variable-development.md -o ../../media/mermaidjs/default-azure-credential-environment-variable-development.svg %%{ init: { @@ -24,7 +24,11 @@ flowchart LR; accTitle: DefaultAzureCredential authentication flow without deployed service credentials; accDescr: Flowchart showing the credential chain implemented by DefaultAzureCredential when AZURE_TOKEN_CREDENTIALS is set to "dev"; - D(Visual Studio):::developer --> E(Azure CLI):::developer --> F(Azure PowerShell):::developer --> G(Azure Developer CLI):::developer; + D(Visual Studio):::developer --> + E(Visual Studio Code):::developer --> + F(Azure CLI):::developer --> + G(Azure PowerShell):::developer --> + H(Azure Developer CLI):::developer; %% Define styles for credential type boxes classDef developer fill:#F5AF6F, stroke:#EB7C39, stroke-width:2px; diff --git a/docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-development.svg b/docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-development.svg new file mode 100644 index 0000000000000..37abe7a4cd41d --- /dev/null +++ b/docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-development.svg @@ -0,0 +1 @@ +DefaultAzureCredential authentication flow without deployed service credentials;Flowchart showing the credential chain implemented by DefaultAzureCredential when AZURE_TOKEN_CREDENTIALS is set to "dev";
Visual Studio
Visual Studio Code
Azure CLI
Azure PowerShell
Azure Developer CLI
\ No newline at end of file diff --git a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarProd.md b/docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-production.md similarity index 83% rename from docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarProd.md rename to docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-production.md index ad6b7a68ca6b7..38dc715d8b354 100644 --- a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarProd.md +++ b/docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-production.md @@ -8,7 +8,7 @@ ms.date: 05/30/2025 %% ======================= %% 1. Install mermaid CLI v10.9.1 (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md): %% npm i -g @mermaid-js/mermaid-cli@10.9.1 -%% 2. Run command: mmdc -i DefaultAzureCredentialEnvVarProd.md -o ../../media/mermaidjs/DefaultAzureCredentialEnvVarProd.svg +%% 2. Run command: mmdc -i default-azure-credential-environment-variable-production.md -o ../../media/mermaidjs/default-azure-credential-environment-variable-production.svg %%{ init: { diff --git a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarProd.svg b/docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-production.svg similarity index 100% rename from docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialEnvVarProd.svg rename to docs/azure/sdk/media/mermaidjs/default-azure-credential-environment-variable-production.svg diff --git a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialExcludes.md b/docs/azure/sdk/media/mermaidjs/default-azure-credential-excludes.md similarity index 58% rename from docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialExcludes.md rename to docs/azure/sdk/media/mermaidjs/default-azure-credential-excludes.md index 2d4c4075bbdf8..09a08604e4f03 100644 --- a/docs/azure/sdk/media/mermaidjs/DefaultAzureCredentialExcludes.md +++ b/docs/azure/sdk/media/mermaidjs/default-azure-credential-excludes.md @@ -1,6 +1,6 @@ --- ms.topic: include -ms.date: 08/07/2024 +ms.date: 08/13/2025 --- ```mermaid @@ -8,7 +8,7 @@ ms.date: 08/07/2024 %% ======================= %% 1. Install mermaid CLI v10.9.1 (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md): %% npm i -g @mermaid-js/mermaid-cli@10.9.1 -%% 2. Run command: mmdc -i DefaultAzureCredentialExcludes.md -o ../../media/mermaidjs/DefaultAzureCredentialExcludes.svg +%% 2. Run command: mmdc -i default-azure-credential-excludes.md -o ../../media/mermaidjs/default-azure-credential-excludes.svg %%{ init: { @@ -21,7 +21,12 @@ ms.date: 08/07/2024 }%% flowchart LR; - D(Visual Studio):::developer --> E(Azure CLI):::developer --> F(Azure PowerShell):::developer --> G(Azure Developer CLI):::developer; + D(Visual Studio):::developer --> + E(Visual Studio Code):::developer --> + F(Azure CLI):::developer --> + G(Azure PowerShell):::developer --> + H(Azure Developer CLI):::developer --> + I(Broker):::developer; %% Define styles for credential type boxes classDef developer fill:#F5AF6F, stroke:#EB7C39, stroke-width:2px; diff --git a/docs/azure/sdk/media/mermaidjs/default-azure-credential-excludes.svg b/docs/azure/sdk/media/mermaidjs/default-azure-credential-excludes.svg new file mode 100644 index 0000000000000..2977fac7f0d16 --- /dev/null +++ b/docs/azure/sdk/media/mermaidjs/default-azure-credential-excludes.svg @@ -0,0 +1 @@ +
Visual Studio
Visual Studio Code
Azure CLI
Azure PowerShell
Azure Developer CLI
Broker
\ No newline at end of file diff --git a/docs/azure/sdk/snippets/authentication/Directory.Packages.props b/docs/azure/sdk/snippets/authentication/Directory.Packages.props index 395eed4ec48fc..3f5eeca58a0e7 100644 --- a/docs/azure/sdk/snippets/authentication/Directory.Packages.props +++ b/docs/azure/sdk/snippets/authentication/Directory.Packages.props @@ -8,7 +8,7 @@ - + @@ -16,4 +16,4 @@ - \ No newline at end of file + diff --git a/docs/azure/sdk/snippets/authentication/credential-chains/Program.cs b/docs/azure/sdk/snippets/authentication/credential-chains/Program.cs index 819ac45d1411d..81b83a5efccda 100644 --- a/docs/azure/sdk/snippets/authentication/credential-chains/Program.cs +++ b/docs/azure/sdk/snippets/authentication/credential-chains/Program.cs @@ -92,8 +92,10 @@ ExcludeEnvironmentCredential = true, ExcludeWorkloadIdentityCredential = true, ExcludeManagedIdentityCredential = true, + ExcludeVisualStudioCodeCredential = true, ExcludeAzurePowerShellCredential = true, ExcludeAzureDeveloperCliCredential = true, + ExcludeBrokerCredential = true, }); #endregion