New-AzVM failing with VMCustomization' is not enabled for the Subscription. #17369
-
We are running into an issue where the New-AzVm powershell cmdlet has stopped working. This was working a week ago without any issues, however we tried to run this today and are getting the following response: Following this basic this example produces the issue: New-AzVM: 'VMCustomization' is not enabled for the Subscription. Please register the Subscription for 'Microsoft.Compute/VMCustomizationPreview' to use the feature. example-1--create-a-virtual-machine Anybody else seeing this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This issue #17370 is resolved by the new version of Az.Compute. Please use it. |
Beta Was this translation helpful? Give feedback.
-
This is now resolved for MS Learn Module One your Active Sandbox Try Running
OR
Then
That starts a new powershell session
will work successfully now! |
Beta Was this translation helpful? Give feedback.
This is now resolved for MS Learn Module
One your Active Sandbox Try Running
Install-Module -Name Az.Compute -RequiredVersion 4.24.1
OR
Install-Module -Name Az.Compute -RequiredVersion 4.25
Then
Pwsh
That starts a new powershell session
New-AzVm -ResourceGroupName learn-d2a8d1e3-0259-4d64-a7ec-8348a719b240 -Name "testvm-eus-01" -Credential (Get-Credential) -Location "East US" -Image UbuntuLTS -OpenPorts 22 -PublicIpAddressName "testvm-01"
will work successfully now!