Skip to content

Commit d084f01

Browse files
(ForumsTeam) fixes MicrosoftDocs/azure-docs#54962
Fixed typos throughout the doc. Idenity -> Identity
1 parent 82238b7 commit d084f01

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,16 @@ Image Builder will use the [user-identity](https://docs.microsoft.com/azure/acti
9999
# setup role def names, these need to be unique
100100
$timeInt=$(get-date -UFormat "%s")
101101
$imageRoleDefName="Azure Image Builder Image Def"+$timeInt
102-
$idenityName="aibIdentity"+$timeInt
102+
$identityName="aibIdentity"+$timeInt
103103
104104
## Add AZ PS module to support AzUserAssignedIdentity
105105
Install-Module -Name Az.ManagedServiceIdentity
106106
107107
# create identity
108-
New-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $idenityName
108+
New-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName
109109
110-
$idenityNameResourceId=$(Get-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $idenityName).Id
111-
$idenityNamePrincipalId=$(Get-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $idenityName).PrincipalId
110+
$identityNameResourceId=$(Get-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName).Id
111+
$identityNamePrincipalId=$(Get-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName).PrincipalId
112112
```
113113

114114

@@ -131,7 +131,7 @@ Invoke-WebRequest -Uri $aibRoleImageCreationUrl -OutFile $aibRoleImageCreationPa
131131
New-AzRoleDefinition -InputFile ./aibRoleImageCreation.json
132132
133133
# grant role definition to image builder service principal
134-
New-AzRoleAssignment -ObjectId $idenityNamePrincipalId -RoleDefinitionName $imageRoleDefName -Scope "/subscriptions/$subscriptionID/resourceGroups/$imageResourceGroup"
134+
New-AzRoleAssignment -ObjectId $identityNamePrincipalId -RoleDefinitionName $imageRoleDefName -Scope "/subscriptions/$subscriptionID/resourceGroups/$imageResourceGroup"
135135
136136
### NOTE: If you see this error: 'New-AzRoleDefinition: Role definition limit exceeded. No more role definitions can be created.' See this article to resolve:
137137
https://docs.microsoft.com/azure/role-based-access-control/troubleshooting
@@ -202,7 +202,7 @@ Invoke-WebRequest `
202202
-replace '<region1>',$location | Set-Content -Path $templateFilePath
203203
(Get-Content -path $templateFilePath -Raw ) `
204204
-replace '<region2>',$replRegion2 | Set-Content -Path $templateFilePath
205-
((Get-Content -path $templateFilePath -Raw) -replace '<imgBuilderId>',$idenityNameResourceId) | Set-Content -Path $templateFilePath
205+
((Get-Content -path $templateFilePath -Raw) -replace '<imgBuilderId>',$identityNameResourceId) | Set-Content -Path $templateFilePath
206206
```
207207

208208

@@ -316,19 +316,19 @@ Remove-AzResource -ResourceId $resTemplateId.ResourceId -Force
316316
Delete role assignment
317317

318318
```powerShell
319-
Remove-AzRoleAssignment -ObjectId $idenityNamePrincipalId -RoleDefinitionName $imageRoleDefName -Scope "/subscriptions/$subscriptionID/resourceGroups/$imageResourceGroup"
319+
Remove-AzRoleAssignment -ObjectId $identityNamePrincipalId -RoleDefinitionName $imageRoleDefName -Scope "/subscriptions/$subscriptionID/resourceGroups/$imageResourceGroup"
320320
```
321321

322322
remove definitions
323323

324324
```powerShell
325-
Remove-AzRoleDefinition -Name "$idenityNamePrincipalId" -Force -Scope "/subscriptions/$subscriptionID/resourceGroups/$imageResourceGroup"
325+
Remove-AzRoleDefinition -Name "$identityNamePrincipalId" -Force -Scope "/subscriptions/$subscriptionID/resourceGroups/$imageResourceGroup"
326326
```
327327

328328
delete identity
329329

330330
```powerShell
331-
Remove-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $idenityName -Force
331+
Remove-AzUserAssignedIdentity -ResourceGroupName $imageResourceGroup -Name $identityName -Force
332332
```
333333

334334
delete the resource group.

0 commit comments

Comments
 (0)