共用方式為


ArmComputeModelFactory.VirtualMachineScaleSetData Method

Definition

Initializes a new instance of VirtualMachineScaleSetData.

public static Azure.ResourceManager.Compute.VirtualMachineScaleSetData VirtualMachineScaleSetData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Compute.Models.ComputeSku sku = default, Azure.ResourceManager.Compute.Models.ComputePlan plan = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetProperties properties = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, System.Collections.Generic.IEnumerable<string> zones = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, string etag = default);
static member VirtualMachineScaleSetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Compute.Models.ComputeSku * Azure.ResourceManager.Compute.Models.ComputePlan * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetProperties * Azure.ResourceManager.Models.ManagedServiceIdentity * seq<string> * Azure.ResourceManager.Resources.Models.ExtendedLocation * string -> Azure.ResourceManager.Compute.VirtualMachineScaleSetData
Public Shared Function VirtualMachineScaleSetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional sku As ComputeSku = Nothing, Optional plan As ComputePlan = Nothing, Optional properties As VirtualMachineScaleSetProperties = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional etag As String = Nothing) As VirtualMachineScaleSetData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

sku
ComputeSku

The virtual machine scale set sku.

plan
ComputePlan

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.

properties
VirtualMachineScaleSetProperties

Describes the properties of a Virtual Machine Scale Set.

identity
ManagedServiceIdentity

The identity of the virtual machine scale set, if configured.

zones
IEnumerable<String>

The virtual machine scale set zones.

extendedLocation
ExtendedLocation

The extended location of the Virtual Machine Scale Set.

etag
String

Etag is property returned in Create/Update/Get response of the VMSS, so that customer can supply it in the header to ensure optimistic updates.

Returns

A new VirtualMachineScaleSetData instance for mocking.

Applies to