Skip to content

Commit 6416357

Browse files
authored
Merge pull request #98760 from jbyway/patch-11
Added missing required parameter
2 parents 509f8a1 + 5fa75df commit 6416357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-machines/windows/image-builder-virtual-desktop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ New-AzResourceGroup -Name $imageResourceGroup -Location $location
129129
'Az.ImageBuilder', 'Az.ManagedServiceIdentity' | ForEach-Object {Install-Module -Name $_ -AllowPrerelease}
130130

131131
# Create the identity
132-
New-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName
132+
New-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName -Location $location
133133

134134
$identityNameResourceId=$(Get-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName).Id
135135
$identityNamePrincipalId=$(Get-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName).PrincipalId

0 commit comments

Comments
 (0)