Class VirtualMachineScaleSetUpdate
java.lang.Object
com.microsoft.azure.management.compute.UpdateResource
com.microsoft.azure.management.compute.VirtualMachineScaleSetUpdate
Describes a Virtual Machine Scale Set.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set.Get policy for automatic repairs.Get when Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept.identity()
Get the identity of the virtual machine scale set, if configured.Get specifies whether the Virtual Machine Scale Set should be overprovisioned.plan()
Get the purchase plan when deploying a virtual machine scale set from VM Marketplace images.com.microsoft.azure.SubResource
Get specifies information about the proximity placement group that the virtual machine scale set should be assigned to.Get specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.Get when true this limits the scale set to a single placement group, of max size 100 virtual machines.sku()
Get the virtual machine scale set sku.Get the upgrade policy.Get the virtual machine profile.withAdditionalCapabilities
(AdditionalCapabilities additionalCapabilities) Set specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set.withAutomaticRepairsPolicy
(AutomaticRepairsPolicy automaticRepairsPolicy) Set policy for automatic repairs.withDoNotRunExtensionsOnOverprovisionedVMs
(Boolean doNotRunExtensionsOnOverprovisionedVMs) Set when Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept.withIdentity
(VirtualMachineScaleSetIdentity identity) Set the identity of the virtual machine scale set, if configured.withOverprovision
(Boolean overprovision) Set specifies whether the Virtual Machine Scale Set should be overprovisioned.Set the purchase plan when deploying a virtual machine scale set from VM Marketplace images.withProximityPlacementGroup
(com.microsoft.azure.SubResource proximityPlacementGroup) Set specifies information about the proximity placement group that the virtual machine scale set should be assigned to.withScaleInPolicy
(ScaleInPolicy scaleInPolicy) Set specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.withSinglePlacementGroup
(Boolean singlePlacementGroup) Set when true this limits the scale set to a single placement group, of max size 100 virtual machines.Set the virtual machine scale set sku.withUpgradePolicy
(UpgradePolicy upgradePolicy) Set the upgrade policy.withVirtualMachineProfile
(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile) Set the virtual machine profile.Methods inherited from class com.microsoft.azure.management.compute.UpdateResource
tags, withTags
-
Constructor Details
-
VirtualMachineScaleSetUpdate
public VirtualMachineScaleSetUpdate()
-
-
Method Details
-
sku
Get the virtual machine scale set sku.- Returns:
- the sku value
-
withSku
Set the virtual machine scale set sku.- Parameters:
sku
- the sku value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
plan
Get the purchase plan when deploying a virtual machine scale set from VM Marketplace images.- Returns:
- the plan value
-
withPlan
Set the purchase plan when deploying a virtual machine scale set from VM Marketplace images.- Parameters:
plan
- the plan value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
upgradePolicy
Get the upgrade policy.- Returns:
- the upgradePolicy value
-
withUpgradePolicy
Set the upgrade policy.- Parameters:
upgradePolicy
- the upgradePolicy value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
automaticRepairsPolicy
Get policy for automatic repairs.- Returns:
- the automaticRepairsPolicy value
-
withAutomaticRepairsPolicy
public VirtualMachineScaleSetUpdate withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy) Set policy for automatic repairs.- Parameters:
automaticRepairsPolicy
- the automaticRepairsPolicy value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
virtualMachineProfile
Get the virtual machine profile.- Returns:
- the virtualMachineProfile value
-
withVirtualMachineProfile
public VirtualMachineScaleSetUpdate withVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile) Set the virtual machine profile.- Parameters:
virtualMachineProfile
- the virtualMachineProfile value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
overprovision
Get specifies whether the Virtual Machine Scale Set should be overprovisioned.- Returns:
- the overprovision value
-
withOverprovision
Set specifies whether the Virtual Machine Scale Set should be overprovisioned.- Parameters:
overprovision
- the overprovision value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
doNotRunExtensionsOnOverprovisionedVMs
Get 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
-
withDoNotRunExtensionsOnOverprovisionedVMs
public VirtualMachineScaleSetUpdate withDoNotRunExtensionsOnOverprovisionedVMs(Boolean doNotRunExtensionsOnOverprovisionedVMs) Set 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 VirtualMachineScaleSetUpdate object itself.
-
singlePlacementGroup
Get 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
-
withSinglePlacementGroup
Set 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 VirtualMachineScaleSetUpdate object itself.
-
additionalCapabilities
Get 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
-
withAdditionalCapabilities
public VirtualMachineScaleSetUpdate withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities) Set 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 VirtualMachineScaleSetUpdate object itself.
-
scaleInPolicy
Get specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.- Returns:
- the scaleInPolicy value
-
withScaleInPolicy
Set specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.- Parameters:
scaleInPolicy
- the scaleInPolicy value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
proximityPlacementGroup
public com.microsoft.azure.SubResource proximityPlacementGroup()Get specifies information about the proximity placement group that the virtual machine scale set should be assigned to. <br><br>Minimum api-version: 2018-04-01.- Returns:
- the proximityPlacementGroup value
-
withProximityPlacementGroup
public VirtualMachineScaleSetUpdate withProximityPlacementGroup(com.microsoft.azure.SubResource proximityPlacementGroup) Set specifies information about the proximity placement group that the virtual machine scale set should be assigned to. <br><br>Minimum api-version: 2018-04-01.- Parameters:
proximityPlacementGroup
- the proximityPlacementGroup value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
identity
Get the identity of the virtual machine scale set, if configured.- Returns:
- the identity value
-
withIdentity
Set the identity of the virtual machine scale set, if configured.- Parameters:
identity
- the identity value to set- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-