From b3832668b9a7f046a2fe240534cc93ce379a47ea Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Thu, 18 Jul 2024 12:50:33 -0500 Subject: [PATCH 1/3] Reformat DefaultAzureCredential flow chart --- .../DefaultAzureCredentialAuthFlow.md | 21 +++++++++++++++---- .../DefaultAzureCredentialAuthFlow.svg | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md index 1f7e1c0a8361..4e5ec79d6741 100644 --- a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md +++ b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md @@ -1,18 +1,31 @@ ```mermaid %% STEPS TO GENERATE IMAGE %% ======================= -%% 1. Install mermaid CLI (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md) -%% v10.1.0 is known good for our process. npm install -g @mermaid-js/mermaid-cli@10.1.0 +%% 1. Install mermaid CLI (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md). +%% v10.9.1 is known good for our process. npm i -g @mermaid-js/mermaid-cli@10.9.1 %% 2. Run command: mmdc -i DefaultAzureCredentialAuthFlow.md -o DefaultAzureCredentialAuthFlow.svg -flowchart LR; - A(Environment):::deployed --> B(Workload Identity):::deployed --> C(Managed Identity):::deployed --> D(Azure CLI):::developer --> E(Azure PowerShell):::developer --> F(Azure Developer CLI):::developer --> G(Interactive browser):::interactive; +%%{ + init: { + 'theme': 'base', + 'themeVariables': { + 'tertiaryBorderColor': '#fff', + 'tertiaryColor': '#fff' + } + } +}%% +flowchart LR; subgraph CREDENTIAL TYPES; direction LR; Deployed(Deployed service):::deployed ~~~ Developer(Developer):::developer ~~~ Interactive(Interactive developer):::interactive; end; + subgraph CREDENTIALS; + direction LR; + A(Environment):::deployed --> B(Workload Identity):::deployed --> C(Managed Identity):::deployed --> D(Azure CLI):::developer --> E(Azure PowerShell):::developer --> F(Azure Developer CLI):::developer --> G(Interactive browser):::interactive; + end; + %% Define styles for credential type boxes classDef deployed fill:#95C37E, stroke:#71AD4C; classDef developer fill:#F5AF6F, stroke:#EB7C39; diff --git a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg index f127dcd4f773..d14d33781e16 100644 --- a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg +++ b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg @@ -1 +1 @@ -
CREDENTIAL TYPES
Interactive developer
Deployed service
Developer
Environment
Workload Identity
Managed Identity
Azure CLI
Azure PowerShell
Azure Developer CLI
Interactive browser
\ No newline at end of file +
CREDENTIALS
Interactive browser
Environment
Workload Identity
Managed Identity
Azure CLI
Azure PowerShell
Azure Developer CLI
CREDENTIAL TYPES
Interactive developer
Deployed service
Developer
\ No newline at end of file From 1daae5efd361dd830e56b7a07e3e1b1bc618ec97 Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Thu, 18 Jul 2024 13:12:38 -0500 Subject: [PATCH 2/3] Update credential type text --- .../images/mermaidjs/DefaultAzureCredentialAuthFlow.md | 2 +- .../images/mermaidjs/DefaultAzureCredentialAuthFlow.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md index 4e5ec79d6741..b16d507d82be 100644 --- a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md +++ b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md @@ -18,7 +18,7 @@ flowchart LR; subgraph CREDENTIAL TYPES; direction LR; - Deployed(Deployed service):::deployed ~~~ Developer(Developer):::developer ~~~ Interactive(Interactive developer):::interactive; + Deployed(Deployed service):::deployed ~~~ Developer(Developer):::developer ~~~ Interactive(Interactive):::interactive; end; subgraph CREDENTIALS; diff --git a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg index d14d33781e16..a80411a0d184 100644 --- a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg +++ b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg @@ -1 +1 @@ -
CREDENTIALS
Interactive browser
Environment
Workload Identity
Managed Identity
Azure CLI
Azure PowerShell
Azure Developer CLI
CREDENTIAL TYPES
Interactive developer
Deployed service
Developer
\ No newline at end of file +
CREDENTIALS
Interactive browser
Environment
Workload Identity
Managed Identity
Azure CLI
Azure PowerShell
Azure Developer CLI
CREDENTIAL TYPES
Interactive
Deployed service
Developer
\ No newline at end of file From 7fa189342e9a4dd320241840f75ea046fa37958c Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Thu, 18 Jul 2024 13:17:59 -0500 Subject: [PATCH 3/3] Simplify instructions --- .../images/mermaidjs/DefaultAzureCredentialAuthFlow.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md index b16d507d82be..393bd8c7db16 100644 --- a/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md +++ b/sdk/identity/azure-identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md @@ -1,8 +1,8 @@ ```mermaid %% STEPS TO GENERATE IMAGE %% ======================= -%% 1. Install mermaid CLI (see https://github.com/mermaid-js/mermaid-cli/blob/master/README.md). -%% v10.9.1 is known good for our process. npm i -g @mermaid-js/mermaid-cli@10.9.1 +%% 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 DefaultAzureCredentialAuthFlow.svg %%{