Class VirtualMachineScaleSetUpdate
java.lang.Object
com.azure.resourcemanager.compute.models.UpdateResource
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateResource>
Describes a Virtual Machine Scale Set.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetUpdate class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set.Get the automaticRepairsPolicy property: Policy for automatic repairs.Get the doNotRunExtensionsOnOverprovisionedVMs property: When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept.static VirtualMachineScaleSetUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetUpdate from the JsonReader.identity()Get the identity property: The identity of the virtual machine scale set, if configured.Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.plan()Get the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.Get the priorityMixPolicy property: Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance.com.azure.core.management.SubResourceGet the proximityPlacementGroup property: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.Get the resiliencyPolicy property: Policy for Resiliency.Get the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.Get the singlePlacementGroup property: When true this limits the scale set to a single placement group, of max size 100 virtual machines.sku()Get the sku property: The virtual machine scale set sku.Get the skuProfile property: Specifies the sku profile for the virtual machine scale set.Get the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the upgradePolicy property: The upgrade policy.voidvalidate()Validates the instance.Get the virtualMachineProfile property: The virtual machine profile.withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities) Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set.withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy) Set the automaticRepairsPolicy property: Policy for automatic repairs.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.withIdentity(VirtualMachineScaleSetIdentity identity) Set the identity property: The identity of the virtual machine scale set, if configured.withOverprovision(Boolean overprovision) Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.Set the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.withPriorityMixPolicy(PriorityMixPolicy priorityMixPolicy) Set the priorityMixPolicy property: Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance.withProximityPlacementGroup(com.azure.core.management.SubResource proximityPlacementGroup) Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.withResiliencyPolicy(ResiliencyPolicy resiliencyPolicy) Set the resiliencyPolicy property: Policy for Resiliency.withScaleInPolicy(ScaleInPolicy scaleInPolicy) Set the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.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.Set the sku property: The virtual machine scale set sku.withSkuProfile(SkuProfile skuProfile) Set the skuProfile property: Specifies the sku profile for the virtual machine scale set.withSpotRestorePolicy(SpotRestorePolicy spotRestorePolicy) Set the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.Set the tags property: Resource tags.withUpgradePolicy(UpgradePolicy upgradePolicy) Set the upgradePolicy property: The upgrade policy.withVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile) Set the virtualMachineProfile property: The virtual machine profile.withZonalPlatformFaultDomainAlignMode(ZonalPlatformFaultDomainAlignMode zonalPlatformFaultDomainAlignMode) Set the zonalPlatformFaultDomainAlignMode property: Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count.Set the zones property: The virtual machine scale set zones.Get the zonalPlatformFaultDomainAlignMode property: Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count.zones()Get the zones property: The virtual machine scale set zones.Methods inherited from class UpdateResource
tagsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualMachineScaleSetUpdate
public VirtualMachineScaleSetUpdate()Creates an instance of VirtualMachineScaleSetUpdate class.
-
-
Method Details
-
sku
-
withSku
Set the sku property: The virtual machine scale set sku.- Parameters:
sku- the sku value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
plan
Get the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.- Returns:
- the plan value.
-
withPlan
Set the plan property: 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.
-
identity
Get the identity property: The identity of the virtual machine scale set, if configured.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of the virtual machine scale set, if configured.- Parameters:
identity- the identity value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
zones
-
withZones
Set the zones property: The virtual machine scale set zones.- Parameters:
zones- the zones value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
withTags
Set the tags property: Resource tags.- Overrides:
withTagsin classUpdateResource- Parameters:
tags- the tags value to set.- Returns:
- the UpdateResource object itself.
-
upgradePolicy
Get the upgradePolicy property: The upgrade policy.- Returns:
- the upgradePolicy value.
-
withUpgradePolicy
Set the upgradePolicy property: The upgrade policy.- Parameters:
upgradePolicy- the upgradePolicy value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
automaticRepairsPolicy
Get the automaticRepairsPolicy property: Policy for automatic repairs.- Returns:
- the automaticRepairsPolicy value.
-
withAutomaticRepairsPolicy
public VirtualMachineScaleSetUpdate withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy) Set the automaticRepairsPolicy property: Policy for automatic repairs.- Parameters:
automaticRepairsPolicy- the automaticRepairsPolicy value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
virtualMachineProfile
Get the virtualMachineProfile property: The virtual machine profile.- Returns:
- the virtualMachineProfile value.
-
withVirtualMachineProfile
public VirtualMachineScaleSetUpdate withVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile) Set the virtualMachineProfile property: The virtual machine profile.- Parameters:
virtualMachineProfile- the virtualMachineProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
overprovision
Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.- Returns:
- the overprovision value.
-
withOverprovision
Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.- Parameters:
overprovision- the overprovision value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
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.
-
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:
doNotRunExtensionsOnOverprovisionedVMs- the doNotRunExtensionsOnOverprovisionedVMs value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
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.
-
withSinglePlacementGroup
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 VirtualMachineScaleSetUpdate object itself.
-
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.
-
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:
additionalCapabilities- the additionalCapabilities value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
scaleInPolicy
Get the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.- Returns:
- the scaleInPolicy value.
-
withScaleInPolicy
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 VirtualMachineScaleSetUpdate object itself.
-
proximityPlacementGroup
public com.azure.core.management.SubResource proximityPlacementGroup()Get the proximityPlacementGroup property: 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.azure.core.management.SubResource proximityPlacementGroup) Set the proximityPlacementGroup property: 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.
-
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.
-
withPriorityMixPolicy
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 VirtualMachineScaleSetUpdate object itself.
-
spotRestorePolicy
Get the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.- Returns:
- the spotRestorePolicy value.
-
withSpotRestorePolicy
Set the spotRestorePolicy property: Specifies the Spot Restore properties for the virtual machine scale set.- Parameters:
spotRestorePolicy- the spotRestorePolicy value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
resiliencyPolicy
Get the resiliencyPolicy property: Policy for Resiliency.- Returns:
- the resiliencyPolicy value.
-
withResiliencyPolicy
Set the resiliencyPolicy property: Policy for Resiliency.- Parameters:
resiliencyPolicy- the resiliencyPolicy value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
zonalPlatformFaultDomainAlignMode
Get the zonalPlatformFaultDomainAlignMode property: Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count.- Returns:
- the zonalPlatformFaultDomainAlignMode value.
-
withZonalPlatformFaultDomainAlignMode
public VirtualMachineScaleSetUpdate 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 VirtualMachineScaleSetUpdate object itself.
-
skuProfile
Get the skuProfile property: Specifies the sku profile for the virtual machine scale set.- Returns:
- the skuProfile value.
-
withSkuProfile
Set the skuProfile property: Specifies the sku profile for the virtual machine scale set.- Parameters:
skuProfile- the skuProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classUpdateResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UpdateResource>- Overrides:
toJsonin classUpdateResource- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetUpdate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the VirtualMachineScaleSetUpdate.
-