%3CLINGO-SUB%20id%3D%22lingo-sub-1225555%22%20slang%3D%22en-US%22%3EDeploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1225555%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3ETerraform%20is%20a%20tool%20that%20enables%20you%20to%20completely%20automate%20infrastructure%20builds%20through%20configuration%20files.%20It%20provides%20versioning%20for%20configurations%2C%20which%20makes%20it%20easy%20to%20deploy%20and%20maintain%20your%20existing%20Windows%20Virtual%20Desktop%20deployments%20on%20Microsoft%20Azure.%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EThe%20following%20guide%20below%20describes%20how%20to%20deploy%20a%20new%20host%20pool%20or%20modify%20an%20existing%20host%20pool%20within%20Windows%20Virtual%20Desktop%20using%20Terraform.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3ENote%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3E%3A%20Terraform%20is%20an%20open%20source%20tool%20hosted%20in%20GitHub.%20As%20such%2C%20it%20is%20published%20%22as%20is%22%20with%20no%20implied%20support%20from%20Microsoft%20or%20any%20other%20organization.%20However%2C%20we%20would%20like%20to%20welcome%20you%20to%20open%20issues%20using%20GitHub%20issues%20to%20collaborate%20toward%20future%20improvements%20to%20the%20tool.%20%3CSTRONG%3ESpecial%20thanks%20to%20Matt%20Betts%20for%20his%20major%20contribution.%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%20id%3D%22toc-hId--1385836245%22%3EOverview%20and%20requirements%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EThe%20steps%20listed%20below%20must%20be%20completed%20in%20order%20to%20deploy%20a%20Windows%20Virtual%20Desktop%20host%20pool%20with%20Terraform.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EEnsure%20that%20you%20meet%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-desktop%2Foverview%23requirements%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Erequirements%20for%20Windows%20Virtual%20Desktop%3C%2FA%3E.%3COL%3E%0A%3CLI%3EDC%2FAAD%20DS%3C%2FLI%3E%0A%3CLI%3EWVD%20tenant%20must%20be%20created%3C%2FLI%3E%0A%3CLI%3ETenantCreator%20role%20must%20be%20assigned%3C%2FLI%3E%0A%3CLI%3EVNET%20configured%20with%20Layer%203%20access%20to%20DC%2FAAD%20DS%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3ETerraform%20must%20be%20installed%20and%20configured%20as%20outlined%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fterraform%2Fterraform-install-configure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FLI%3E%0A%3CLI%3ETerraform%20code%20from%20GitHub%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-sh%2Fterraform-azurerm-windowsvirtualdesktop%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Erepository%3C%2FA%3E%20is%20downloaded%20to%20a%20local%20folder.%3C%2FLI%3E%0A%3CLI%3ETerraform%20files%20%3CSTRONG%3Evariables.tf%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Evariables_tags.tf%20%3C%2FSTRONG%3Eare%20update.%3C%2FLI%3E%0A%3CLI%3ETerraform%20deployment%20is%20started.%20A%20sample%20process%20for%20deploying%20available%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fterraform%2Fterraform-install-configure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3COL%3E%0A%3CLI%3Eterraform%20init%3C%2FLI%3E%0A%3CLI%3Eterraform%20plan%3C%2FLI%3E%0A%3CLI%3Eterraform%20apply%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EValidate%20session%20host%20VMs%20are%20deployed%20and%20heart%20beating%20via%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2FGet-RdsSessionHost%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGet-RdsSessionHost%3C%2FA%3E.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%20id%3D%22toc-hId-1101676588%22%3ESetting%20up%20Terraform%26nbsp%3B%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EWhen%20you%20are%20new%20to%20Terraform.%20Please%20have%20a%20look%20at%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fterraform%2Fterraform-vscode-extension%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%3C%2FA%3E%20article%20outlines%20the%20steps%20needed%20to%20get%20started%20with%20Visual%20Studio%20Code%2C%20Terraform%20and%20Azure.%3C%2FP%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%20id%3D%22toc-hId--705777875%22%3EPreparing%20Azure%20subscription%20and%20WVD%20for%20Terraform%3C%2FH2%3E%0A%3CP%3EPreparing%20the%20Azure%20subscription%20mean%20that%20we%20need%20to%20make%20sure%20that%20the%20account%20we%20are%20going%20to%20be%20used%20has%20the%20necessary%20permission%20to%20deploy%20new%20resources.%20Additionally%2C%20prior%20to%20updating%20the%20Terraform%20scripts%20create%20a%20resource%20group%20that%20will%20be%20tied%20to%20the%20Terraform%20deployment.%3C%2FP%3E%0A%3CP%3EWhen%20it%20comes%20to%20WVD%20the%20preparation%20steps%20cover%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EGranting%20%3CSTRONG%3ETenantCreator%3C%2FSTRONG%3E%20to%20the%20user%20account%20we%20are%20going%20to%20be%20using%3C%2FLI%3E%0A%3CLI%3ECreating%20a%20WVD%20tenant%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%20id%3D%22toc-hId-1781734958%22%3EGetting%20access%20to%20Terraform%20templates%3C%2FH2%3E%0A%3CP%3ETo%20start%20all%20files%20that%20are%20listed%20in%20the%20folder%20must%20be%20downloaded%20to%20a%20local%20folder.%20All%20Terraform%20files%20needed%20for%20deployment%20are%20available%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-sh%2Fterraform-azurerm-windowsvirtualdesktop%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%3C%2FA%3E%20repository.%3C%2FP%3E%0A%3CP%3EBelow%20is%20a%20brief%20description%20for%20each%20file%20and%20its%20purpose.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAvailability_set.tf%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20file%20contains%20the%20setting%20needed%20to%20set%20the%20availability%20set%20of%20VMs.%20In%20most%20basic%20deployments%20this%20file%20does%20not%20require%20changes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EOutputs.tf%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20file%20displays%20certain%20variables%20that%20should%20be%20captured%20at%20the%20end%20of%20the%20execution.%20A%20detailed%20description%20of%20outputs%20in%20Terraforms%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fwww.terraform.io%2Fdocs%2Fconfiguration%2Foutputs.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20In%20most%20basic%20deployments%20this%20file%20does%20not%20require%20changes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EVariables.tf%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20file%20contains%20all%20the%20modifiable%20input%20variables%20that%20define%20the%20behavior%20and%20outcome%20of%20running%20terraforms.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EVariables_tags.tf%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20file%20contains%20can%20be%20used%20to%20define%20custom%20tags%20as%20they%20are%20used%20throughout%20Terraforms.%20In%20most%20basic%20deployments%20this%20file%20does%20not%20require%20changes.%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Fmanagement%2Ftag-resources%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EThis%3C%2FA%3E%20document%20outlines%20the%20benefits%20of%20using%20tags.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EVirtual_machine.tf%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20file%20contains%20code%20needed%20for%20setting%20up%20the%20individual%20VMs%20and%20their%20configuration.%20In%20most%20basic%20deployments%20this%20file%20does%20not%20require%20changes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EVirtual_machine_extensions.tf%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20file%20contains%20code%20needed%20for%20running%20the%20customer%20script%20extensions%20that%20perform%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDomain%20join%3C%2FLI%3E%0A%3CLI%3ERegistration%20of%20the%20VM%20with%20the%20WVD%20service.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%20id%3D%22toc-hId--25719505%22%3EConfiguring%20Terraform%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EPrior%20to%20running%20the%20Terraform%20variables.tf%20must%20be%20modified%20to%20reflect%20your%20environment.%20The%20table%20that%20follows%20outlines%20each%20input%20parameter%20and%20what%20is%20to%20be%20set%20to%20when%20deploying%20Windows%20Virtual%20Desktop.%3C%2FP%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%2295%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3EName%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3EDescription%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3EType%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3EDefault%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3ERequired%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Esubnet_id%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EID%20of%20the%20Subnet%20in%20which%20the%20machines%20will%20exist.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Etenant_app_password%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20password%20of%20the%20tenant%20app.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Etenant_app_id%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EUPN%20for%20the%20user%20with%20permissions%20in%20WVD%20allowing%20for%20creation%20of%20a%20host%20pool%20(RD%20Contributor%20and%2For%20RD%20Owner).%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eaad_tenant_id%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EAzure%20tenant%20ID.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eou_path%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EOU%20path%20to%20use%20when%20domain%20joining.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Elog_analytics_workspace_id%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EWorkspace%20ID%20of%20the%20Log%20Analytics%20Workspace%20to%20associate%20the%20session%20host%20VMs%20to.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_timezone%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EDefines%20the%20time%20zone%20which%20a%20VM%20is%20going%20to%20use.%20List%20of%20time%20zone%20names%20available%20%3CA%20href%3D%22https%3A%2F%2Fjackstromberg.com%2F2017%2F01%2Flist-of-time-zones-consumed-by-azure%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Elog_analytics_workspace_primary_shared_key%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EPrimary%20Shared%20Key%20of%20the%20Log%20Analytics%20Workspace%20to%20associate%20the%20VMs%20with.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eresource_group_name%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EName%20of%20the%20resource%20group%20in%20which%20Terraform%20will%20deploy%20resources.%20This%20group%20must%20be%20created%20manually%20before%20deploying.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eregion%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20region%20in%20which%20to%20deploy%20the%20resources.%20The%20region%20must%20be%20such%20that%20the%20newly%20provisioned%20VM%20can%20communicate%20with%20the%20domain%20controller.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Ehost_pool_name%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EName%20of%20the%20session%20host%20pool.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_prefix%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EPrefix%20to%20be%20added%20to%20each%20VM%20as%20host%20name.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Etenant_name%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EName%20of%20WVD%20tenant.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Erdsh_count%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENumber%20of%20session%20host%20VM%20to%20be%20deployed.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EInt%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EOnly%20if%20deploying%20more%20than%201%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Emanaged_disk_type%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20type%20of%20managed%20disk(s)%20to%20attach.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EStandard_LRS%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3EtenantLocation%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20region%20in%20which%20the%20RDS%20tenant%20exists.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3Eeastus%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_size%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EVM%20size.%20Full%20list%20of%20SKUs%20available%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcloud-services%2Fcloud-services-sizes-specs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EStandard_F2s%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Ensg_id%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20ID%20of%20the%20NSG%20to%20associate%20the%20network%20interface.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eexisting_tenant_group_name%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E(deprecated)%20Name%20of%20the%20WVD%20tenant%20group.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EDefault%20Tenant%20Group%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Ebase_url%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20URL%20in%20which%20the%20RDS%20components%20exists.%20This%20will%20need%20to%20be%20modified%20if%20the%20Github%20repo%20is%20forked.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FRDS-Templates%2Fmaster%2Fwvd-templates%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FRDS-Templates%2Fmaster%2Fwvd-templates%3C%2FA%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Emanaged_disk_sizes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20sizes%20of%20the%20optional%20managed%20data%20disks.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EList%20(String)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Ehost_pool_description%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EDescription%20of%20the%20session%20host%20pool.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ECreated%20through%20Terraform%20template%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eis_service_principal%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIs%20a%20service%20principal%20being%20used%20for%20configuring%20WVD.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3Etrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3ERDBrokerURL%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EURL%20of%20the%20RD%20Broker.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Frdbroker.wvd.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Frdbroker.wvd.microsoft.com%3C%2FA%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eas_platform_fault_domain_count%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fblob%2Fmaster%2Fincludes%2Fmanaged-disks-common-fault-domain-region-list.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fblob%2Fmaster%2Fincludes%2Fmanaged-disks-common-fault-domain-region-list.md%3C%2FA%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EInt%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E3%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eas_platform_update_domain_count%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fblob%2Fmaster%2Fincludes%2Fmanaged-disks-common-fault-domain-region-list.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fblob%2Fmaster%2Fincludes%2Fmanaged-disks-common-fault-domain-region-list.md%3C%2FA%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EInt%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E5%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eextension_bginfo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EShould%20BGInfo%20be%20attached%20to%20all%20servers.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3Etrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eextension_loganalytics%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EShould%20Log%20Analytics%20agent%20be%20attached%20to%20all%20servers.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3Etrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eextension_custom_script%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EShould%20a%20custom%20script%20extension%20be%20run%20on%20all%20servers.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3Efalse%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Elocal_admin_username%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EName%20of%20the%20local%20admin%20account%20that%20will%20be%20created%20on%20each%20of%20the%20VM.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3Erdshadm%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Edomain_joined%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EDefines%20if%20a%20domain%20join%20is%20to%20be%20performed.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%20(Bool)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3Etrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eregistration_expiration_hours%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20registration%20token%20expiration%20window%20(in%20hours).%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E48%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_storage_os_disk_size%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20size%20of%20the%20OS%20disk.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E128%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_version%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EVersion%20of%20the%20VM%20image.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bvm_image_id%26nbsp%3Bis%20not%20set%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_sku%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EThe%20SKU%20of%20the%20VM%20image.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bvm_image_id%26nbsp%3Bis%20not%20set%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_offer%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EOffer%20of%20the%20VM%20image.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bvm_image_id%26nbsp%3Bis%20not%20set%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_publisher%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EPublisher%20of%20the%20base%20image%20to%20be%20used%20for%20provisioning%20the%20session%20host%20VMs.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bvm_image_id%26nbsp%3Bis%20not%20set%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eextensions_custom_script_fileuris%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EFile%20URIs%20to%20be%20consumed%20by%20the%20custom%20script%20extension%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EList%20(String)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bextension_custom_script%26nbsp%3Bis%20set%20to%26nbsp%3Btrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Eextensions_custom_command%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3ECommand%20for%20the%20custom%20script%20extension%20to%20run%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bextension_custom_script%26nbsp%3Bis%20set%20to%26nbsp%3Btrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Edomain_name%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EDomain%20name%20of%20the%20domain%20to%20which%20the%20session%20host%20VMs%20are%20to%20be%20joined.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bdomain_joined%26nbsp%3Bis%20set%20to%26nbsp%3Btrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Edomain_user_upn%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EUPN%20of%20domain%20account%20that%20has%20permissions%20to%20perform%20domain%20join.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bdomain_joined%26nbsp%3Bis%20set%20to%26nbsp%3Btrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Edomain_password%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EPassword%20of%20the%20domain%20account%20that%20will%20perform%20the%20domain%20join.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%26nbsp%3Bdomain_joined%26nbsp%3Bis%20set%20to%26nbsp%3Btrue%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3Evm_image_id%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EID%20of%20the%20custom%20image%20to%20use.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EString%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%3E%3CP%3EIf%20no%20vm%20image%20attributes%20are%20set%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%20id%3D%22toc-hId--1833173968%22%3EDeploying%20with%20Terraform%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EThis%20is%20the%20main%20section%20of%20this%20document%20as%20it%20covers%20the%20core%20steps%20needed%20to%20deploy%20WVD%20host%20pool%20with%20Terraform%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EDownload%20or%20%E2%80%9Cfork%E2%80%9D%20all%20Terraform%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-sh%2Fterraform-azurerm-windowsvirtualdesktop%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Escripts%3C%2FA%3E%20in%20a%20local%20directory.%3C%2FLI%3E%0A%3CLI%3EOpen%20Visual%20Studio%20Code%20(VSC)%20and%20select%20%3CSTRONG%3EFile%20%26gt%3B%20Open%20Folder%3C%2FSTRONG%3E%2C%20and%20then%20point%20to%20the%20local%20folder%20where%20Terraform%20scripts%20have%20been%20downloaded.%3C%2FLI%3E%0A%3CLI%3EUpdate%20variables.tf.%3C%2FLI%3E%0A%3CLI%3EIn%20VSC%20press%20%3CSTRONG%3ECtrl%20%2B%20Shift%20%2B%20P%20%3C%2FSTRONG%3Eand%20select%20%3CSTRONG%3EAzure%20Terraform%3A%20Init%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EOnce%20this%20completes%20%3CSTRONG%3ECtrl%20%2B%20Shift%20%2B%20P%20%3C%2FSTRONG%3Eand%20select%20%3CSTRONG%3EAzure%20Terraform%3A%20Init%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EPress%20%3CSTRONG%3ECtrl%20%2B%20Shift%20%2B%20P%20%3C%2FSTRONG%3Eand%20select%20%3CSTRONG%3EAzure%20Terraform%3A%20Plan%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EReview%20the%20generated%20plan%3C%2FLI%3E%0A%3CLI%3EPress%20%3CSTRONG%3ECtrl%20%2B%20Shift%20%2B%20P%20%3C%2FSTRONG%3Eand%20select%3C%2FLI%3E%0A%3CLI%3EAzure%20Terraform%3A%20Apply%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%20id%3D%22toc-hId-654338865%22%3ETroubleshooting%20Terraform%20deployment%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3ETerraform%20deployment%20can%20fail%20in%20two%20main%20categories%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EIssues%20with%20Terraform%20code%3C%2FLI%3E%0A%3CLI%3EIssues%20with%20Desired%20State%20Configuration%20(DSC)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%20id%3D%22toc-hId--1153115598%22%3EIssues%20with%20Terraform%20code%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EWhile%20it%20is%20rare%20to%20have%20issues%20with%20the%20Terraform%20code%20it%20is%20still%20possible%2C%20however%20most%20often%20errors%20are%20due%20to%20bad%20input%20in%20variables.tf.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIf%20there%20are%20errors%20in%20the%20Terraform%20code%2C%20please%20file%20a%20GitHub%20issue.%3C%2FLI%3E%0A%3CLI%3EIf%20there%20are%20warning%20in%20the%20Terraform%20code%20feel%20free%20to%20ignore%20or%20address%20for%20your%20own%20instance%20of%20that%20code.%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EUsing%20Terraform%20error%20messages%20it's%20a%20good%20starting%20point%20towards%20identifying%20issues%20with%20input%20variables%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%20id%3D%22toc-hId-1334397235%22%3EIssues%20with%20DSC%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3ETo%20troubleshoot%20this%20type%20of%20issue%2C%20navigate%20to%20the%20Azure%20portal%20and%20if%20needed%20reset%20the%20password%20on%20the%20VM%20that%20failed%20DSC.%20Once%20you%20are%20able%20to%20log%20in%20to%20the%20VM%20review%20the%20log%20files%20in%20the%20following%20two%20folders%3A%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3E%3CSTRONG%3E%3CEM%3ENote%3A%20%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3EXXX%2C%20YY%2C%20and%20ZZ%20are%20version%20numbers%20that%20will%20change%20based%3C%2FEM%3E.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EC%3A%5CPackages%5CPlugins%5CMicrosoft.Compute.CustomScriptExtension%5CXXX%5CDownloads%5CYY%3C%2FLI%3E%0A%3CLI%3EC%3A%5CWindowsAzure%5CLogs%5CPlugins%5CMicrosoft.Compute.CustomScriptExtension%5CZZZ%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3ETo%20walk%20you%20through%20the%20processes%20outlined%20in%20this%20post%2C%20please%20watch%20my%20video%20tutorial%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2FYmbmpGdhI6w%22%20width%3D%22560%22%20height%3D%22315%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20allow%3D%22accelerometer%3B%20autoplay%3B%20encrypted-media%3B%20gyroscope%3B%20picture-in-picture%22%3E%3C%2FIFRAME%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1225555%22%20slang%3D%22en-US%22%3E%3CP%3EDeploy%20or%20modify%20a%20host%20pool%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1225555%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Virtual%20Desktop%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1228455%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1228455%22%20slang%3D%22en-US%22%3E%3CP%3EWhy%20terraform%20was%20chosen%20as%20IaaC%20instead%20of%20ARM%20bearing%20in%20mind%20this%20comes%20from%20Microsoft.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1230258%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1230258%22%20slang%3D%22en-US%22%3E%3CP%3EAt%207%3A30%20in%20the%20video%2C%20what%20is%20the%20admin%20UI%20you're%20using%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1236570%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1236570%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F582907%22%20target%3D%22_blank%22%3E%40scottpazelt%3C%2FA%3E%26nbsp%3BThis%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-templates%2Fwvd-management-ux%2Fdeploy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-templates%2Fwvd-management-ux%2Fdeploy%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1236577%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1236577%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F66962%22%20target%3D%22_blank%22%3E%40Gregory%20Suvalian%3C%2FA%3E%26nbsp%3BThere%20is%20plenty%20of%20ARM%20coverage%20when%20it%20comes%20to%20WVD%20and%20zero%20Terraform%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1269147%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1269147%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20version%20of%20Terraform%20and%20the%20AzureRM%20provider%20is%20this%20intended%20to%20work%20on%3F%20There%20is%20no%20definition%20of%20these%20basic%20items.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1269211%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1269211%22%20slang%3D%22en-US%22%3E%3CP%3EIts%20define%20of%20the%20code%20in%20github.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1269235%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1269235%22%20slang%3D%22en-US%22%3E%3CP%3EI%20must%20be%20missing%20it%20then.%20I%20can't%20find%20it%20in%20any%20of%20your%20tf%20configs.%20Can%20you%20tell%20me%20the%20versions%3F%20I%20think%20you%20are%20using%20implicit%20versioning.%20I%20saw%20on%20the%20screen%20that%20you%20were%20using%20AzureRM%20version%202.1.0.%20I'm%20running%20TF%200.12.21%20and%20seeing%20a%20lot%20of%20errors.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1403757%22%20slang%3D%22de-DE%22%3ESubject%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1403757%22%20slang%3D%22de-DE%22%3E%3CP%3EI%20guess%20I%20couldn't%20use%20this%20Terraform%20configuration%20for%20the%20WVD%20Spring%20Release%2C%20right%3F%20So%20far%20as%20I%20unterstand%2C%20is%20the%20architecture%20complety%20different.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1403845%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1403845%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F470307%22%20target%3D%22_blank%22%3E%40oliverroos%3C%2FA%3E%26nbsp%3Bright%20the%20PS%20modules%20hasn't%20been%20updated%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1403848%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1403848%22%20slang%3D%22en-US%22%3E%3CP%3EI%20got%20it%20working.%20It%20took%20a%20fair%20amount%20of%20alteration%20to%20update%20everything.%20I%20didn't%20document%20it%20-%20just%20plunged%20in.%20If%20you%20post%20your%20problems%2C%20I%20could%20probably%20set%20you%20straight.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1405542%22%20slang%3D%22en-US%22%3ERe%3A%20Deploying%20Windows%20Virtual%20Desktop%20host%20pools%20with%20Terraform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1405542%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F603334%22%20target%3D%22_blank%22%3E%402mOlaf%3C%2FA%3E%26nbsp%3BSo%20far%20I%20didn't%20try%20to%20deploy%20a%20Terraform%20configuration%20for%20WVD%20Spring%20Release.%26nbsp%3B%20Do%20I%20need%20just%20to%20update%20the%20script%20which%20does%20the%20%22%3CSPAN%3ERegistration%20of%20the%20VM%20with%20the%20WVD%20service.%22%3F%20Because%20all%20the%20other%20stuff%20isnt'%20WVD%20related%2C%20isn't%20it%3F%20Might%20you're%20willing%20to%20share%20your%20Terraform%20files%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Terraform is a tool that enables you to completely automate infrastructure builds through configuration files. It provides versioning for configurations, which makes it easy to deploy and maintain your existing Windows Virtual Desktop deployments on Microsoft Azure.

The following guide below describes how to deploy a new host pool or modify an existing host pool within Windows Virtual Desktop using Terraform.

Note: Terraform is an open source tool hosted in GitHub. As such, it is published "as is" with no implied support from Microsoft or any other organization. However, we would like to welcome you to open issues using GitHub issues to collaborate toward future improvements to the tool. Special thanks to Matt Betts for his major contribution.

Overview and requirements

The steps listed below must be completed in order to deploy a Windows Virtual Desktop host pool with Terraform.

  1. Ensure that you meet the requirements for Windows Virtual Desktop.
    1. DC/AAD DS
    2. WVD tenant must be created
    3. TenantCreator role must be assigned
    4. VNET configured with Layer 3 access to DC/AAD DS
  2. Terraform must be installed and configured as outlined here.
  3. Terraform code from GitHub repository is downloaded to a local folder.
  4. Terraform files variables.tf and variables_tags.tf are update.
  5. Terraform deployment is started. A sample process for deploying available here.
    1. terraform init
    2. terraform plan
    3. terraform apply
  6. Validate session host VMs are deployed and heart beating via Get-RdsSessionHost.

Setting up Terraform 

When you are new to Terraform. Please have a look at this article outlines the steps needed to get started with Visual Studio Code, Terraform and Azure.

Preparing Azure subscription and WVD for Terraform

Preparing the Azure subscription mean that we need to make sure that the account we are going to be used has the necessary permission to deploy new resources. Additionally, prior to updating the Terraform scripts create a resource group that will be tied to the Terraform deployment.

When it comes to WVD the preparation steps cover:

  • Granting TenantCreator to the user account we are going to be using
  • Creating a WVD tenant

Getting access to Terraform templates

To start all files that are listed in the folder must be downloaded to a local folder. All Terraform files needed for deployment are available at this repository.

Below is a brief description for each file and its purpose.

 

Availability_set.tf

This file contains the setting needed to set the availability set of VMs. In most basic deployments this file does not require changes.

 

Outputs.tf

This file displays certain variables that should be captured at the end of the execution. A detailed description of outputs in Terraforms can be found here. In most basic deployments this file does not require changes.

 

Variables.tf

This file contains all the modifiable input variables that define the behavior and outcome of running terraforms.

 

Variables_tags.tf

This file contains can be used to define custom tags as they are used throughout Terraforms. In most basic deployments this file does not require changes. This document outlines the benefits of using tags.

 

Virtual_machine.tf

This file contains code needed for setting up the individual VMs and their configuration. In most basic deployments this file does not require changes.

 

Virtual_machine_extensions.tf

This file contains code needed for running the customer script extensions that perform:

  • Domain join
  • Registration of the VM with the WVD service.

Configuring Terraform

Prior to running the Terraform variables.tf must be modified to reflect your environment. The table that follows outlines each input parameter and what is to be set to when deploying Windows Virtual Desktop.

Name

Description

Type

Default

Required

subnet_id

ID of the Subnet in which the machines will exist.

String

-

Yes

tenant_app_password

The password of the tenant app.

String

-

Yes

tenant_app_id

UPN for the user with permissions in WVD allowing for creation of a host pool (RD Contributor and/or RD Owner).

String

-

Yes

aad_tenant_id

Azure tenant ID.

String

-

Yes

ou_path

OU path to use when domain joining.

String

-

Yes

log_analytics_workspace_id

Workspace ID of the Log Analytics Workspace to associate the session host VMs to.

String

-

Yes

vm_timezone

Defines the time zone which a VM is going to use. List of time zone names available here.

String

-

Yes

log_analytics_workspace_primary_shared_key

Primary Shared Key of the Log Analytics Workspace to associate the VMs with.

String

-

Yes

resource_group_name

Name of the resource group in which Terraform will deploy resources. This group must be created manually before deploying.

String

-

Yes

region

The region in which to deploy the resources. The region must be such that the newly provisioned VM can communicate with the domain controller.

String

-

Yes

host_pool_name

Name of the session host pool.

String

-

Yes

vm_prefix

Prefix to be added to each VM as host name.

String

-

Yes

tenant_name

Name of WVD tenant.

String

-

Yes

rdsh_count

Number of session host VM to be deployed.

Int

1

Only if deploying more than 1

managed_disk_type

The type of managed disk(s) to attach.

String

Standard_LRS

No

tenantLocation

The region in which the RDS tenant exists.

String

eastus

No

vm_size

VM size. Full list of SKUs available here.

String

Standard_F2s

No

nsg_id

The ID of the NSG to associate the network interface.

String

-

No

existing_tenant_group_name

(deprecated) Name of the WVD tenant group.

String

Default Tenant Group

No

base_url

The URL in which the RDS components exists. This will need to be modified if the Github repo is forked.

String

https://raw.githubusercontent.com/Azure/RDS-Templates/master/wvd-templates

No

managed_disk_sizes

The sizes of the optional managed data disks.

List (String)

-

No

host_pool_description

Description of the session host pool.

String

Created through Terraform template

No

is_service_principal

Is a service principal being used for configuring WVD.

String

true

No

RDBrokerURL

URL of the RD Broker.

String

https://rdbroker.wvd.microsoft.com

No

as_platform_fault_domain_count

https://github.com/MicrosoftDocs/azure-docs/blob/master/includes/managed-disks-common-fault-domain-r...

Int

3

No

as_platform_update_domain_count

https://github.com/MicrosoftDocs/azure-docs/blob/master/includes/managed-disks-common-fault-domain-r...

Int

5

No

extension_bginfo

Should BGInfo be attached to all servers.

String

true

No

extension_loganalytics

Should Log Analytics agent be attached to all servers.

String

true

No

extension_custom_script

Should a custom script extension be run on all servers.

String

false

No

local_admin_username

Name of the local admin account that will be created on each of the VM.

String

rdshadm

No

domain_joined

Defines if a domain join is to be performed.

String (Bool)

true

No

registration_expiration_hours

The registration token expiration window (in hours).

String

48

No

vm_storage_os_disk_size

The size of the OS disk.

String

128

No

vm_version

Version of the VM image.

String

-

If vm_image_id is not set

vm_sku

The SKU of the VM image.

String

-

If vm_image_id is not set

vm_offer

Offer of the VM image.

String

-

If vm_image_id is not set

vm_publisher

Publisher of the base image to be used for provisioning the session host VMs.

String

-

If vm_image_id is not set

extensions_custom_script_fileuris

File URIs to be consumed by the custom script extension

List (String)

-

If extension_custom_script is set to true

extensions_custom_command

Command for the custom script extension to run

String

-

If extension_custom_script is set to true

domain_name

Domain name of the domain to which the session host VMs are to be joined.

String

-

If domain_joined is set to true

domain_user_upn

UPN of domain account that has permissions to perform domain join.

String

-

If domain_joined is set to true

domain_password

Password of the domain account that will perform the domain join.

String

-

If domain_joined is set to true

vm_image_id

ID of the custom image to use.

String

-

If no vm image attributes are set

Deploying with Terraform

This is the main section of this document as it covers the core steps needed to deploy WVD host pool with Terraform:

  1. Download or “fork” all Terraform scripts in a local directory.
  2. Open Visual Studio Code (VSC) and select File > Open Folder, and then point to the local folder where Terraform scripts have been downloaded.
  3. Update variables.tf.
  4. In VSC press Ctrl + Shift + P and select Azure Terraform: Init
  5. Once this completes Ctrl + Shift + P and select Azure Terraform: Init
  6. Press Ctrl + Shift + P and select Azure Terraform: Plan
  7. Review the generated plan
  8. Press Ctrl + Shift + P and select
  9. Azure Terraform: Apply

Troubleshooting Terraform deployment

Terraform deployment can fail in two main categories:

  1. Issues with Terraform code
  2. Issues with Desired State Configuration (DSC)

Issues with Terraform code

While it is rare to have issues with the Terraform code it is still possible, however most often errors are due to bad input in variables.tf.

  • If there are errors in the Terraform code, please file a GitHub issue.
  • If there are warning in the Terraform code feel free to ignore or address for your own instance of that code.
  • Using Terraform error messages it's a good starting point towards identifying issues with input variables

Issues with DSC

To troubleshoot this type of issue, navigate to the Azure portal and if needed reset the password on the VM that failed DSC. Once you are able to log in to the VM review the log files in the following two folders:

Note: XXX, YY, and ZZ are version numbers that will change based.

  • C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\XXX\Downloads\YY
  • C:\WindowsAzure\Logs\Plugins\Microsoft.Compute.CustomScriptExtension\ZZZ

To walk you through the processes outlined in this post, please watch my video tutorial:

 

11 Comments
Contributor

Why terraform was chosen as IaaC instead of ARM bearing in mind this comes from Microsoft.

Occasional Visitor

At 7:30 in the video, what is the admin UI you're using?

 

Thanks.

Microsoft
Microsoft

@Gregory Suvalian There is plenty of ARM coverage when it comes to WVD and zero Terraform

Visitor

What version of Terraform and the AzureRM provider is this intended to work on? There is no definition of these basic items.

Microsoft

Its define of the code in github.

Visitor

I must be missing it then. I can't find it in any of your tf configs. Can you tell me the versions? I think you are using implicit versioning. I saw on the screen that you were using AzureRM version 2.1.0. I'm running TF 0.12.21 and seeing a lot of errors.

Senior Member

I guess I could not use this Terraform configuration for the WVD Spring Release, right? So far as I unterstood, is the architecture complety different.

Microsoft

@oliverroos right the PS modules hasn't been updated

Visitor

I got it working. It took a fair amount of alteration to update everything. I didn't document it - just plunged in. If you post your problems, I could probably set you straight.

Senior Member

@2mOlaf So far I didn't try to deploy a Terraform configuration for WVD Spring Release.  Do I need just to update the script which does the "Registration of the VM with the WVD service."? Because all the other stuff isnt' WVD related, isn't it? Might you're willing to share your Terraform files?