VDIs deployed in Azure using a Master Image with license_type "windows client" are not inheriting the Windows client license

book

Article ID: CTX695701

calendar_today

Updated On:

Description

When we deploy VDIs in Azure using a golden image with license_type "windows client", this setting is not being inherited.

Checking in Azure, the licensing fields remain blank which means the customer may incur additional billing.

image.png

Cause

LicenseType custom property configuration was missing from the Provisioning Scheme.

Resolution

The following string needs to be added to the CustomProperties field of the Provisioning Scheme

  • <Property xsi:type="StringProperty" Name="LicenseType" Value="Windows_Client" />

 

https://developer-docs.citrix.com/en-us/citrix-virtual-apps-desktops-sdk/2203/MachineCreation/about_ProvCustomProperties.html#custom-properties-for-azure

 

Retrieve the existing Custom Properties for the Provisioning Scheme

 

Get-ProvScheme -ProvisioningSchemeName "ProvScheme Name"  | select CustomProperties -ExpandProperty CustomProperties

 

This will give you an output:

 

<CustomProperties xmlns="http://schemas.citrix.com/2014/xd/machinecreation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Property xsi:type="StringProperty" Name="UseManagedDisks" Value="true" /><Property xsi:type="StringProperty" Name="OsType" Value="Windows" /><Property xsi:type="StringProperty" Name="StorageType" Value="Premium_LRS" /><Property xsi:type="StringProperty" Name="ResourceGroups" Value="Resource Group Name" /><Property xsi:type="StringProperty" Name="Zones" Value="" /><Property xsi:type="StringProperty" Name="SchemaVersion" Value="2" /></CustomProperties>

 

Add the string above to this

 

<CustomProperties xmlns="http://schemas.citrix.com/2014/xd/machinecreation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Property xsi:type="StringProperty" Name="UseManagedDisks" Value="true" /><Property xsi:type="StringProperty" Name="OsType" Value="Windows" /><Property xsi:type="StringProperty" Name="StorageType" Value="Premium_LRS" /><Property xsi:type="StringProperty" Name="ResourceGroups" Value="Resource Group Name" /><Property xsi:type="StringProperty" Name="Zones" Value="" /><Property xsi:type="StringProperty" Name="SchemaVersion" Value="2" /><Property xsi:type="StringProperty" Name="LicenseType" Value="Windows_Client" /></CustomProperties>

 

  Define a customProperties variable -  
 
  $customProperties = '<CustomProperties xmlns="http://schemas.citrix.com/2014/xd/machinecreation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Property xsi:type="StringProperty" Name="UseManagedDisks" Value="true" /><Property xsi:type="StringProperty" Name="OsType" Value="Windows" /><Property xsi:type="StringProperty" Name="StorageType" Value="Premium_LRS" /><Property xsi:type="StringProperty" Name="ResourceGroups" Value="Resource Group Name" /><Property xsi:type="StringProperty" Name="Zones" Value="" /><Property xsi:type="StringProperty" Name="SchemaVersion" Value="2" /><Property xsi:type="StringProperty" Name="LicenseType" Value="Windows_Client" /></CustomProperties>'

 

Set-ProvScheme -ProvisioningSchemeName "ProvScheme Name” -CustomProperties $customProperties

Issue/Introduction

When we deploy VDIs in Azure using a golden image with license_type "windows client", this setting is not being inherited.