@@ -51,9 +51,10 @@ If you haven't already done so, register the following resource providers to use
51
51
- Microsoft.Storage
52
52
- Microsoft.Network
53
53
- Microsoft.VirtualMachineImages
54
+ - Microsoft.ManagedIdentity
54
55
55
56
``` azurepowershell-interactive
56
- Get-AzResourceProvider -ProviderNamespace Microsoft.Compute, Microsoft.KeyVault, Microsoft.Storage, Microsoft.VirtualMachineImages, Microsoft.Network |
57
+ Get-AzResourceProvider -ProviderNamespace Microsoft.Compute, Microsoft.KeyVault, Microsoft.Storage, Microsoft.VirtualMachineImages, Microsoft.Network, Microsoft.ManagedIdentity |
57
58
Where-Object RegistrationState -ne Registered |
58
59
Register-AzResourceProvider
59
60
```
@@ -109,7 +110,7 @@ Grant Azure image builder permissions to create images in the specified resource
109
110
1 . Create a user identity.
110
111
111
112
``` azurepowershell-interactive
112
- New-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName
113
+ New-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName -Location $location
113
114
```
114
115
115
116
1 . Store the identity resource and principal IDs in variables.
@@ -125,7 +126,7 @@ Grant Azure image builder permissions to create images in the specified resource
125
126
126
127
``` azurepowershell-interactive
127
128
$myRoleImageCreationUrl = 'https://raw.githubusercontent.com/azure/azvmimagebuilder/master/solutions/12_Creating_AIB_Security_Roles/aibRoleImageCreation.json'
128
- $myRoleImageCreationPath = "$env:TEMP\ myRoleImageCreation.json"
129
+ $myRoleImageCreationPath = "myRoleImageCreation.json"
129
130
130
131
Invoke-WebRequest -Uri $myRoleImageCreationUrl -OutFile $myRoleImageCreationPath -UseBasicParsing
131
132
@@ -230,7 +231,7 @@ Grant Azure image builder permissions to create images in the specified resource
230
231
``` azurepowershell-interactive
231
232
$ImgCustomParams02 = @{
232
233
FileCustomizer = $true
233
- CustomizerName = 'downloadBuildArtifacts'
234
+ Name = 'downloadBuildArtifacts'
234
235
Destination = 'c:\\buildArtifacts\\index.html'
235
236
SourceUri = 'https://raw.githubusercontent.com/azure/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html'
236
237
}
0 commit comments