Skip to content

Commit dd2489a

Browse files
author
BradleyBartlett
committed
Another fix for new resource properties and RBAC assignment
1 parent 10c2892 commit dd2489a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Registration/RegisterWithAzure.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ function New-RBACAssignment{
12061206
Log-Output "Setting $RoleName role on '$($RegistrationResource.ResourceId)'"
12071207

12081208
# Determine if RBAC role has been assigned
1209-
$roleAssignmentScope = "/subscriptions/$SubscriptionId/resourceGroups/$($RegistrationResource.ResourceGroupName)/providers/Microsoft.AzureStack/registrations/$($RegistrationResource.ResourceName)"
1209+
$roleAssignmentScope = "/subscriptions/$SubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.AzureStack/registrations/$($RegistrationResource.Name)"
12101210
$roleAssignments = Get-AzureRmRoleAssignment -Scope $roleAssignmentScope -ObjectId $ServicePrincipal.ObjectId
12111211

12121212
foreach ($role in $roleAssignments)

0 commit comments

Comments
 (0)