VirtualMachineScaleSetInner Class

public final class VirtualMachineScaleSetInner
extends Resource

Describes a Virtual Machine Scale Set.

Constructor Summary

Constructor Description
VirtualMachineScaleSetInner()

Creates an instance of VirtualMachineScaleSetInner class.

Method Summary

Modifier and Type Method and Description
AdditionalCapabilities additionalCapabilities()

Get the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set.

AutomaticRepairsPolicy automaticRepairsPolicy()

Get the automaticRepairsPolicy property: Policy for automatic repairs.

Boolean constrainedMaximumCapacity()

Get the constrainedMaximumCapacity property: Optional property which must either be set to True or omitted.

Boolean doNotRunExtensionsOnOverprovisionedVMs()

Get the doNotRunExtensionsOnOverprovisionedVMs property: When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept.

String etag()

Get the etag property: 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.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the Virtual Machine Scale Set.

static VirtualMachineScaleSetInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetInner from the JsonReader.

SubResource hostGroup()

Get the hostGroup property: Specifies information about the dedicated host group that the virtual machine scale set resides in.

String id()

Get the id property: Fully qualified resource Id for the resource.

VirtualMachineScaleSetIdentity identity()

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

String name()

Get the name property: The name of the resource.

OrchestrationMode orchestrationMode()

Get the orchestrationMode property: Specifies the orchestration mode for the virtual machine scale set.

Boolean overprovision()

Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.

Plan plan()

Get the plan property: Specifies information about the marketplace image used to create the virtual machine.

Integer platformFaultDomainCount()

Get the platformFaultDomainCount property: Fault Domain count for each placement group.

PriorityMixPolicy priorityMixPolicy()

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

String provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

SubResource proximityPlacementGroup()

Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

ResiliencyPolicy resiliencyPolicy()

Get the resiliencyPolicy property: Policy for Resiliency.

ScaleInPolicy scaleInPolicy()

Get the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.

ScheduledEventsPolicy scheduledEventsPolicy()

Get the scheduledEventsPolicy property: The ScheduledEventsPolicy.

Boolean singlePlacementGroup()

Get the singlePlacementGroup property: When true this limits the scale set to a single placement group, of max size 100 virtual machines.

Sku sku()

Get the sku property: The virtual machine scale set sku.

SkuProfile skuProfile()

Get the skuProfile property: Specifies the sku profile for the virtual machine scale set.

SpotRestorePolicy spotRestorePolicy()

Get the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.

OffsetDateTime timeCreated()

Get the timeCreated property: Specifies the time at which the Virtual Machine Scale Set resource was created.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String uniqueId()

Get the uniqueId property: Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

UpgradePolicy upgradePolicy()

Get the upgradePolicy property: The upgrade policy.

void validate()

Validates the instance.

VirtualMachineScaleSetVMProfile virtualMachineProfile()

Get the virtualMachineProfile property: The virtual machine profile.

VirtualMachineScaleSetInner withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)

Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set.

VirtualMachineScaleSetInner withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy)

Set the automaticRepairsPolicy property: Policy for automatic repairs.

VirtualMachineScaleSetInner withConstrainedMaximumCapacity(Boolean constrainedMaximumCapacity)

Set the constrainedMaximumCapacity property: Optional property which must either be set to True or omitted.

VirtualMachineScaleSetInner withDoNotRunExtensionsOnOverprovisionedVMs(Boolean doNotRunExtensionsOnOverprovisionedVMs)

Set the doNotRunExtensionsOnOverprovisionedVMs property: When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept.

VirtualMachineScaleSetInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the Virtual Machine Scale Set.

VirtualMachineScaleSetInner withHostGroup(SubResource hostGroup)

Set the hostGroup property: Specifies information about the dedicated host group that the virtual machine scale set resides in.

VirtualMachineScaleSetInner withIdentity(VirtualMachineScaleSetIdentity identity)

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

VirtualMachineScaleSetInner withLocation(String location)
VirtualMachineScaleSetInner withOrchestrationMode(OrchestrationMode orchestrationMode)

Set the orchestrationMode property: Specifies the orchestration mode for the virtual machine scale set.

VirtualMachineScaleSetInner withOverprovision(Boolean overprovision)

Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.

VirtualMachineScaleSetInner withPlan(Plan plan)

Set the plan property: Specifies information about the marketplace image used to create the virtual machine.

VirtualMachineScaleSetInner withPlatformFaultDomainCount(Integer platformFaultDomainCount)

Set the platformFaultDomainCount property: Fault Domain count for each placement group.

VirtualMachineScaleSetInner withPriorityMixPolicy(PriorityMixPolicy priorityMixPolicy)

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

VirtualMachineScaleSetInner withProximityPlacementGroup(SubResource proximityPlacementGroup)

Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

VirtualMachineScaleSetInner withResiliencyPolicy(ResiliencyPolicy resiliencyPolicy)

Set the resiliencyPolicy property: Policy for Resiliency.

VirtualMachineScaleSetInner withScaleInPolicy(ScaleInPolicy scaleInPolicy)

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

VirtualMachineScaleSetInner withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy)

Set the scheduledEventsPolicy property: The ScheduledEventsPolicy.

VirtualMachineScaleSetInner withSinglePlacementGroup(Boolean singlePlacementGroup)

Set the singlePlacementGroup property: When true this limits the scale set to a single placement group, of max size 100 virtual machines.

VirtualMachineScaleSetInner withSku(Sku sku)

Set the sku property: The virtual machine scale set sku.

VirtualMachineScaleSetInner withSkuProfile(SkuProfile skuProfile)

Set the skuProfile property: Specifies the sku profile for the virtual machine scale set.

VirtualMachineScaleSetInner withSpotRestorePolicy(SpotRestorePolicy spotRestorePolicy)

Set the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.

VirtualMachineScaleSetInner withTags(Map<String,String> tags)
VirtualMachineScaleSetInner withUpgradePolicy(UpgradePolicy upgradePolicy)

Set the upgradePolicy property: The upgrade policy.

VirtualMachineScaleSetInner withVirtualMachineProfile(VirtualMachineScaleSetVMProfile virtualMachineProfile)

Set the virtualMachineProfile property: The virtual machine profile.

VirtualMachineScaleSetInner withZonalPlatformFaultDomainAlignMode(ZonalPlatformFaultDomainAlignMode zonalPlatformFaultDomainAlignMode)

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

VirtualMachineScaleSetInner withZoneBalance(Boolean zoneBalance)

Set the zoneBalance property: Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.

VirtualMachineScaleSetInner withZones(List<String> zones)

Set the zones property: The virtual machine scale set zones.

ZonalPlatformFaultDomainAlignMode zonalPlatformFaultDomainAlignMode()

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

Boolean zoneBalance()

Get the zoneBalance property: Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.

List<String> zones()

Get the zones property: The virtual machine scale set zones.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineScaleSetInner

public VirtualMachineScaleSetInner()

Creates an instance of VirtualMachineScaleSetInner class.

Method Details

additionalCapabilities

public AdditionalCapabilities additionalCapabilities()

Get the additionalCapabilities property: 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.

Returns:

the additionalCapabilities value.

automaticRepairsPolicy

public AutomaticRepairsPolicy automaticRepairsPolicy()

Get the automaticRepairsPolicy property: Policy for automatic repairs.

Returns:

the automaticRepairsPolicy value.

constrainedMaximumCapacity

public Boolean constrainedMaximumCapacity()

Get the constrainedMaximumCapacity property: Optional property which must either be set to True or omitted.

Returns:

the constrainedMaximumCapacity value.

doNotRunExtensionsOnOverprovisionedVMs

public Boolean doNotRunExtensionsOnOverprovisionedVMs()

Get the doNotRunExtensionsOnOverprovisionedVMs property: 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.

Returns:

the doNotRunExtensionsOnOverprovisionedVMs value.

etag

public String etag()

Get the etag property: 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:

the etag value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the Virtual Machine Scale Set.

Returns:

the extendedLocation value.

fromJson

public static VirtualMachineScaleSetInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineScaleSetInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hostGroup

public SubResource hostGroup()

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

Returns:

the hostGroup value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

VirtualMachineScaleSetInner.id()

Returns:

the id value.

identity

public VirtualMachineScaleSetIdentity identity()

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

Returns:

the identity value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualMachineScaleSetInner.name()

Returns:

the name value.

orchestrationMode

public OrchestrationMode orchestrationMode()

Get the orchestrationMode property: Specifies the orchestration mode for the virtual machine scale set.

Returns:

the orchestrationMode value.

overprovision

public Boolean overprovision()

Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.

Returns:

the overprovision value.

plan

public Plan plan()

Get the plan property: 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**.

Returns:

the plan value.

platformFaultDomainCount

public Integer platformFaultDomainCount()

Get the platformFaultDomainCount property: Fault Domain count for each placement group.

Returns:

the platformFaultDomainCount value.

priorityMixPolicy

public PriorityMixPolicy priorityMixPolicy()

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

Returns:

the priorityMixPolicy value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

Returns:

the provisioningState value.

proximityPlacementGroup

public SubResource proximityPlacementGroup()

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

Returns:

the proximityPlacementGroup value.

resiliencyPolicy

public ResiliencyPolicy resiliencyPolicy()

Get the resiliencyPolicy property: Policy for Resiliency.

Returns:

the resiliencyPolicy value.

scaleInPolicy

public ScaleInPolicy scaleInPolicy()

Get the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.

Returns:

the scaleInPolicy value.

scheduledEventsPolicy

public ScheduledEventsPolicy scheduledEventsPolicy()

Get the scheduledEventsPolicy property: The ScheduledEventsPolicy.

Returns:

the scheduledEventsPolicy value.

singlePlacementGroup

public Boolean singlePlacementGroup()

Get the singlePlacementGroup property: 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.

Returns:

the singlePlacementGroup value.

sku

public Sku sku()

Get the sku property: The virtual machine scale set sku.

Returns:

the sku value.

skuProfile

public SkuProfile skuProfile()

Get the skuProfile property: Specifies the sku profile for the virtual machine scale set.

Returns:

the skuProfile value.

spotRestorePolicy

public SpotRestorePolicy spotRestorePolicy()

Get the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.

Returns:

the spotRestorePolicy value.

timeCreated

public OffsetDateTime timeCreated()

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

Returns:

the timeCreated value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineScaleSetInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualMachineScaleSetInner.type()

Returns:

the type value.

uniqueId

public String uniqueId()

Get the uniqueId property: Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

Returns:

the uniqueId value.

upgradePolicy

public UpgradePolicy upgradePolicy()

Get the upgradePolicy property: The upgrade policy.

Returns:

the upgradePolicy value.

validate

public void validate()

Validates the instance.

virtualMachineProfile

public VirtualMachineScaleSetVMProfile virtualMachineProfile()

Get the virtualMachineProfile property: The virtual machine profile.

Returns:

the virtualMachineProfile value.

withAdditionalCapabilities

public VirtualMachineScaleSetInner withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)

Set the additionalCapabilities property: 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.

Parameters:

additionalCapabilities - the additionalCapabilities value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withAutomaticRepairsPolicy

public VirtualMachineScaleSetInner withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy)

Set the automaticRepairsPolicy property: Policy for automatic repairs.

Parameters:

automaticRepairsPolicy - the automaticRepairsPolicy value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withConstrainedMaximumCapacity

public VirtualMachineScaleSetInner withConstrainedMaximumCapacity(Boolean constrainedMaximumCapacity)

Set the constrainedMaximumCapacity property: Optional property which must either be set to True or omitted.

Parameters:

constrainedMaximumCapacity - the constrainedMaximumCapacity value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withDoNotRunExtensionsOnOverprovisionedVMs

public VirtualMachineScaleSetInner withDoNotRunExtensionsOnOverprovisionedVMs(Boolean doNotRunExtensionsOnOverprovisionedVMs)

Set the doNotRunExtensionsOnOverprovisionedVMs property: 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.

Parameters:

doNotRunExtensionsOnOverprovisionedVMs - the doNotRunExtensionsOnOverprovisionedVMs value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withExtendedLocation

public VirtualMachineScaleSetInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the Virtual Machine Scale Set.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withHostGroup

public VirtualMachineScaleSetInner withHostGroup(SubResource hostGroup)

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

Parameters:

hostGroup - the hostGroup value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withIdentity

public VirtualMachineScaleSetInner withIdentity(VirtualMachineScaleSetIdentity identity)

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

Parameters:

identity - the identity value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withLocation

public VirtualMachineScaleSetInner withLocation(String location)

Overrides:

VirtualMachineScaleSetInner.withLocation(String location)

Parameters:

location

withOrchestrationMode

public VirtualMachineScaleSetInner withOrchestrationMode(OrchestrationMode orchestrationMode)

Set the orchestrationMode property: Specifies the orchestration mode for the virtual machine scale set.

Parameters:

orchestrationMode - the orchestrationMode value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withOverprovision

public VirtualMachineScaleSetInner withOverprovision(Boolean overprovision)

Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.

Parameters:

overprovision - the overprovision value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withPlan

public VirtualMachineScaleSetInner withPlan(Plan plan)

Set the plan property: 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**.

Parameters:

plan - the plan value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withPlatformFaultDomainCount

public VirtualMachineScaleSetInner withPlatformFaultDomainCount(Integer platformFaultDomainCount)

Set the platformFaultDomainCount property: Fault Domain count for each placement group.

Parameters:

platformFaultDomainCount - the platformFaultDomainCount value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withPriorityMixPolicy

public VirtualMachineScaleSetInner withPriorityMixPolicy(PriorityMixPolicy priorityMixPolicy)

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

Parameters:

priorityMixPolicy - the priorityMixPolicy value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withProximityPlacementGroup

public VirtualMachineScaleSetInner withProximityPlacementGroup(SubResource proximityPlacementGroup)

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

Parameters:

proximityPlacementGroup - the proximityPlacementGroup value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withResiliencyPolicy

public VirtualMachineScaleSetInner withResiliencyPolicy(ResiliencyPolicy resiliencyPolicy)

Set the resiliencyPolicy property: Policy for Resiliency.

Parameters:

resiliencyPolicy - the resiliencyPolicy value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withScaleInPolicy

public VirtualMachineScaleSetInner withScaleInPolicy(ScaleInPolicy scaleInPolicy)

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

Parameters:

scaleInPolicy - the scaleInPolicy value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withScheduledEventsPolicy

public VirtualMachineScaleSetInner withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy)

Set the scheduledEventsPolicy property: The ScheduledEventsPolicy.

Parameters:

scheduledEventsPolicy - the scheduledEventsPolicy value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withSinglePlacementGroup

public VirtualMachineScaleSetInner withSinglePlacementGroup(Boolean singlePlacementGroup)

Set the singlePlacementGroup property: 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.

Parameters:

singlePlacementGroup - the singlePlacementGroup value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withSku

public VirtualMachineScaleSetInner withSku(Sku sku)

Set the sku property: The virtual machine scale set sku.

Parameters:

sku - the sku value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withSkuProfile

public VirtualMachineScaleSetInner withSkuProfile(SkuProfile skuProfile)

Set the skuProfile property: Specifies the sku profile for the virtual machine scale set.

Parameters:

skuProfile - the skuProfile value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withSpotRestorePolicy

public VirtualMachineScaleSetInner withSpotRestorePolicy(SpotRestorePolicy spotRestorePolicy)

Set the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.

Parameters:

spotRestorePolicy - the spotRestorePolicy value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withTags

public VirtualMachineScaleSetInner withTags(Map tags)

Overrides:

VirtualMachineScaleSetInner.withTags(Map<String,String> tags)

Parameters:

tags

withUpgradePolicy

public VirtualMachineScaleSetInner withUpgradePolicy(UpgradePolicy upgradePolicy)

Set the upgradePolicy property: The upgrade policy.

Parameters:

upgradePolicy - the upgradePolicy value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withVirtualMachineProfile

public VirtualMachineScaleSetInner withVirtualMachineProfile(VirtualMachineScaleSetVMProfile virtualMachineProfile)

Set the virtualMachineProfile property: The virtual machine profile.

Parameters:

virtualMachineProfile - the virtualMachineProfile value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withZonalPlatformFaultDomainAlignMode

public VirtualMachineScaleSetInner withZonalPlatformFaultDomainAlignMode(ZonalPlatformFaultDomainAlignMode zonalPlatformFaultDomainAlignMode)

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

Parameters:

zonalPlatformFaultDomainAlignMode - the zonalPlatformFaultDomainAlignMode value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withZoneBalance

public VirtualMachineScaleSetInner withZoneBalance(Boolean zoneBalance)

Set the zoneBalance property: 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.

Parameters:

zoneBalance - the zoneBalance value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

withZones

public VirtualMachineScaleSetInner withZones(List zones)

Set the zones property: The virtual machine scale set zones.

Parameters:

zones - the zones value to set.

Returns:

the VirtualMachineScaleSetInner object itself.

zonalPlatformFaultDomainAlignMode

public ZonalPlatformFaultDomainAlignMode zonalPlatformFaultDomainAlignMode()

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

Returns:

the zonalPlatformFaultDomainAlignMode value.

zoneBalance

public Boolean zoneBalance()

Get the zoneBalance property: 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.

Returns:

the zoneBalance value.

zones

public List zones()

Get the zones property: The virtual machine scale set zones.

Returns:

the zones value.

Applies to