Share via

VM image and plan issues

Mithran Joe 80 Reputation points
2024-02-13T13:37:32.52+00:00

It is really hectic while deploying a VMs through powershell. Wanted to know which image requires plan details and which does not require plan details. for an example: the below image does not require a plan details: Linux VM Image details:

    Publisher = "canonical"
    Product = "0001-com-ubuntu-server-focal"
    Name = "20_04-lts-gen2"

the image that requires both image details and plan details as well: Windows VM image details:

    PublisherName = "center-for-internet-security-inc"
    Offer = "cis-windows-server-2022-l1"
    Skus = "
    Version = "latest"

plan details:

    Publisher = "center-for-internet-security-inc"
    Product = "cis-windows-server-2022-l1"
    Name = "cis-windows-server-2022-l1"
Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Most helpful
  1. Anonymous
    2024-02-13T19:51:06.3433333+00:00

    @Mithran Joe
    I understand that you are wanting to know how to see if an image requires plan details to launch the VM in PowerShell. Please let me know if I am misunderstanding the issue. Information about Plan information can be found on the Find and use Azure Marketplace VM images with Azure PowerShell page. To view an image's purchase plan information, run the Get-AzVMImage cmdlet. If the PurchasePlan property in the output is not null, the image has terms you need to accept before programmatic deployment. You will also need to use Set-AzVMPlan when launching a VM with the image.

    Hope this helps! Let me know if you still have questions or run into any issues.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A! User's image

    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.