Created
April 13, 2019 07:40
-
-
Save OmerMicrosoft/38bfd9f8c0536298e26c960b6cb17624 to your computer and use it in GitHub Desktop.
Create a new WVD (Windows Virtual Desktop) tenant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$BrokerURL = "https://rdbroker.wvd.microsoft.com" | |
Add-RdsAccount -DeploymentUrl $BrokerURL -Credential $Credentials | |
$RDSTenantName = Read-Host "Enter RDS tenant name" | |
$NewRDSTenant = New-RdsTenant -Name $RDSTenantName -AadTenantId $SelectedAzureSubscription.TenantId -AzureSubscriptionId $SelectedAzureSubscription.SubscriptionId | |
if ($NewRDSTenant) { | |
Write-Host "A new RDS tenant was created with the name $($NewRDSTenant.TenantName)" -ForegroundColor Green | |
} | |
else { | |
Write-Host "The creation of a new RDS tenant was failed." -ForegroundColor Red | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment