Skip to content

Commit de345b6

Browse files
authored
Merge pull request #116741 from cynthn/patch-398
Update image-builder.md
2 parents 472930b + 34b295f commit de345b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/virtual-machines/linux/image-builder.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ Image Builder will use the [user-identity](https://docs.microsoft.com/azure/acti
9292

9393
```bash
9494
# create user assigned identity for image builder to access the storage account where the script is located
95-
idenityName=aibBuiUserId$(date +'%s')
96-
az identity create -g $sigResourceGroup -n $idenityName
95+
identityName=aibBuiUserId$(date +'%s')
96+
az identity create -g $sigResourceGroup -n $identityName
9797

9898
# get identity id
99-
imgBuilderCliId=$(az identity show -g $sigResourceGroup -n $idenityName | grep "clientId" | cut -c16- | tr -d '",')
99+
imgBuilderCliId=$(az identity show -g $sigResourceGroup -n $identityName | grep "clientId" | cut -c16- | tr -d '",')
100100

101101
# get the user identity URI, needed for the template
102-
imgBuilderId=/subscriptions/$subscriptionID/resourcegroups/$sigResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$idenityName
102+
imgBuilderId=/subscriptions/$subscriptionID/resourcegroups/$sigResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$identityName
103103

104104
# this command will download a Azure Role Definition template, and update the template with the parameters specified earlier.
105105
curl https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/solutions/12_Creating_AIB_Security_Roles/aibRoleImageCreation.json -o aibRoleImageCreation.json
@@ -117,7 +117,7 @@ az role definition create --role-definition ./aibRoleImageCreation.json
117117
# grant role definition to the user assigned identity
118118
az role assignment create \
119119
--assignee $imgBuilderCliId \
120-
--role $imageRoleDefName \
120+
--role "$imageRoleDefName" \
121121
--scope /subscriptions/$subscriptionID/resourceGroups/$sigResourceGroup
122122
```
123123

0 commit comments

Comments
 (0)