Share via

VMCustomization Subscription

Josh Norwich 6 Reputation points
2022-02-10T23:49:18.667+00:00

I am currently taking a course and am receiving the error:
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations fordetails. 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 theSubscription. Please register the Subscription for 'Microsoft.Compute/VMCustomizationPreview' to use the feature.\"\r\n }\r\n}"}]}}

This is happening within Manage virtual machines with the Azure CLI Exercise - Create a virtual machine.

I am unsure the way to edit my learn subscription to allow VM customization.
Thank you for any help you can provide!

Community Center | Not monitored

5 answers

Sort by: Most helpful
  1. Hardik Chudasama 26 Reputation points
    2022-04-05T08:00:21.033+00:00

    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!

    Was this answer helpful?

    0 comments No comments

  2. Anonymous
    2022-03-03T16:22:57.603+00:00

    I get the same error not only on the same course in sandbox but on my own subscription with PS 7.2.1 script

    Was this answer helpful?

    0 comments No comments

  3. vipullag-MSFT 26,537 Reputation points Moderator
    2022-02-16T05:52:02.69+00:00

    @Josh Norwich

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Microsoft Learn related queries/issues are currently not supported on this Microsoft Q&A platform. Please check this supported products list [here][1] (more to be added later on).

    I would request you to share your Feedback or raise an issue using below links. That way, we can be sure your feedback is reached and addressed by the right team.

    https://learn.microsoft.com/en-in/learn/support/
    https://learn.microsoft.com/en-in/learn/support/troubleshooting#report-feedback

    Hope that helps.
    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

    Was this answer helpful?

    0 comments No comments

  4. Silviu Dobrica 1 Reputation point
    2022-02-15T15:15:42.817+00:00

    I got around this error by using powershell and ubuntu on windows (I installed the cli on ubuntu with this: "curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash", as described in the microsoft documentation), then az login to use the same sandbox account and did the exercise there instead of the sandbox browser bash/powershell cli.

    I hope this helps solve your issue as well.

    Was this answer helpful?


  5. Silviu Dobrica 1 Reputation point
    2022-02-15T14:17:57.827+00:00

    I've got the same error in the "https://learn.microsoft.com/en-us/learn/modules/protect-vm-settings-with-dsc/4-exercise-setup-dsc-configuration" exercise:

    {"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}"}]}}

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.