Skip to content

Commit afaceaa

Browse files
committed
Minor fix.
1 parent 9f345c2 commit afaceaa

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

articles/container-apps/tutorial-code-to-cloud.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -217,54 +217,54 @@ To avoid using administrative credentials, pull images from private repositories
217217
# [Bash](#tab/bash)
218218
219219
1. Create a user-assigned managed identity. Before you run the following commands, choose a name for your managed identity and replace the `\<PLACEHOLDER\>` with the name.
220-
221-
```bash
222-
IDENTITY="<YOUR_IDENTITY_NAME>"
223-
```
224220
225-
```azurecli
226-
az identity create \
227-
--name $IDENTITY \
228-
--resource-group $RESOURCE_GROUP
229-
```
221+
```bash
222+
IDENTITY="<YOUR_IDENTITY_NAME>"
223+
```
224+
225+
```azurecli
226+
az identity create \
227+
--name $IDENTITY \
228+
--resource-group $RESOURCE_GROUP
229+
```
230230
231231
1. Get the identity's resource ID.
232232
233-
```azurecli
234-
IDENTITY_ID=$(az identity show \
235-
--name $IDENTITY \
236-
--resource-group $RESOURCE_GROUP \
237-
--query id \
238-
--output tsv)
239-
```
233+
```azurecli
234+
IDENTITY_ID=$(az identity show \
235+
--name $IDENTITY \
236+
--resource-group $RESOURCE_GROUP \
237+
--query id \
238+
--output tsv)
239+
```
240240
241241
# [Azure PowerShell](#tab/azure-powershell)
242242
243243
1. Create a user-assigned managed identity. Before you run the following commands, choose a name for your managed identity and replace the `\<PLACEHOLDER\>` with the name.
244244
245-
```azurepowershell
246-
$IdentityName="<YOUR_IDENTITY_NAME>"
247-
$Identity = New-AzUserAssignedIdentity -ResourceGroupName $ResourceGroup -Name $IdentityName
248-
```
245+
```azurepowershell
246+
$IdentityName="<YOUR_IDENTITY_NAME>"
247+
$Identity = New-AzUserAssignedIdentity -ResourceGroupName $ResourceGroup -Name $IdentityName
248+
```
249249
250250
1. Get the identity's resource and principal ID.
251251
252-
```azurepowershell
253-
$IdentityId = $Identity.Id
254-
$PrincipalId = (Get-AzUserAssignedIdentity -Name $IdentityName -ResourceGroupName $ResourceGroup).PrincipalId
255-
```
252+
```azurepowershell
253+
$IdentityId = $Identity.Id
254+
$PrincipalId = (Get-AzUserAssignedIdentity -Name $IdentityName -ResourceGroupName $ResourceGroup).PrincipalId
255+
```
256256
257257
1. Get the registry's resource ID. Before you run the following command, replace the *\<placeholders\>* with the resource group name for your registry.
258258
259-
```azurepowershell
260-
$RegistryId = (Get-AzContainerRegistry -ResourceGroupName $ResourceGroup -Name $ACRName).Id
261-
```
259+
```azurepowershell
260+
$RegistryId = (Get-AzContainerRegistry -ResourceGroupName $ResourceGroup -Name $ACRName).Id
261+
```
262262
263263
1. Create the `acrpull` role assignment for the identity.
264264
265-
```azurepowershell
266-
New-AzRoleAssignment -ObjectId $PrincipalId -Scope $RegistryId -RoleDefinitionName acrpull
267-
```
265+
```azurepowershell
266+
New-AzRoleAssignment -ObjectId $PrincipalId -Scope $RegistryId -RoleDefinitionName acrpull
267+
```
268268
269269
---
270270

0 commit comments

Comments
 (0)