Create AVD with FSLogix and AD DS Join
Overview
This template allows you to create Azure Virtual Desktop resources such as host pool, application group, workspace, FSLogix storage account, file share, recovery service vault for file share backup a test session host, its extensions with Microsoft Entra ID join pr Active directory domain join. This is tested with a new azure azure Vnet/subnet.
Description
This template allows you to create Azure Virtual Desktop resources such as host pool, application group, workspace, FSLogix storage account, file share, recovery service vault for file share backup a test session host, its extensions with Microsoft Entra ID join pr Active directory domain join. This is tested with a new azure azure Vnet/subnet.
Prerequisite
Inside your Active directory domain controller server, run the powershell script 'preconfiguration.ps1' for creating Active directory parent OU and child OUs for Azure virtual desktop.
[!NOTE] Ignore this step if you will be leveraging on the existing OUs in your AD DS.
Deployment steps
Steps
- Run az cli command from the root of the microsoft.desktopvirtualization\azure-virtual-desktop-with-fslogix directory.
- Modify the 'azuredeploy.parameters.json' as needed and then modify '// Required parameters' inside the 'main.bicep' file
- Run az command to test deployment of the required resources (az deployment group create --resource-group 'deployment resource group name' --template-file .\main.bicep --parameters .\azuredeploy.parameters.json --what-if)
- If comfortable with the outcome of step 2, run az command to deploy the required resources (az deployment group create --resource-group 'deployment resource group name' --template-file .\main.bicep --parameters .\azuredeploy.parameters.json)
Post deployment configuration
Steps
- Install AZ PowerShell module inside your domain controller server. Click the link for the installation steps. Install Azure PowerShell on Windows
- Once deployment is completed, run the 'postconfiguration.ps1' inside your domain controller server. Please follow the instruction in the file and provide the appropriate paramters before the script is executed.
- Please restart all the virtual machine session hosts for FSLogix to take effect with profile container.
Architecture
For more information on Azure Virtual Desktop with FSLogix see article Create a profile container for a host pool using a file share
Deployed Resources
The following resource types will be created as part of this template deployment:
- Microsoft.Network/virtualNetworks
- Microsoft.Network/virtualNetworks/subnets
- Microsoft.Authorization/roleAssignments
- Microsoft.DesktopVirtualization/hostPools
- Microsoft.DesktopVirtualization/applicationGroups
- Microsoft.DesktopVirtualization/workspaces
- Microsoft.Network/networkInterfaces
- Microsoft.Compute/virtualMachines
- Microsoft.Compute/virtualMachines/extensions
- Microsoft.Storage/storageAccounts
- Microsoft.Storage/storageAccounts/fileServices
- Microsoft.Storage/storageAccounts/fileServices/shares
- Microsoft.RecoveryServices/vaults
- Microsoft.RecoveryServices/vaults/backupPolicies
- Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers
- Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems
- Microsoft.Network/privateDnsZones
- Microsoft.Network/privateDnsZones/virtualNetworkLinks
- Microsoft.Network/privateEndpoints
- Microsoft.Network/privateEndpoints/privateDnsZoneGroups
Tags: network, virtual network, subnet, host pool, application group, workspace, virtual machine network interface, virtual machine, virtual machine extensions, Microsoft.Network/virtualNetworks, Microsoft.Network/virtualNetworks/subnets, Microsoft.Authorization/roleAssignments, Microsoft.DesktopVirtualization/hostPools, Microsoft.DesktopVirtualization/applicationGroups, Microsoft.DesktopVirtualization/workspaces, Microsoft.Network/networkInterfaces, Microsoft.Compute/virtualMachines, Microsoft.Compute/virtualMachines/extensions, Microsoft.Storage/storageAccounts, Microsoft.Storage/storageAccounts/fileServices, Microsoft.Storage/storageAccounts/fileServices/shares, Microsoft.RecoveryServices/vaults, Microsoft.RecoveryServices/vaults/backupPolicies, Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers, Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems, Microsoft.Network/privateDnsZones, Microsoft.Network/privateDnsZones/virtualNetworkLinks, Microsoft.Network/privateEndpoints, Microsoft.Network/privateEndpoints/privateDnsZoneGroups