你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VmImagePlan 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 VmImagePlan : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan>
type VmImagePlan = class
    interface IJsonModel<VmImagePlan>
    interface IPersistableModel<VmImagePlan>
Public Class VmImagePlan
Implements IJsonModel(Of VmImagePlan), IPersistableModel(Of VmImagePlan)
Inheritance
VmImagePlan
Implements

Constructors

VmImagePlan()

Initializes a new instance of VmImagePlan.

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.

Explicit Interface Implementations

IJsonModel<VmImagePlan>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<VmImagePlan>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VmImagePlan>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VmImagePlan>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<VmImagePlan>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to