David Wang1709163691 Posted May 10, 2023 Share Posted May 10, 2023 I'm wondering where to pass azure availability zone to the api. My payload is like this: { "Name": "MY-TEST-MC-001", "AllocationType": "Static", "IsRemotePC": false, "MinimumFunctionalLevel": "L7_25", "Scopes": ["00000000-0000-0000-0000-000000000000"], "Tenants": [], "Zone": "Azure Our Zone US", "ProvisioningScheme": { "NumTotalMachines": 1, "CpuCount": null, "MemoryMB": null, "UseWriteBackCache": false, "IdentityType": "ActiveDirectory", "MasterImagePath": "XDHyp:\\HostingUnits\\PATH_TO_IMAGE", "ServiceOfferingPath": "XDHyp:\\HostingUnits\\PATH\\serviceoffering.folder\\Standard_D4s_v3.serviceoffering", "UseFullDiskCloneProvisioning": false, "PrepareImage": true, "DedicatedTenancy": false, "SecurityGroups": ["NIC_NAME"], "MachineAccountCreationRules": { "NamingScheme": "CTX_###", "NamingSchemeType": "Numeric", "Domain": "123.com", "OU": "OU=1,OU=2,OU=Azure,OU=3,OU=4,OU=5,OU=6,DC=7,DC=123,DC=com" }, "CustomProperties": [ {"Name": "UseManagedDisks","Value": "true"}, {"Name": "StorageAccountType","Value": "StandardSSD_LRS"}, {"Name": "LicenseType","Value": "Windows_Client"}, {"Name": "ResourceGroups","Value": "rg-001"} ] }, "PersistUserChanges": "OnLocal", "ProvisioningType": "MCS", "SessionSupport": "MultiSession" } I tried "AvailabilityZone" peroperty in CustomPropweries, but it says invalid property. Any help would be appreciated. Link to comment
0 Robert Young1709152714 Posted May 10, 2023 Share Posted May 10, 2023 I believe inside CustomProperties you need to add Zone as a Name and Values: https://developer-docs.citrix.com/projects/citrix-virtual-apps-desktops-sdk/en/latest/MachineCreation/about_Prov_CustomProperties/ Zones: The Azure Availability Zones containing provisioned virtual machines. Use a comma as a delimiter for multiple zones. If this property is not specified, the provisioned virtual machine is randomly placed across all Azure Availability Zones in the region defined by the hosting unit. Link to comment
Question
David Wang1709163691
I'm wondering where to pass azure availability zone to the api.
My payload is like this:
I tried "AvailabilityZone" peroperty in CustomPropweries, but it says invalid property.
Any help would be appreciated.
Link to comment
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now