File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
articles/virtual-machines/linux Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,14 @@ Image Builder will use the [user-identity](../../active-directory/managed-identi
85
85
86
86
``` bash
87
87
# create user assigned identity for image builder to access the storage account where the script is located
88
- idenityName =aibBuiUserId$( date +' %s' )
89
- az identity create -g $sigResourceGroup -n $idenityName
88
+ identityName =aibBuiUserId$( date +' %s' )
89
+ az identity create -g $sigResourceGroup -n $identityName
90
90
91
91
# get identity id
92
92
imgBuilderCliId=$( az identity show -g $sigResourceGroup -n $identityName --query clientId -o tsv)
93
93
94
94
# get the user identity URI, needed for the template
95
- imgBuilderId=/subscriptions/$subscriptionID /resourcegroups/$sigResourceGroup /providers/Microsoft.ManagedIdentity/userAssignedIdentities/$idenityName
95
+ imgBuilderId=/subscriptions/$subscriptionID /resourcegroups/$sigResourceGroup /providers/Microsoft.ManagedIdentity/userAssignedIdentities/$identityName
96
96
97
97
# this command will download an Azure role definition template, and update the template with the parameters specified earlier.
98
98
curl https://raw.githubusercontent.com/azure/azvmimagebuilder/master/solutions/12_Creating_AIB_Security_Roles/aibRoleImageCreation.json -o aibRoleImageCreation.json
@@ -110,7 +110,7 @@ az role definition create --role-definition ./aibRoleImageCreation.json
110
110
# grant role definition to the user assigned identity
111
111
az role assignment create \
112
112
--assignee $imgBuilderCliId \
113
- --role $imageRoleDefName \
113
+ --role " $imageRoleDefName " \
114
114
--scope /subscriptions/$subscriptionID /resourceGroups/$sigResourceGroup
115
115
```
116
116
You can’t perform that action at this time.
0 commit comments