Specify vmname in VM role with no guest customization enabled

Category: azure pack


IanCampbell on Mon, 26 Jun 2017 06:07:03


I'm trying to create a VM role to deploy a Citrix Netscaler VPX VM/s.  The Citrix Netscaler VPX is an appliance and doesn't include any integration tools so guest customization cannot be run on the VM during deployment.

That's fine as for our requirements we just need to deploy the VM with no guest customization as a VM role.

My problem is that it seems the parameter for specifying the computer name pattern (Param.VMRoleComputerNamePattern) is only able to be used when the guest customization option is enabled - which I don't want as the deployment will hang on the customization step.

Without the guest customization option enabled the VM is deployed using a randomly generated name and computer name.  

Does anyone know how I can control the VM name of a VM role without guest customization enabled?




Ian JA Campbell on Wed, 05 Jul 2017 11:25:26

An update on this.  Turns out it's not possible to control the VM name using options within the VM role process when guest customization is disabled.

As a work around I'm using an SMA run book triggered on VM role deployment that picks up the vm name parameter specified in the deployment and renames the VM as part of the deployment.