共用方式為


ArmComputeModelFactory.VirtualMachineScaleSetProperties Method

Definition

Initializes a new instance of VirtualMachineScaleSetProperties.

public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetProperties VirtualMachineScaleSetProperties (Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpgradePolicy upgradePolicy = default, Azure.ResourceManager.Compute.Models.ScheduledEventsPolicy scheduledEventsPolicy = default, Azure.ResourceManager.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProfile virtualMachineProfile = default, string provisioningState = default, bool? overprovision = default, bool? doNotRunExtensionsOnOverprovisionedVms = default, string uniqueId = default, bool? singlePlacementGroup = default, bool? zoneBalance = default, int? platformFaultDomainCount = default, Azure.Core.ResourceIdentifier proximityPlacementGroupId = default, Azure.Core.ResourceIdentifier hostGroupId = default, Azure.ResourceManager.Compute.Models.AdditionalCapabilities additionalCapabilities = default, Azure.ResourceManager.Compute.Models.ScaleInPolicy scaleInPolicy = default, Azure.ResourceManager.Compute.Models.OrchestrationMode? orchestrationMode = default, Azure.ResourceManager.Compute.Models.SpotRestorePolicy spotRestorePolicy = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetPriorityMixPolicy priorityMixPolicy = default, DateTimeOffset? timeCreated = default, bool? isMaximumCapacityConstrained = default, Azure.ResourceManager.Compute.Models.ResiliencyPolicy resiliencyPolicy = default, Azure.ResourceManager.Compute.Models.ZonalPlatformFaultDomainAlignMode? zonalPlatformFaultDomainAlignMode = default, Azure.ResourceManager.Compute.Models.ComputeSkuProfile skuProfile = default, System.Collections.Generic.IDictionary<string,BinaryData> additionalProperties = default);
static member VirtualMachineScaleSetProperties : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpgradePolicy * Azure.ResourceManager.Compute.Models.ScheduledEventsPolicy * Azure.ResourceManager.Compute.Models.AutomaticRepairsPolicy * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Compute.Models.AdditionalCapabilities * Azure.ResourceManager.Compute.Models.ScaleInPolicy * Nullable<Azure.ResourceManager.Compute.Models.OrchestrationMode> * Azure.ResourceManager.Compute.Models.SpotRestorePolicy * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetPriorityMixPolicy * Nullable<DateTimeOffset> * Nullable<bool> * Azure.ResourceManager.Compute.Models.ResiliencyPolicy * Nullable<Azure.ResourceManager.Compute.Models.ZonalPlatformFaultDomainAlignMode> * Azure.ResourceManager.Compute.Models.ComputeSkuProfile * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetProperties
Public Shared Function VirtualMachineScaleSetProperties (Optional upgradePolicy As VirtualMachineScaleSetUpgradePolicy = Nothing, Optional scheduledEventsPolicy As ScheduledEventsPolicy = Nothing, Optional automaticRepairsPolicy As AutomaticRepairsPolicy = Nothing, Optional virtualMachineProfile As VirtualMachineScaleSetVmProfile = Nothing, Optional provisioningState As String = Nothing, Optional overprovision As Nullable(Of Boolean) = Nothing, Optional doNotRunExtensionsOnOverprovisionedVms As Nullable(Of Boolean) = Nothing, Optional uniqueId As String = Nothing, Optional singlePlacementGroup As Nullable(Of Boolean) = Nothing, Optional zoneBalance As Nullable(Of Boolean) = Nothing, Optional platformFaultDomainCount As Nullable(Of Integer) = Nothing, Optional proximityPlacementGroupId As ResourceIdentifier = Nothing, Optional hostGroupId As ResourceIdentifier = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional scaleInPolicy As ScaleInPolicy = Nothing, Optional orchestrationMode As Nullable(Of OrchestrationMode) = Nothing, Optional spotRestorePolicy As SpotRestorePolicy = Nothing, Optional priorityMixPolicy As VirtualMachineScaleSetPriorityMixPolicy = Nothing, Optional timeCreated As Nullable(Of DateTimeOffset) = Nothing, Optional isMaximumCapacityConstrained As Nullable(Of Boolean) = Nothing, Optional resiliencyPolicy As ResiliencyPolicy = Nothing, Optional zonalPlatformFaultDomainAlignMode As Nullable(Of ZonalPlatformFaultDomainAlignMode) = Nothing, Optional skuProfile As ComputeSkuProfile = Nothing, Optional additionalProperties As IDictionary(Of String, BinaryData) = Nothing) As VirtualMachineScaleSetProperties

Parameters

upgradePolicy
VirtualMachineScaleSetUpgradePolicy

The upgrade policy.

scheduledEventsPolicy
ScheduledEventsPolicy

The ScheduledEventsPolicy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVmProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVms
Nullable<Boolean>

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.

uniqueId
String

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

singlePlacementGroup
Nullable<Boolean>

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.

zoneBalance
Nullable<Boolean>

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.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroupId
ResourceIdentifier

Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. Minimum api-version: 2018-04-01.

hostGroupId
ResourceIdentifier

Specifies information about the dedicated host group that the virtual machine scale set resides in. Minimum api-version: 2020-06-01.

additionalCapabilities
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.

scaleInPolicy
ScaleInPolicy

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

orchestrationMode
Nullable<OrchestrationMode>

Specifies the orchestration mode for the virtual machine scale set.

spotRestorePolicy
SpotRestorePolicy

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

priorityMixPolicy
VirtualMachineScaleSetPriorityMixPolicy

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

timeCreated
Nullable<DateTimeOffset>

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

isMaximumCapacityConstrained
Nullable<Boolean>

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

resiliencyPolicy
ResiliencyPolicy

Policy for Resiliency.

zonalPlatformFaultDomainAlignMode
Nullable<ZonalPlatformFaultDomainAlignMode>

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

skuProfile
ComputeSkuProfile

Specifies the sku profile for the virtual machine scale set.

additionalProperties
IDictionary<String,BinaryData>

Additional Properties.

Returns

A new VirtualMachineScaleSetProperties instance for mocking.

Applies to