You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-desktop/deploy-azure-virtual-desktop.md
+73-73Lines changed: 73 additions & 73 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -690,87 +690,87 @@ Here's how to assign users or user groups to an application group by using the A
690
690
691
691
# [Azure PowerShell](#tab/powershell)
692
692
693
-
Here's how to assign users or user groups to an application group by using the [Az.Resources](/powershell/module/az.resources) Azure PowerShell module:
693
+
Here's how to assign users or user groups to an application group by using the [Az.Resources](/powershell/module/az.resources) Azure PowerShell module.
694
694
695
-
-In the same PowerShell session, use the `New-AzRoleAssignment` cmdlet with the following examples to assign users or user groups to an application group:
695
+
In the same PowerShell session, use the `New-AzRoleAssignment` cmdlet with the following examples to assign users or user groups to an application group:
696
696
697
-
- To assign users to the application group, run the following commands:
697
+
- To assign users to the application group, run the following commands:
Here's how to assign users or user groups to an application group by using the [role](/cli/azure/role/assignment) extension for the Azure CLI:
732
-
733
-
- In the same CLI session, use the `az role assignment create` command with the following examples to assign users or user groups to an application group:
734
-
735
-
- To assign users to the application group, run the following commands:
736
-
737
-
```azurecli
738
-
# Get the resource ID of the application group that you want to add to the workspace
739
-
appGroupPath=$(az desktopvirtualization applicationgroup show \
740
-
--name <Name> \
741
-
--resource-group <ResourceGroupName> \
742
-
--query [id] \
743
-
--output tsv)
744
-
745
-
# Assign users to the application group
746
-
az role assignment create \
747
-
--assignee '<UserPrincipalName>' \
748
-
--role 'Desktop Virtualization User' \
749
-
--scope $appGroupPath
750
-
```
751
-
752
-
- To assign user groups to the application group, run the following commands:
753
-
754
-
```azurecli
755
-
# Get the resource ID of the application group that you want to add to the workspace
756
-
appGroupPath=$(az desktopvirtualization applicationgroup show \
757
-
--name <Name> \
758
-
--resource-group <ResourceGroupName> \
759
-
--query [id] \
760
-
--output tsv)
761
-
762
-
# Get the object ID of the user group that you want to assign to the application group
763
-
userGroupId=$(az ad group show \
764
-
--group <UserGroupName> \
765
-
--query [id] \
766
-
--output tsv)
767
-
768
-
# Assign users to the application group
769
-
az role assignment create \
770
-
--assignee $userGroupId \
771
-
--role 'Desktop Virtualization User' \
772
-
--scope $appGroupPath
773
-
```
731
+
Here's how to assign users or user groups to an application group by using the [role](/cli/azure/role/assignment) extension for the Azure CLI.
732
+
733
+
In the same CLI session, use the `az role assignment create` command with the following examples to assign users or user groups to an application group:
734
+
735
+
- To assign users to the application group, run the following commands:
736
+
737
+
```azurecli
738
+
# Get the resource ID of the application group that you want to add to the workspace
739
+
appGroupPath=$(az desktopvirtualization applicationgroup show \
740
+
--name <Name> \
741
+
--resource-group <ResourceGroupName> \
742
+
--query [id] \
743
+
--output tsv)
744
+
745
+
# Assign users to the application group
746
+
az role assignment create \
747
+
--assignee '<UserPrincipalName>' \
748
+
--role 'Desktop Virtualization User' \
749
+
--scope $appGroupPath
750
+
```
751
+
752
+
- To assign user groups to the application group, run the following commands:
753
+
754
+
```azurecli
755
+
# Get the resource ID of the application group that you want to add to the workspace
756
+
appGroupPath=$(az desktopvirtualization applicationgroup show \
757
+
--name <Name> \
758
+
--resource-group <ResourceGroupName> \
759
+
--query [id] \
760
+
--output tsv)
761
+
762
+
# Get the object ID of the user group that you want to assign to the application group
0 commit comments