Skip to content

Commit 66e7874

Browse files
author
BradleyBartlett
committed
custom RBAC error workaround
1 parent 4809694 commit 66e7874

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Registration/RegisterWithAzure.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ function New-RBACAssignment{
735735
$customRoleDefined = Get-AzureRmRoleDefinition -Name $customRoleName
736736
if (-not $customRoleDefined)
737737
{
738+
$customRoleName = "Registration Reader-$($RegistrationResource.SubscriptionId)"
738739
# Create new RBAC role definition
739740
$role = Get-AzureRmRoleDefinition -Name 'Reader'
740741
$role.Name = $customRoleName

0 commit comments

Comments
 (0)