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