Partager via


ComputePlan Class

Definition

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.

public class ComputePlan : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.ComputePlan>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.ComputePlan>
type ComputePlan = class
    interface IJsonModel<ComputePlan>
    interface IPersistableModel<ComputePlan>
Public Class ComputePlan
Implements IJsonModel(Of ComputePlan), IPersistableModel(Of ComputePlan)
Inheritance
ComputePlan
Implements

Constructors

ComputePlan()

Initializes a new instance of ComputePlan.

Properties

Name

The plan ID.

Product

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

PromotionCode

The promotion code.

Publisher

The publisher ID.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ComputePlan>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ComputePlan>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ComputePlan>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ComputePlan>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ComputePlan>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to