Skip to content

Commit 4c21e2c

Browse files
Update IsCustom property on example role defintion (#21514)
* Update IsCustom property on example role defintion We're making a custom role definition, so we need to update the IsCustom property to True. * Update New-AzRoleDefinition.md --------- Co-authored-by: Yunchi Wang <[email protected]>
1 parent 998082f commit 4c21e2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Resources/Resources/help/New-AzRoleDefinition.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ $role = Get-AzRoleDefinition -Name "Virtual Machine Contributor"
8787
$role.Id = $null
8888
$role.Name = "Virtual Machine Operator"
8989
$role.Description = "Can monitor, start, and restart virtual machines."
90+
$role.IsCustom = $True
9091
$role.Actions.RemoveRange(0,$role.Actions.Count)
9192
$role.Actions.Add("Microsoft.Compute/*/read")
9293
$role.Actions.Add("Microsoft.Compute/virtualMachines/start/action")

0 commit comments

Comments
 (0)