Skip to content

Commit 59058df

Browse files
committed
Resolving some warnings in build report
1 parent 5b1257f commit 59058df

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

articles/aks/cluster-container-registry-integration.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ You can set up the AKS to ACR integration in a few steps using the Azure CLI, Az
2626

2727
## Create a new AKS cluster with ACR integration
2828

29-
You can set up AKS and ACR integration during the creation of your AKS cluster. To allow an AKS cluster to interact with ACR, an AAD **managed identity** is used.
29+
You can set up AKS and ACR integration during the creation of your AKS cluster. To allow an AKS cluster to interact with ACR, an AAD managed identity is used.
30+
31+
### Create an ACR
3032

3133
If you don't already have an ACR, create one using the following command.
3234

33-
### [Azure CLI](#tab/azure-cli)
35+
#### [Azure CLI](#tab/azure-cli)
3436

3537
```azurecli
3638
# Set this variable to the name of your ACR. The name must be globally unique.
@@ -40,7 +42,7 @@ MYACR=myContainerRegistry
4042
az acr create -n $MYACR -g myContainerRegistryResourceGroup --sku basic
4143
```
4244

43-
### [Azure PowerShell][#tab/azure-powershell]
45+
#### [Azure PowerShell][#tab/azure-powershell]
4446

4547
```azurepowershell
4648
# Set this variable to the name of your ACR. The name must be globally unique.
@@ -52,9 +54,11 @@ New-AzContainerRegistry -Name $MYACR -ResourceGroupName myContainerRegistryResou
5254

5355
---
5456

57+
### Create a new AKS cluster and integrate with an existing ACR
58+
5559
If you have already have an ACR, use the following command to create a new AKS cluster with ACR integration. This command allows you to authorize an existing ACR in your subscription and configures the appropriate **AcrPull** role for the managed identity. Supply valid values for your parameters below.
5660

57-
### [Azure CLI](#tab/azure-cli)
61+
#### [Azure CLI](#tab/azure-cli)
5862

5963
```azurecli
6064
# Set this variable to the name of your ACR. The name must be globally unique.
@@ -77,7 +81,7 @@ Alternatively, you can specify the ACR name using an ACR resource ID using the f
7781
> az aks create -n myAKSCluster -g myResourceGroup --generate-ssh-keys --attach-acr /subscriptions/<subscription-id>/resourceGroups/myContainerRegistryResourceGroup/providers/Microsoft.ContainerRegistry/registries/myContainerRegistry
7882
> ```
7983
80-
### [Azure PowerShell](#tab/azure-powershell)
84+
#### [Azure PowerShell](#tab/azure-powershell)
8185
8286
```azurepowershell
8387
# Set this variable to the name of your ACR. The name must be globally unique.
@@ -97,7 +101,7 @@ This step may take several minutes to complete.
97101

98102
### Attach an ACR to an AKS cluster
99103

100-
### [Azure CLI](#tab/azure-cli)
104+
#### [Azure CLI](#tab/azure-cli)
101105

102106
Integrate an existing ACR with an existing AKS cluster using the [`--attach-acr` parameter][cli-param] and valid values for **acr-name** or **acr-resource-id**.
103107

@@ -112,7 +116,7 @@ az aks update -n myAKSCluster -g myResourceGroup --attach-acr <acr-resource-id>
112116
> [!NOTE]
113117
> The `az aks update --attach-acr` command uses the permissions of the user running the command to create the ACR role assignment. This role is assigned to the [kubelet][kubelet] managed identity. For more information on AKS managed identities, see [Summary of managed identities][summary-msi].
114118
115-
### [Azure PowerShell](#tab/azure-powershell)
119+
#### [Azure PowerShell](#tab/azure-powershell)
116120

117121
Integrate an existing ACR with an existing AKS cluster using the [`-AcrNameToAttach` parameter][ps-attach] and valid values for **acr-name**.
118122

@@ -127,7 +131,7 @@ Set-AzAksCluster -Name myAKSCluster -ResourceGroupName myResourceGroup -AcrNameT
127131
128132
### Detach an ACR from an AKS cluster
129133

130-
### [Azure CLI][#tab/azure-cli]
134+
#### [Azure CLI][#tab/azure-cli]
131135

132136
Remove the integration between an ACR and an AKS cluster using the [`--detach-acr` parameter][cli-param] and valid values for **acr-name** or **acr-resource-id**.
133137

@@ -139,7 +143,7 @@ az aks update -n myAKSCluster -g myResourceGroup --detach-acr <acr-name>
139143
az aks update -n myAKSCluster -g myResourceGroup --detach-acr <acr-resource-id>
140144
```
141145

142-
### [Azure PowerShell][#tab/azure-powershell]
146+
#### [Azure PowerShell][#tab/azure-powershell]
143147

144148
Remove the integration between an ACR and an AKS cluster using the [`-AcrNameToDetach` parameter][ps-detach] and valid values for **acr-name**.
145149

@@ -155,13 +159,13 @@ Set-AzAksCluster -Name myAKSCluster -ResourceGroupName myResourceGroup -AcrNameT
155159

156160
Run the following command to import an image from Docker Hub into your ACR.
157161

158-
### [Azure CLI](#tab/azure-cli)
162+
#### [Azure CLI](#tab/azure-cli)
159163

160164
```azurecli
161165
az acr import -n <acr-name> --source docker.io/library/nginx:latest --image nginx:v1
162166
```
163167

164-
### [Azure PowerShell](#tab/azure-powershell)
168+
#### [Azure PowerShell](#tab/azure-powershell)
165169

166170
```azurepowershell
167171
Import-AzContainerRegistryImage -RegistryName <acr-name> -ResourceGroupName myResourceGroup -SourceRegistryUri docker.io -SourceImage library/nginx:latest
@@ -173,13 +177,13 @@ Import-AzContainerRegistryImage -RegistryName <acr-name> -ResourceGroupName myRe
173177

174178
Ensure you have the proper AKS credentials.
175179

176-
### [Azure CLI](#tab/azure-cli)
180+
#### [Azure CLI](#tab/azure-cli)
177181

178182
```azurecli
179183
az aks get-credentials -g myResourceGroup -n myAKSCluster
180184
```
181185

182-
### [Azure PowerShell](#tab/azure-powershell)
186+
#### [Azure PowerShell](#tab/azure-powershell)
183187

184188
```azurepowershell
185189
Import-AzAksCredential -ResourceGroupName myResourceGroup -Name myAKSCluster
@@ -251,6 +255,6 @@ nginx0-deployment-669dfc4d4b-xdpd6 1/1 Running 0 20s
251255
[rbac-owner]: ../role-based-access-control/built-in-roles#owner
252256
[rbac-classic]: ../role-based-access-control/rbac-and-directory-admin-roles#classic-subscription-administrator-roles
253257
[kubelet]: https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/
254-
[ps-detach]: /powershell/module/az.aks/set-azakscluster?view=azps-9.1.0#-acrnametodetach
255-
[cli-param]: /cli/azure/aks?view=azure-cli-latest#az-aks-update-optional-parameters
256-
[ps-attach]: /powershell/module/az.aks/set-azakscluster?view=azps-9.1.0#-acrnametoattach
258+
[ps-detach]: /powershell/module/az.aks/set-azakscluster#-acrnametodetach
259+
[cli-param]: /cli/azure/aks#az-aks-update-optional-parameters
260+
[ps-attach]: /powershell/module/az.aks/set-azakscluster#-acrnametoattach

0 commit comments

Comments
 (0)