At the moment I'm trying to deploy a scale set based on a custom windows image created a while ago.
I know this has worked in the past, as our current production infrastructure is running using this exact image, but everytime I go to deploy this image as a vm using either the azure portal or powershell, I get the following error message:
New-AzureRmResourceGroupDeployment : 2:05:05 PM - Resource
Microsoft.Compute/virtualMachineScaleSets 'test-scaleset' failed with
message '{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "InvalidParameter",
"message": "Disks or snapshot cannot be resized down."
}
]
}
}'
I created a new disk using the size A2_V2, and have proceeded to try to create a new VM using that image using the exact same size (A2_V2) all to no avail and with the same error message.
Does anyone have any idea what's happening here? I ensured the vm which was used to create the custom image had sysprep applied, with the generalized parameter set, and am coming at a loss as to why me, and multiple other members of the team are unable to create anything using custom images.
Any help would be greatly appreciated