File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ cd code-to-cloud/src
156
156
--sku Basic
157
157
```
158
158
159
- # [Azure PowerShell](#tab/azure-powershell)
159
+ # [Azure PowerShell](#tab/azure-powershell)
160
160
161
161
```azurepowershell
162
162
$acr = New-AzContainerRegistry `
@@ -172,12 +172,14 @@ cd code-to-cloud/src
172
172
Use the following command to check if ARM tokens are allowed to access your Azure Container Registry (ACR).
173
173
174
174
# [Bash](#tab/bash)
175
+
175
176
```azurecli
176
177
az acr config authentication-as-arm show --registry "$ACR_NAME"
177
178
```
178
179
179
180
TODO1 Verify
180
181
# [Azure PowerShell](#tab/azure-powershell)
182
+
181
183
```powershell
182
184
$acr.Config.AuthenticationAsArm
183
185
```
@@ -195,12 +197,14 @@ TODO1 Verify
195
197
If the `status` is `disabled`, allow ARM tokens with the following command.
196
198
197
199
# [Bash](#tab/bash)
200
+
198
201
```azurecli
199
202
az acr config authentication-as-arm update --registry "$ACR_NAME" --status enabled
200
203
```
201
204
202
205
TODO1 Verify
203
206
# [Azure PowerShell](#tab/azure-powershell)
207
+
204
208
```powershell
205
209
$acr.Config.AuthenticationAsArm.Enabled = $true
206
210
Set-AzContainerRegistry -ResourceGroupName $acr.ResourceGroupName -Name $acr.Name -Registry $acr
You can’t perform that action at this time.
0 commit comments