az vm create fails with error VMCustomization is not enabled
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Following basic how to on creating vms from command line doesn’t work, and preview feature doesn’t appear in azure. https://app.pluralsight.com/course-player?clipId=4924ba21-099c-42e1-8683-a131b1f5e442
Closest thing I found is this signup page, which doesn’t really help much: https://forms.office.com/pages/responsepage.aspx?id=v4j5cvGGr0GRqy180BHbR3_Cn0JTTIxChanY12UDdkpUMDNRRFdHSTRUMU1OUjBTSkw0MFFIRThFRi4u&web=1&wdLOR=c82F6F682-783D-477D-B824-BF81D3A7C7D3
Command Name
az vm create
Errors:
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"'VMCustomization' is not enabled for the Subscription. Please register the Subscription for 'Microsoft.Compute/VMCustomizationPreview' to use the feature.\"\r\n }\r\n}"}]}}
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az login az group create az vm create --resource-group “psdemo-rg-2” --name “psdemo-win-cli” --image “win2019datacenter” --admin-username “demoadmin” --admin-password “<snip>” --public-ip-sku Standard
Expected Behavior
creates a vm
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI
azure-cli 2.33.0
Additional Context
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:22 (6 by maintainers)
Top GitHub Comments
2.33.0 is currently the active version in azure cloud shell as well, hope the upcoming hotfix will be pushed there as well.
The easiest workaround is to downgrade to the previous version. On Ubuntu/Debian, users can check what the previous version was with
apt-cache policy azure-cli
and downgradeapt install azure-cli=$VERSION
.They can also pin this version for now:
But they will have to remove this file when a fixed package gets released.