Hi Abhayjit Kumar,
Try creating the VMSS using a specialized image by not specifying a new admin username.
az vmss create \
-g <resource-group> \
-n <vmss-name> \
--image <image-id> \
--specialized
If the error persists, try using --debug
in your CLI command to get more detailed logs about the failure.
az vmss create \
-g abhay-dev-terraform-rg \
-n test-vmss \
--image /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/Terraform_test/providers/Microsoft.Compute/galleries/terrafrom_gallery/images/image-definition-tf/versions/1.0.0 \
--specialized \
--debug
Make sure you are using the latest version of the Azure CLI. You can update it using:
sudo apt-get update
sudo apt-get install --only-upgrade -y azure-cli
Please try above steps, if you still find any difficulties, please share more details on the issue so that we can assist you further on this.