Sdílet prostřednictvím


VirtualMachineScaleSetProperties Class

Definition

Describes the properties of a Virtual Machine Scale Set.

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

Constructors

VirtualMachineScaleSetProperties()

Initializes a new instance of VirtualMachineScaleSetProperties.

Properties

AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

AdditionalProperties

Additional Properties

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

AutomaticRepairsPolicy

Policy for automatic repairs.

DoNotRunExtensionsOnOverprovisionedVms

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

HostGroupId

Gets or sets Id.

IsMaximumCapacityConstrained

Optional property which must either be set to True or omitted.

OrchestrationMode

Specifies the orchestration mode for the virtual machine scale set.

Overprovision

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

PlatformFaultDomainCount

Fault Domain count for each placement group.

PriorityMixPolicy

Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance.

ProvisioningState

The provisioning state, which only appears in the response.

ProximityPlacementGroupId

Gets or sets Id.

ResiliencyPolicy

Policy for Resiliency.

ScaleInPolicy

Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.

ScheduledEventsPolicy

The ScheduledEventsPolicy.

SinglePlacementGroup

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

SkuProfile

Specifies the sku profile for the virtual machine scale set.

SpotRestorePolicy

Specifies the Spot Restore properties for the virtual machine scale set.

TimeCreated

Specifies the time at which the Virtual Machine Scale Set resource was created. Minimum api-version: 2021-11-01.

UniqueId

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

UpgradePolicy

The upgrade policy.

VirtualMachineProfile

The virtual machine profile.

ZonalPlatformFaultDomainAlignMode

Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count.

ZoneBalance

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. zoneBalance property can only be set if the zones property of the scale set contains more than one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<VirtualMachineScaleSetProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<VirtualMachineScaleSetProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VirtualMachineScaleSetProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VirtualMachineScaleSetProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<VirtualMachineScaleSetProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to