Show / Hide Table of Contents

    Class Plan

    Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

    Inheritance
    Object
    Plan
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.dll
    Syntax
    public class Plan

    Constructors

    Plan()

    Initializes a new instance of the Plan class.

    Declaration
    public Plan ();

    Plan(String, String, String, String)

    Initializes a new instance of the Plan class.

    Declaration
    public Plan (string name = null, string publisher = null, string product = null, string promotionCode = null);
    Parameters
    String name

    The plan ID.

    String publisher

    The publisher ID.

    String product

    Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.

    String promotionCode

    The promotion code.

    Properties

    Name

    Gets or sets the plan ID.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="name")]
    public string Name { get; set; }
    Property Value
    String

    Product

    Gets or sets specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="product")]
    public string Product { get; set; }
    Property Value
    String

    PromotionCode

    Gets or sets the promotion code.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="promotionCode")]
    public string PromotionCode { get; set; }
    Property Value
    String

    Publisher

    Gets or sets the publisher ID.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="publisher")]
    public string Publisher { get; set; }
    Property Value
    String

    Back to top Azure SDK for Net