Lingua

ArmComputeModelFactory.ComputePlan(String, String, String, String) Method

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 static Azure.ResourceManager.Compute.Models.ComputePlan ComputePlan(string name = default, string publisher = default, string product = default, string promotionCode = default);
static member ComputePlan : string * string * string * string -> Azure.ResourceManager.Compute.Models.ComputePlan
Public Shared Function ComputePlan (Optional name As String = Nothing, Optional publisher As String = Nothing, Optional product As String = Nothing, Optional promotionCode As String = Nothing) As ComputePlan

Parameters

name
String

The plan ID.

publisher
String

The publisher ID.

product
String

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

promotionCode
String

The promotion code.

Returns

A new ComputePlan instance for mocking.

Applies to