Skip to content

Commit 7424f91

Browse files
committed
fix cli and indent
1 parent cde19f2 commit 7424f91

File tree

2 files changed

+39
-41
lines changed

2 files changed

+39
-41
lines changed

articles/service-connector/quickstart-cli-aks-connection.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,15 @@ Use the Azure CLI command to create a service connection to a Blob Storage with
6969
* **AKS cluster name:** the name of your AKS cluster that connects to the target service.
7070
* **Target service resource group name:** the resource group name of the Blob Storage.
7171
* **Storage account name:** the account name of your Blob Storage.
72-
* **User-assigned identity subscription ID:** the subscription ID of the user assigned identity that used to create workload identity
73-
* **User-assigned identity client ID:** the client ID of the user assigned identity used to create workload identity
72+
* **User-assigned identity resource ID:** the resource ID of the user assigned identity that used to create workload identity
7473

7574
```azurecli
7675
az aks connection create storage-blob \
77-
--workload-identity client-id="<your-user-assigned-identity-client-id>" subs-id="<your-user-assigned-identity-subscription-id>"
76+
--workload-identity <user-identity-resource-id>
7877
```
7978

8079
> [!NOTE]
81-
> If you don't have a Blob Storage, you can run `az aks connection create storage-blob --new --workload-identity client-id="<your-user-assigned-identity-client-id>" subs-id="<your-user-assigned-identity-subscription-id>"` to provision a new one and get connected to your function app straightaway.
80+
> If you don't have a Blob Storage, you can run `az aks connection create storage-blob --new --workload-identity <user-identity-resource-id>"` to provision a new one and get connected to your function app straightaway.
8281
8382
---
8483

articles/service-connector/tutorial-python-aks-storage-workload-identity.md

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ Learn how to create a pod in an AKS cluster, which talks to an Azure storage acc
3333

3434
1. Create a resource group for this tutorial.
3535

36-
```azurecli
37-
az group create \
38-
--name MyResourceGroup \
39-
--location eastus
40-
```
36+
```azurecli
37+
az group create \
38+
--name MyResourceGroup \
39+
--location eastus
40+
```
4141
4242
1. Create an AKS cluster with the following command, or referring to the [tutorial](../aks/learn/quick-kubernetes-deploy-cli.md). We create the service connection, pod definition and deploy the sample application to this cluster.
4343
@@ -59,39 +59,39 @@ az group create \
5959
6060
1. Create an Azure storage account with the following command, or referring to the [tutorial](../storage/common/storage-account-create.md). This is the target service that is connected to the AKS cluster and sample application interacts with.
6161
62-
```azurecli
63-
az storage account create \
64-
--resource-group MyResourceGroup \
65-
--name MyStorageAccount \
66-
--location eastus \
67-
--sku Standard_LRS
68-
```
62+
```azurecli
63+
az storage account create \
64+
--resource-group MyResourceGroup \
65+
--name MyStorageAccount \
66+
--location eastus \
67+
--sku Standard_LRS
68+
```
6969
7070
1. Create an Azure container registry with the following command, or referring to the [tutorial](../container-registry/container-registry-get-started-portal.md). The registry hosts the container image of the sample application, which will be consumed by the AKS pod definition.
7171
72-
```azurecli
73-
az acr create \
74-
--resource-group MyResourceGroup \
75-
--name MyRegistry \
76-
--sku Standard
77-
```
72+
```azurecli
73+
az acr create \
74+
--resource-group MyResourceGroup \
75+
--name MyRegistry \
76+
--sku Standard
77+
```
7878
7979
And enable anonymous pull so that AKS cluster can consume the images in the registry.
8080
81-
```azurecli
82-
az acr update \
83-
--resource-group MyResourceGroup \
84-
--name MyRegistry \
85-
--anonymous-pull-enabled
86-
```
81+
```azurecli
82+
az acr update \
83+
--resource-group MyResourceGroup \
84+
--name MyRegistry \
85+
--anonymous-pull-enabled
86+
```
8787
8888
1. Create a user-assigned managed identity with the following command, or referring to the [tutorial](/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities). The user-assigned managed identity is used in service connection creation to enable workload identity for AKS workloads.
8989
90-
```azurecli
91-
az identity create \
92-
--resource-group MyResourceGroup \
93-
--name MyIdentity
94-
```
90+
```azurecli
91+
az identity create \
92+
--resource-group MyResourceGroup \
93+
--name MyIdentity
94+
```
9595
9696
## Create service connection with Service Connector
9797
@@ -140,8 +140,7 @@ Provide the following information as prompted:
140140
* **AKS cluster name:** the name of your AKS cluster that connects to the target service.
141141
* **Target service resource group name:** the resource group name of the Azure storage account.
142142
* **Storage account name:** the Azure storage account that is connected.
143-
* **User-assigned identity subscription ID:** the subscription ID of the user-assigned identity used to create workload identity.
144-
* **User-assigned identity client ID:** the client ID of the user-assigned identity used to create workload identity.
143+
* **User-assigned identity resource ID:** the resource ID of the user-assigned identity used to create workload identity.
145144

146145
---
147146

@@ -163,15 +162,15 @@ Provide the following information as prompted:
163162
164163
1. Build and push the images to your container registry using the Azure CLI [`az acr build`](/cli/azure/acr#az_acr_build) command.
165164
166-
```azurecli
167-
az acr build --registry <MyRegistry> --image sc-demo-storage-identity:latest ./
168-
```
165+
```azurecli
166+
az acr build --registry <MyRegistry> --image sc-demo-storage-identity:latest ./
167+
```
169168
170169
1. View the images in your container registry using the [`az acr repository list`](/cli/azure/acr/repository#az_acr_repository_list) command.
171170
172-
```azurecli
173-
az acr repository list --name <MyRegistry> --output table
174-
```
171+
```azurecli
172+
az acr repository list --name <MyRegistry> --output table
173+
```
175174
176175
## Run application and test connection
177176

0 commit comments

Comments
 (0)