From cdb3302e29ce126d5a38f0b2fc5b32b13321b6ba Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Wed, 25 Mar 2020 19:14:02 +0100 Subject: [PATCH] [resourcegroup] instead of WVD --- RoleAssignment.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RoleAssignment.ps1 b/RoleAssignment.ps1 index edc5709..2b0d3ec 100644 --- a/RoleAssignment.ps1 +++ b/RoleAssignment.ps1 @@ -1,3 +1,3 @@ $FileShareContributorRole = Get-AzRoleDefinition "AFReadWriteRole" -$scope = "/subscriptions/[subscriptionID]/resourceGroups/WVD/providers/Microsoft.Storage/storageAccounts/[storageaccount]/fileServices/default/fileshare/[filesharename]" -New-AzRoleAssignment -SignInName [UPN_Email] -RoleDefinitionName $FileShareContributorRole.Name -Scope $scope \ No newline at end of file +$scope = "/subscriptions/[subscriptionID]/resourceGroups/[resourcegroup]/providers/Microsoft.Storage/storageAccounts/[storageaccount]/fileServices/default/fileshare/[filesharename]" +New-AzRoleAssignment -SignInName [UPN_Email] -RoleDefinitionName $FileShareContributorRole.Name -Scope $scope