Skip to content

Commit 3628aa9

Browse files
authored
Merge pull request #54444 from michawets/patch-8
Downloading the scripts moved down & automated
2 parents 6b9d283 + 9768956 commit 3628aa9

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

articles/virtual-desktop/virtual-desktop-fall-2019/manage-resources-using-ui-powershell.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ Before deploying the management tool, you'll need an Azure Active Directory (Azu
3838
- Have permission to create resources in your Azure subscription
3939
- Have permission to create an Azure AD application. Follow these steps to check if your user has the required permissions by following the instructions in [Required permissions](../../active-directory/develop/howto-create-service-principal-portal.md#required-permissions).
4040

41-
In order to successfully deploy and configure the management tool, you first need to download the following PowerShell scripts from the [RDS-Templates GitHub repo](https://github.com/Azure/RDS-Templates/tree/master/wvd-templates/wvd-management-ux/deploy/scripts) and save them to the same folder on your local machine.
42-
43-
- createWvdMgmtUxAppRegistration.ps1
44-
- updateWvdMgmtUxApiUrl.ps1
45-
4641
After you deploy and configure the management tool, we recommend you ask a user to launch the management UI to make sure everything works. The user who launches the management UI must have a role assignment that lets them view or edit the Windows Virtual Desktop tenant.
4742

4843
## Set up PowerShell
@@ -68,11 +63,23 @@ Keep the PowerShell window you used to sign in open to run additional PowerShell
6863
6964
## Create an Azure Active Directory app registration
7065
66+
In order to successfully deploy and configure the management tool, you first need to download the following PowerShell scripts from the [RDS-Templates GitHub repo](https://github.com/Azure/RDS-Templates/tree/master/wvd-templates/wvd-management-ux/deploy/scripts)
67+
68+
```powershell
69+
Set-Location -Path "c:\temp"
70+
$uri = "https://raw.githubusercontent.com/Azure/RDS-Templates/master/wvd-templates/wvd-management-ux/deploy/scripts/createWvdMgmtUxAppRegistration.ps1"
71+
Invoke-WebRequest -Uri $uri -OutFile ".\createWvdMgmtUxAppRegistration.ps1"
72+
$uri = "https://raw.githubusercontent.com/Azure/RDS-Templates/master/wvd-templates/wvd-management-ux/deploy/scripts/updateWvdMgmtUxApiUrl.ps1"
73+
Invoke-WebRequest -Uri $uri -OutFile ".\updateWvdMgmtUxApiUrl.ps1"
74+
```
75+
7176
Run the following commands to create the app registration with required API permissions:
7277

7378
```powershell
7479
$appName = Read-Host -Prompt "Enter a unique name for the management tool's app registration. The name can't contain spaces or special characters."
75-
$subscriptionId = Read-Host -Prompt "Enter the Azure subscription ID where you will be deploying the management tool."
80+
$azureSubscription = Get-AzSubscription | Out-GridView -PassThru
81+
$subscriptionId = $azureSubscription.Id
82+
Get-AzSubscription -SubscriptionId $subscriptionId | Select-AzSubscription
7683
7784
.\createWvdMgmtUxAppRegistration.ps1 -AppName $appName -SubscriptionId $subscriptionId
7885
```

0 commit comments

Comments
 (0)