Skip to content

New-AzVM failing with VMCustomization' is not enabled for the Subscription. #17369

Answered by aboyinthebox
wsucoug69 asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dingmeng-xue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants