Enable AVD session host config
Disclaimer
This page is still under development and is not ready for use. The information provided is subject to change. Use at your own risk.
This feature is currently in preview and requires a specifc configuration to be enabled. Missing any of the steps below will soft-block your hostpool and prevent the creation of AVD servers. You can always add/change the config later but only through powershell!!
- Create the hostpool with feature X on managed This causes the hostpool to be created with the prequisite config for the sessionhost config. When the feature is GA this will not be required anymore
- Create the sessionhost config
First create an image gallery and publish your first image. This is required because you need to configure a specific version for the first enrollment.
Next fill in the parameters below to configure the sessionhost config
$parameters = @{
FriendlyName = 'Default'
HostPoolName = 'STLFY-AVD-PROD-AVD-VDPOOL-WEU'
ResourceGroupName = 'STLFY-AVD-PROD-AVD'
VMNamePrefix = 'STLFY-AVD'
VMLocation = 'westeurope'
VMTag = @{
"Reboot" = "Daily"
"Update" = "Enabled"
}
ImageInfoImageType = 'Custom'
CustomInfoResourceID = '/subscriptions/<subscription id>/resourceGroups/STLFY-AVD-IMG-AVD/providers/Microsoft.Compute/galleries/STLFY_AVD_IMG_AVD_AVD_GAL_WEU/images/STLFY_AVD_IMG_AVD_IMG_W11_WEU/versions/0.0.1'
VMSizeId = 'Standard_D16ds_v6'
ManagedDiskType = 'Premium_LRS'
NetworkInfoSubnetId = '/subscriptions/<subscription id>/resourceGroups/STLFY-AVD-PROD-NET/providers/Microsoft.Network/virtualNetworks/STLFY-AVD-PROD-NET-VNET-WEU/subnets/STLFY-AVD-PROD-AVD'
DomainInfoJoinType = 'AzureActiveDirectory'
AzureActiveDirectoryInfoMdmProviderGuid = '0000000a-0000-0000-c000-000000000000'
VMAdminCredentialsUsernameKeyVaultSecretUri = 'https://STLFY-avd-prod-avd-kv-weu.vault.azure.net/secrets/AVD-Localadmin-Username/<guid>'
VMAdminCredentialsPasswordKeyVaultSecretUri = 'https://STLFY-avd-prod-avd-kv-weu.vault.azure.net/secrets/AVD-Localadmin-Password/<guid>'
SecurityInfoSecureBootEnabled = $true
SecurityInfoType = 'TrustedLaunch'
SecurityInfoVTpmEnabled = $true
}
New-AzWvdSessionHostConfiguration @parameters
$parameters = @{
HostPoolName = 'STLFY-AVD-PROD-AVD-VDPOOL-WEU'
ResourceGroupName = 'STLFY-AVD-PROD-AVD'
ScheduledDateTimeZone = 'W. Europe Standard Time'
UpdateLogOffDelayMinute = '20'
UpdateMaxVmsRemoved = '5'
UpdateDeleteOriginalVM = $False
UpdateLogOffMessage = 'Your avd instance is scheduled to be removed, please sign out and log in again to use a new instance'
}
New-AzWvdSessionHostManagement @parameters