VM Size Error While Cloning a Template

Prev Next

Issue Summary: 

An Administrator followed the steps outlined in the Workspot documentation to successfully create a new cloud-pool template. However, when attempting to clone the newly created template, an error related to the VM Size occurred. This article provides the necessary steps to resolve this issue by updating the Azure Image Definition with the required VM size tag. 

Error Screenshot:   

A yellow and black text

AI-generated content may be incorrect.

 

Failure Reason: Status code 400, “{“error": { "code":"invalid Parameter", "message": "The requested VM size Standard_D2hs_v3 is not available to the current subacription. To access the requested VM Size subscription must have one of the following feature flags registered; Microsoft.Compute/DSV3VDISizes,Microsoft.Compute/TestSubacription,Microsoft.Compute/VMSKUPreview. The sizes available to the current subscription are: Standard_NV6ads_A10_v5, Standard_NV12ads_A10_v5,Standard_NV18ads_A10_v5,Standard_NV36adms_A10_v5,Standard_NV36ads_A10_v5,Standard_NV72ads_A10_v5,Standard_B1ls,…….. 

 

Steps to Resolve the VM Size Error: 

1. Delete the Failed Cloning Template 

  • If the cloning operation fails due to the VM Size error, start by deleting the failed template from the Workspot Control to ensure that no residual data interferes with the new process. 

2. Go to the Azure Portal 

  • Open the Azure portal where the image and templates are managed. 

3. Navigate to Azure Image Definitions 

  • In the Azure portal, go to Azure Image Definitions. This can be accessed by searching for Image Definitions in the Azure portal search bar or navigating to the Images section under Virtual Machines. 

4. Add VM Size and MAC Address to Azure Image Definition 

  • Follow the steps outlined in the documentation to add the vm_size and mac_address tags to your Azure Image Definition. This step ensures that the cloning operation includes the necessary metadata for successful VM creation. 

A screenshot of a computer

AI-generated content may be incorrect.

 

  • Steps to add the tags: 

  1. In the Azure Image Definitions section, select the relevant image definition. 

  1. Add the following two fields:  

  • vm_size: This should match the size of the virtual machine you intend to use for the cloud-pool template. 

  • mac_address: Ensure that the MAC address is properly defined as required. 

  1. Save the changes. 

5. Clone the VM 

  • After successfully saving the changes to the Azure Image Definition, proceed to clone the VM again.  

 

Conclusion: 

The VM Size error during the cloning process occurs when the Azure Image Definition does not include the required vm_size and mac_address tags. By following the steps to add these tags in the Azure portal, the cloning process can be successfully completed without errors. 

If you encounter any further issues, please refer to the Workspot documentation or contact Workspot support for additional assistance. 

 

References: