Search This Blog

Tuesday, April 27, 2021

Deploy windows virtual desktop with Azure AD DS -- got this working

got this AZURE AD DS GOING WITH windows virtual desktop

failed a couple of times due to rdstenant name is not the same with the domain name like

myboomer = myboomer.xyz

if Xboomer ~= myboomer.xyz , then it will fail, I dont see why that should matter, but after I changed it to be the same,  I got a deployment success

 make your password 12 chars long so it will be easier to join the domain

https://rdweb.wvd.microsoft.com/

Import-Module -Name Az

Import-Module -Name Microsoft.RDInfra.RDPowerShell

$brokerurl = "https://rdbroker.wvd.microsoft.com"

$aadTenantId = "the tenant ID used in the previous steps"

$azureSubscriptionId = "the subscription for this deployment"

Add-RdsAccount -DeploymentUrl $brokerurl

New-RdsTenant -Name "WVDTenantNameOfYourChoice-actually not in my case" -AadTenantId $aadTenantId -AzureSubscriptionId $azureSubscriptionId

Add-RdsAppGroupUser   “Desktop Application Group” -UserPrincipalName 

Get-RdsTenant
Get-RdsRoleAssignment
Get-RdsHostPool -TenantName 
Get-RdsAppGroup -TenantName  -HostPoolName 
Get-RdsAppGroupUser


here is a good reference

https://medium.com/@onlywhale/wvd-deploy-windows-virtual-desktop-with-azure-ad-ds-c1ab8ea40924


here are the errors I got when the deployment fail

Deployment template validation failed: 'The template resource '_artifactsLocation' at line '70' and column '31' is not valid: 

The language expression property 'templateLink' doesn't exist, available properties 

are 'template, templateHash, parameters, mode, debugSetting, provisioningState'.. 

Please see https://aka.ms/arm-template-expressions for usage details.'. (Code: InvalidTemplate)


No comments:

Post a Comment