VirtualMachineScaleSetUpdate Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. UpdateResource - com.
azure. resourcemanager. compute. models. VirtualMachineScaleSetUpdate
- com.
- com.
public final class VirtualMachineScaleSetUpdate
extends UpdateResource
Describes a Virtual Machine Scale Set.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineScaleSetUpdate() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Additional |
additionalCapabilities()
Get the additional |
Automatic |
automaticRepairsPolicy()
Get the automatic |
Boolean |
doNotRunExtensionsOnOverprovisionedVMs()
Get the do |
Virtual |
identity()
Get the identity property: The identity of the virtual machine scale set, if configured. |
Boolean |
overprovision()
Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned. |
Plan |
plan()
Get the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images. |
Priority |
priorityMixPolicy()
Get the priority |
Sub |
proximityPlacementGroup()
Get the proximity |
Resiliency |
resiliencyPolicy()
Get the resiliency |
Scale |
scaleInPolicy()
Get the scale |
Boolean |
singlePlacementGroup()
Get the single |
Sku |
sku()
Get the sku property: The virtual machine scale set sku. |
Spot |
spotRestorePolicy()
Get the spot |
Upgrade |
upgradePolicy()
Get the upgrade |
void |
validate()
Validates the instance. |
Virtual |
virtualMachineProfile()
Get the virtual |
Virtual |
withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)
Set the additional |
Virtual |
withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy)
Set the automatic |
Virtual |
withDoNotRunExtensionsOnOverprovisionedVMs(Boolean doNotRunExtensionsOnOverprovisionedVMs)
Set the do |
Virtual |
withIdentity(VirtualMachineScaleSetIdentity identity)
Set the identity property: The identity of the virtual machine scale set, if configured. |
Virtual |
withOverprovision(Boolean overprovision)
Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned. |
Virtual |
withPlan(Plan plan)
Set the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images. |
Virtual |
withPriorityMixPolicy(PriorityMixPolicy priorityMixPolicy)
Set the priority |
Virtual |
withProximityPlacementGroup(SubResource proximityPlacementGroup)
Set the proximity |
Virtual |
withResiliencyPolicy(ResiliencyPolicy resiliencyPolicy)
Set the resiliency |
Virtual |
withScaleInPolicy(ScaleInPolicy scaleInPolicy)
Set the scale |
Virtual |
withSinglePlacementGroup(Boolean singlePlacementGroup)
Set the single |
Virtual |
withSku(Sku sku)
Set the sku property: The virtual machine scale set sku. |
Virtual |
withSpotRestorePolicy(SpotRestorePolicy spotRestorePolicy)
Set the spot |
Virtual |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
Virtual |
withUpgradePolicy(UpgradePolicy upgradePolicy)
Set the upgrade |
Virtual |
withVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile)
Set the virtual |
Methods inherited from UpdateResource
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineScaleSetUpdate
public VirtualMachineScaleSetUpdate()
Creates an instance of VirtualMachineScaleSetUpdate 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:
automaticRepairsPolicy
public AutomaticRepairsPolicy automaticRepairsPolicy()
Get the automaticRepairsPolicy property: Policy for automatic repairs.
Returns:
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:
identity
public VirtualMachineScaleSetIdentity identity()
Get the identity property: The identity of the virtual machine scale set, if configured.
Returns:
overprovision
public Boolean overprovision()
Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.
Returns:
plan
public Plan plan()
Get the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.
Returns:
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:
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:
resiliencyPolicy
public ResiliencyPolicy resiliencyPolicy()
Get the resiliencyPolicy property: Policy for Resiliency.
Returns:
scaleInPolicy
public ScaleInPolicy scaleInPolicy()
Get the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.
Returns:
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:
sku
public Sku sku()
Get the sku property: The virtual machine scale set sku.
Returns:
spotRestorePolicy
public SpotRestorePolicy spotRestorePolicy()
Get the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.
Returns:
upgradePolicy
public UpgradePolicy upgradePolicy()
Get the upgradePolicy property: The upgrade policy.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
VirtualMachineScaleSetUpdate.validate()virtualMachineProfile
public VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile()
Get the virtualMachineProfile property: The virtual machine profile.
Returns:
withAdditionalCapabilities
public VirtualMachineScaleSetUpdate 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:
Returns:
withAutomaticRepairsPolicy
public VirtualMachineScaleSetUpdate withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy)
Set the automaticRepairsPolicy property: Policy for automatic repairs.
Parameters:
Returns:
withDoNotRunExtensionsOnOverprovisionedVMs
public VirtualMachineScaleSetUpdate 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:
Returns:
withIdentity
public VirtualMachineScaleSetUpdate withIdentity(VirtualMachineScaleSetIdentity identity)
Set the identity property: The identity of the virtual machine scale set, if configured.
Parameters:
Returns:
withOverprovision
public VirtualMachineScaleSetUpdate withOverprovision(Boolean overprovision)
Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.
Parameters:
Returns:
withPlan
public VirtualMachineScaleSetUpdate withPlan(Plan plan)
Set the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.
Parameters:
Returns:
withPriorityMixPolicy
public VirtualMachineScaleSetUpdate 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:
Returns:
withProximityPlacementGroup
public VirtualMachineScaleSetUpdate 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:
Returns:
withResiliencyPolicy
public VirtualMachineScaleSetUpdate withResiliencyPolicy(ResiliencyPolicy resiliencyPolicy)
Set the resiliencyPolicy property: Policy for Resiliency.
Parameters:
Returns:
withScaleInPolicy
public VirtualMachineScaleSetUpdate withScaleInPolicy(ScaleInPolicy scaleInPolicy)
Set the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.
Parameters:
Returns:
withSinglePlacementGroup
public VirtualMachineScaleSetUpdate 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:
Returns:
withSku
public VirtualMachineScaleSetUpdate withSku(Sku sku)
Set the sku property: The virtual machine scale set sku.
Parameters:
Returns:
withSpotRestorePolicy
public VirtualMachineScaleSetUpdate withSpotRestorePolicy(SpotRestorePolicy spotRestorePolicy)
Set the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.
Parameters:
Returns:
withTags
public VirtualMachineScaleSetUpdate withTags(Map
Set the tags property: Resource tags.
Overrides:
VirtualMachineScaleSetUpdate.withTags(Map<String,String> tags)Parameters:
withUpgradePolicy
public VirtualMachineScaleSetUpdate withUpgradePolicy(UpgradePolicy upgradePolicy)
Set the upgradePolicy property: The upgrade policy.
Parameters:
Returns:
withVirtualMachineProfile
public VirtualMachineScaleSetUpdate withVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile)
Set the virtualMachineProfile property: The virtual machine profile.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for