File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
articles/virtual-machines/windows Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ New-AzResourceGroup -Name $imageResourceGroup -Location $location
129
129
'Az.ImageBuilder', 'Az.ManagedServiceIdentity' | ForEach-Object {Install-Module -Name $_ -AllowPrerelease }
130
130
131
131
# Create the identity
132
- New-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName
132
+ New-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName -Location $location
133
133
134
134
$identityNameResourceId=$(Get-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName).Id
135
135
$identityNamePrincipalId=$(Get-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName).PrincipalId
You can’t perform that action at this time.
0 commit comments