Skip to content

Commit

Permalink
custom RBAC error workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
BradleyBartlett committed Sep 21, 2017
1 parent 4809694 commit 66e7874
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Registration/RegisterWithAzure.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ function New-RBACAssignment{
$customRoleDefined = Get-AzureRmRoleDefinition -Name $customRoleName
if (-not $customRoleDefined)
{
$customRoleName = "Registration Reader-$($RegistrationResource.SubscriptionId)"
# Create new RBAC role definition
$role = Get-AzureRmRoleDefinition -Name 'Reader'
$role.Name = $customRoleName
Expand Down

0 comments on commit 66e7874

Please sign in to comment.