Create a new WVD (Windows Virtual Desktop) tenant
This file contains 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