Skip to content

Commit cb326c0

Browse files
committed
Minor tweaks for consistency
1 parent 0945108 commit cb326c0

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

articles/virtual-desktop/app-attach-setup.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,13 @@ Here's how to add an MSIX or Appx image as an app attach package using the [Az.D
207207
$app = Import-AzWvdAppAttachPackageInfo @parameters
208208
```
209209

210-
4. Check you only have one object in the application properties by running the following command:
210+
4. Check you only have one object in the application properties by running the following commands:
211211

212212
```azurepowershell
213213
$app | FL *
214214
```
215215

216-
*Optional*: if you have more than one object in the output, for example an x64 and an x86 version of the same application, you can use the parameter `PackageFullName` to specify which application you want to add by running the following command:
216+
*Optional*: if you have more than one object in the output, for example an x64 and an x86 version of the same application, you can use the parameter `PackageFullName` to specify which application you want to add by running the following commands:
217217

218218
```azurepowershell
219219
# Specify the package full name
@@ -247,7 +247,7 @@ Here's how to add an MSIX or Appx image as an app attach package using the [Az.D
247247

248248
There's no output when the package is added successfully.
249249

250-
6. You can verify the package is added by running the following command:
250+
6. You can verify the package is added by running the following commands:
251251

252252
```azurepowershell
253253
$parameters = @{
@@ -313,7 +313,7 @@ Here's how to assign an application package to host pools as well as groups and
313313
> [!IMPORTANT]
314314
> The host pool IDs you specify each time will overwrite any existing assignments. If you want to add or remove a host pool to or from an existing list of host pools, you need to specify all the host pools you want to assign the application to.
315315
316-
1. In the same PowerShell session, get the resource IDs of the host pool(s) you want to assign the application to and add them to an array to by running the following command:
316+
1. In the same PowerShell session, get the resource IDs of the host pool(s) you want to assign the application to and add them to an array to by running the following commands:
317317

318318
```azurepowershell
319319
# Add a comma-separated list of host pools names
@@ -326,7 +326,7 @@ Here's how to assign an application package to host pools as well as groups and
326326
}
327327
```
328328

329-
1. Once you have the resource IDs of the host pool(s), you can assign the application package to them by running the following command:
329+
1. Once you have the resource IDs of the host pool(s), you can assign the application package to them by running the following commands:
330330

331331
```azurepowershell
332332
$parameters = @{
@@ -339,7 +339,7 @@ Here's how to assign an application package to host pools as well as groups and
339339
Update-AzWvdAppAttachPackage @parameters
340340
```
341341

342-
1. To unassign the application package from all host pools, you can pass an empty array of host pools by running the following command:
342+
1. To unassign the application package from all host pools, you can pass an empty array of host pools by running the following commands:
343343

344344
```azurepowershell
345345
$parameters = @{
@@ -358,7 +358,7 @@ Here's how to assign an application to groups and users using the [Az.DesktopVir
358358

359359
1. Get the object ID of the groups or users you want to add to or remove from the application and add them to an array to by using one of the following examples. We recommend you assign applications to groups.
360360

361-
1. Get the object ID of the group or groups and add them to an array to by running the following command. This example uses the group display name:
361+
1. Get the object ID of the group or groups and add them to an array to by running the following commands. This example uses the group display name:
362362

363363
```azurepowershell
364364
# Add a comma-separated list of group names
@@ -375,7 +375,7 @@ Here's how to assign an application to groups and users using the [Az.DesktopVir
375375
}
376376
```
377377
378-
1. Get the object ID of the user(s) and add them to an array to by running the following command. This example uses the user principal name (UPN):
378+
1. Get the object ID of the user(s) and add them to an array to by running the following commands. This example uses the user principal name (UPN):
379379
380380
```azurepowershell
381381
# Add a comma-separated list of user principal names
@@ -385,42 +385,42 @@ Here's how to assign an application to groups and users using the [Az.DesktopVir
385385
Connect-MgGraph -Scopes 'User.Read.All'
386386
387387
# Create an array and add the ID for each user
388-
$Ids = @()
388+
$userIds = @()
389389
390390
foreach ($user in $users) {
391-
$Ids += (Get-MgUser | ? UserPrincipalName -eq $user).Id
391+
$userIds += (Get-MgUser | ? UserPrincipalName -eq $user).Id
392392
}
393393
```
394394
395395
1. Once you have the object IDs of the users or groups, you can add them to or remove them from the application by using one of the following examples, which assigns the [Desktop Virtualization User](rbac.md#desktop-virtualization-user) RBAC role.
396396
397-
1. To add the groups or users to the application, run the following command:
397+
1. To add the groups or users to the application, run the following commands:
398398
399399
```azurepowershell
400-
$getParameters = @{
400+
$parameters = @{
401401
Name = '<AppName>'
402402
ResourceGroupName = '<ResourceGroupName>'
403403
}
404404
405-
$appAttachPackage = Get-AzWvdAppAttachPackage @getParameters
405+
$appAttachPackage = Get-AzWvdAppAttachPackage @parameters
406406
407-
foreach ($item in $Ids) {
408-
New-AzRoleAssignment -ObjectId $item -RoleDefinitionName "Desktop Virtualization User" -Scope $appAttachPackage.Id
407+
foreach ($userId in $userIds) {
408+
New-AzRoleAssignment -ObjectId $userId -RoleDefinitionName "Desktop Virtualization User" -Scope $appAttachPackage.Id
409409
}
410410
```
411411
412-
1. To remove the groups or users to the application, run the following command:
412+
1. To remove the groups or users to the application, run the following commands:
413413
414414
```azurepowershell
415-
$getParameters = @{
415+
$parameters = @{
416416
Name = '<AppName>'
417417
ResourceGroupName = '<ResourceGroupName>'
418418
}
419419
420-
$appAttachPackage = Get-AzWvdAppAttachPackage @getParameters
420+
$appAttachPackage = Get-AzWvdAppAttachPackage @parameters
421421
422-
foreach ($item in $Ids) {
423-
Remove-AzRoleAssignment -ObjectId $item -RoleDefinitionName "Desktop Virtualization User" -Scope $appAttachPackage.Id
422+
foreach ($userId in $userIds) {
423+
Remove-AzRoleAssignment -ObjectId $userId -RoleDefinitionName "Desktop Virtualization User" -Scope $appAttachPackage.Id
424424
}
425425
```
426426
@@ -518,7 +518,7 @@ Here's how to add an application from the package you added in this article to a
518518
519519
Here's how to add an application from the package you added in this article to a RemoteApp application group using the [Az.DesktopVirtualization](/powershell/module/az.desktopvirtualization/) PowerShell module.
520520
521-
1. In the same PowerShell session, if there are multiple applications in the package, you need to get the application ID of the application you want to add from the package by running the following command:
521+
1. In the same PowerShell session, if there are multiple applications in the package, you need to get the application ID of the application you want to add from the package by running the following commands:
522522
523523
```azurepowershell
524524
Write-Host "These are the application IDs available in the package. Many packages only contain one application." -ForegroundColor Yellow
@@ -541,7 +541,7 @@ Here's how to add an application from the package you added in this article to a
541541
New-AzWvdApplication @parameters
542542
```
543543

544-
1. Verify the list of applications in the application group by running the following command:
544+
1. Verify the list of applications in the application group by running the following commands:
545545

546546
```azurepowershell
547547
$parameters = @{
@@ -586,7 +586,7 @@ Here's how to update an existing package using the Azure portal:
586586

587587
Here's how to update an existing package using the [Az.DesktopVirtualization](/powershell/module/az.desktopvirtualization/) PowerShell module.
588588

589-
1. In the same PowerShell session, get the properties of the updated application and store them in a variable by running the following command:
589+
1. In the same PowerShell session, get the properties of the updated application and store them in a variable by running the following commands:
590590

591591
```azurepowershell
592592
# Get the properties of the application
@@ -599,13 +599,13 @@ Here's how to update an existing package using the [Az.DesktopVirtualization](/p
599599
$app = Import-AzWvdAppAttachPackageInfo @parameters
600600
```
601601

602-
1. Check you only have one object in the application properties by running the following command:
602+
1. Check you only have one object in the application properties by running the following commands:
603603

604604
```azurepowershell
605605
$app | FL *
606606
```
607607

608-
If you have more than one object in the output, for example an x64 and an x86 version of the same application, you can use the parameter `PackageFullName` to specify which one you want to add by running the following command:
608+
If you have more than one object in the output, for example an x64 and an x86 version of the same application, you can use the parameter `PackageFullName` to specify which one you want to add by running the following commands:
609609

610610
```azurepowershell
611611
# Specify the package full name
@@ -709,7 +709,7 @@ Here's how to add an MSIX package using the [Az.DesktopVirtualization](/powershe
709709
710710
[!INCLUDE [include-cloud-shell-local-powershell](includes/include-cloud-shell-local-powershell.md)]
711711

712-
2. Get the properties of the application in the MSIX image you want to add and store them in a variable by running the following command:
712+
2. Get the properties of the application in the MSIX image you want to add and store them in a variable by running the following commands:
713713

714714
```azurepowershell
715715
# Get the properties of the MSIX image
@@ -730,13 +730,13 @@ Here's how to add an MSIX package using the [Az.DesktopVirtualization](/powershe
730730
hp01/expandmsiximage
731731
```
732732

733-
3. Check you only have one object in the application properties by running the following command:
733+
3. Check you only have one object in the application properties by running the following commands:
734734

735735
```azurepowershell
736736
$app | FL *
737737
```
738738

739-
If you have more than one object in the output, for example an x64 and an x86 version of the same application, you can use the parameter `PackageFullName` to specify which one you want to add by running the following command:
739+
If you have more than one object in the output, for example an x64 and an x86 version of the same application, you can use the parameter `PackageFullName` to specify which one you want to add by running the following commands:
740740

741741
```azurepowershell
742742
# Specify the package full name
@@ -769,7 +769,7 @@ Here's how to add an MSIX package using the [Az.DesktopVirtualization](/powershe
769769

770770
There's no output when the MSIX package is added successfully.
771771

772-
5. You can verify the MSIX package is added by running the following command:
772+
5. You can verify the MSIX package is added by running the following commands:
773773

774774
```azurepowershell
775775
$parameters = @{
@@ -829,7 +829,7 @@ Here's how to change a package's registration type and state using the Azure por
829829

830830
Here's how to change a package's registration type and state using the [Az.DesktopVirtualization](/powershell/module/az.desktopvirtualization/) PowerShell module.
831831

832-
1. In the same PowerShell session, get a list of MSIX packages on a host pool and their current registration type and state by running the following command:
832+
1. In the same PowerShell session, get a list of MSIX packages on a host pool and their current registration type and state by running the following commands:
833833

834834
```azurepowershell
835835
$parameters = @{
@@ -947,7 +947,7 @@ Here's how to add MSIX applications to an application group using the [Az.Deskto
947947
New-AzWvdApplication @parameters
948948
```
949949
950-
1. To add an MSIX application to a RemoteApp application group, if there are multiple applications in the package, you need to get the application ID of the application you want to add from the package by running the following command:
950+
1. To add an MSIX application to a RemoteApp application group, if there are multiple applications in the package, you need to get the application ID of the application you want to add from the package by running the following commands:
951951
952952
```azurepowershell
953953
Write-Host "These are the application IDs available in the package. Many packages only contain one application." -ForegroundColor Yellow
@@ -970,7 +970,7 @@ Here's how to add MSIX applications to an application group using the [Az.Deskto
970970
New-AzWvdApplication @parameters
971971
```
972972
973-
Verify the list of applications in the application group by running the following command:
973+
Verify the list of applications in the application group by running the following commands:
974974
975975
```azurepowershell
976976
$parameters = @{
@@ -1004,7 +1004,7 @@ Here's how to remove an MSIX package from your host pool using the Azure portal:
10041004
10051005
Here's how to remove applications using the [Az.DesktopVirtualization](/powershell/module/az.desktopvirtualization/) PowerShell module.
10061006
1007-
1. In the same PowerShell session, get a list of MSIX packages on a host pool by running the following command:
1007+
1. In the same PowerShell session, get a list of MSIX packages on a host pool by running the following commands:
10081008
10091009
```azurepowershell
10101010
$parameters = @{
@@ -1023,7 +1023,7 @@ Here's how to remove applications using the [Az.DesktopVirtualization](/powershe
10231023
My App \\fileshare\Apps\MyApp\MyApp.cim hp01/MyApp_1.0.0.0_neutral__abcdef123ghij 1.0.0.0
10241024
```
10251025

1026-
1. Find the package you want to remove and use the value for the `Name` parameter, but remove the **host pool name** and `/` from the start. For example, `hp01/MyApp_1.0.0.0_neutral__abcdef123ghij` becomes `MyApp_1.0.0.0_neutral__abcdef123ghij`. Then remove the package by running the following command:
1026+
1. Find the package you want to remove and use the value for the `Name` parameter, but remove the **host pool name** and `/` from the start. For example, `hp01/MyApp_1.0.0.0_neutral__abcdef123ghij` becomes `MyApp_1.0.0.0_neutral__abcdef123ghij`. Then remove the package by running the following commands:
10271027

10281028
```azurepowershell
10291029
$parameters = @{

0 commit comments

Comments
 (0)