Class VirtualMachineInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.compute.fluent.models.VirtualMachineInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class VirtualMachineInner
extends com.azure.core.management.Resource
Describes a Virtual Machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the virtual machine.Get the applicationProfile property: Specifies the gallery applications that should be made available to the VM/VMSS.com.azure.core.management.SubResourceGet the availabilitySet property: Specifies information about the availability set that the virtual machine should be assigned to.Get the billingProfile property: Specifies the billing related details of a Azure Spot virtual machine.Get the capacityReservation property: Specifies information about the capacity reservation that is used to allocate virtual machine.Get the diagnosticsProfile property: Specifies the boot diagnostic settings state.etag()Get the etag property: Etag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header to ensure optimistic updates.Get the evictionPolicy property: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.Get the extendedLocation property: The extended location of the Virtual Machine.Get the extensionsTimeBudget property: Specifies the time alloted for all extensions to start.static VirtualMachineInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineInner from the JsonReader.Get the hardwareProfile property: Specifies the hardware settings for the virtual machine.com.azure.core.management.SubResourcehost()Get the host property: Specifies information about the dedicated host that the virtual machine resides in.com.azure.core.management.SubResourceGet the hostGroup property: Specifies information about the dedicated host group that the virtual machine resides in.id()Get the id property: Fully qualified resource Id for the resource.identity()Get the identity property: The identity of the virtual machine, if configured.Get the instanceView property: The virtual machine instance view.Get the licenseType property: Specifies that the image or disk that is being used was licensed on-premises.Get the managedBy property: ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS.name()Get the name property: The name of the resource.Get the networkProfile property: Specifies the network interfaces of the virtual machine.Get the osProfile property: Specifies the operating system settings used while creating the virtual machine.Get the placement property: Placement section specifies the user-defined constraints for virtual machine hardware placement.plan()Get the plan property: Specifies information about the marketplace image used to create the virtual machine.Get the platformFaultDomain property: Specifies the scale set logical fault domain into which the Virtual Machine will be created.priority()Get the priority property: Specifies the priority for the virtual machine.Get the provisioningState property: The provisioning state, which only appears in the response.com.azure.core.management.SubResourceGet the proximityPlacementGroup property: Specifies information about the proximity placement group that the virtual machine should be assigned to.Get the resources property: The virtual machine child extension resources.Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine.Get the scheduledEventsProfile property: Specifies Scheduled Event related configurations.Get the securityProfile property: Specifies the Security related profile settings for the virtual machine.Get the storageProfile property: Specifies the storage settings for the virtual machine disks.Get the timeCreated property: Specifies the time at which the Virtual Machine resource was created.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.userData()Get the userData property: UserData for the VM, which must be base-64 encoded.voidvalidate()Validates the instance.com.azure.core.management.SubResourceGet the virtualMachineScaleSet property: Specifies information about the virtual machine scale set that the virtual machine should be assigned to.vmId()Get the vmId property: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands.withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities) Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the virtual machine.withApplicationProfile(ApplicationProfile applicationProfile) Set the applicationProfile property: Specifies the gallery applications that should be made available to the VM/VMSS.withAvailabilitySet(com.azure.core.management.SubResource availabilitySet) Set the availabilitySet property: Specifies information about the availability set that the virtual machine should be assigned to.withBillingProfile(BillingProfile billingProfile) Set the billingProfile property: Specifies the billing related details of a Azure Spot virtual machine.withCapacityReservation(CapacityReservationProfile capacityReservation) Set the capacityReservation property: Specifies information about the capacity reservation that is used to allocate virtual machine.withDiagnosticsProfile(DiagnosticsProfile diagnosticsProfile) Set the diagnosticsProfile property: Specifies the boot diagnostic settings state.withEvictionPolicy(VirtualMachineEvictionPolicyTypes evictionPolicy) Set the evictionPolicy property: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: The extended location of the Virtual Machine.withExtensionsTimeBudget(String extensionsTimeBudget) Set the extensionsTimeBudget property: Specifies the time alloted for all extensions to start.withHardwareProfile(HardwareProfile hardwareProfile) Set the hardwareProfile property: Specifies the hardware settings for the virtual machine.withHost(com.azure.core.management.SubResource host) Set the host property: Specifies information about the dedicated host that the virtual machine resides in.withHostGroup(com.azure.core.management.SubResource hostGroup) Set the hostGroup property: Specifies information about the dedicated host group that the virtual machine resides in.withIdentity(VirtualMachineIdentity identity) Set the identity property: The identity of the virtual machine, if configured.withLicenseType(String licenseType) Set the licenseType property: Specifies that the image or disk that is being used was licensed on-premises.withLocation(String location) withNetworkProfile(NetworkProfile networkProfile) Set the networkProfile property: Specifies the network interfaces of the virtual machine.withOsProfile(OSProfile osProfile) Set the osProfile property: Specifies the operating system settings used while creating the virtual machine.withPlacement(Placement placement) Set the placement property: Placement section specifies the user-defined constraints for virtual machine hardware placement.Set the plan property: Specifies information about the marketplace image used to create the virtual machine.withPlatformFaultDomain(Integer platformFaultDomain) Set the platformFaultDomain property: Specifies the scale set logical fault domain into which the Virtual Machine will be created.withPriority(VirtualMachinePriorityTypes priority) Set the priority property: Specifies the priority for the virtual machine.withProximityPlacementGroup(com.azure.core.management.SubResource proximityPlacementGroup) Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the virtual machine should be assigned to.withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy) Set the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine.withScheduledEventsProfile(ScheduledEventsProfile scheduledEventsProfile) Set the scheduledEventsProfile property: Specifies Scheduled Event related configurations.withSecurityProfile(SecurityProfile securityProfile) Set the securityProfile property: Specifies the Security related profile settings for the virtual machine.withStorageProfile(StorageProfile storageProfile) Set the storageProfile property: Specifies the storage settings for the virtual machine disks.withUserData(String userData) Set the userData property: UserData for the VM, which must be base-64 encoded.withVirtualMachineScaleSet(com.azure.core.management.SubResource virtualMachineScaleSet) Set the virtualMachineScaleSet property: Specifies information about the virtual machine scale set that the virtual machine should be assigned to.Set the zones property: The virtual machine zones.zones()Get the zones property: The virtual machine zones.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.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
-
VirtualMachineInner
public VirtualMachineInner()Creates an instance of VirtualMachineInner class.
-
-
Method Details
-
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.
-
withPlan
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 VirtualMachineInner object itself.
-
resources
Get the resources property: The virtual machine child extension resources.- Returns:
- the resources value.
-
identity
Get the identity property: The identity of the virtual machine, if configured.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of the virtual machine, if configured.- Parameters:
identity- the identity value to set.- Returns:
- the VirtualMachineInner object itself.
-
zones
Get the zones property: The virtual machine zones.- Returns:
- the zones value.
-
withZones
Set the zones property: The virtual machine zones.- Parameters:
zones- the zones value to set.- Returns:
- the VirtualMachineInner object itself.
-
extendedLocation
Get the extendedLocation property: The extended location of the Virtual Machine.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: The extended location of the Virtual Machine.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the VirtualMachineInner object itself.
-
managedBy
Get the managedBy property: ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS. This property is used by platform for internal resource group delete optimization.- Returns:
- the managedBy value.
-
etag
Get the etag property: Etag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header to ensure optimistic updates.- Returns:
- the etag value.
-
placement
Get the placement property: Placement section specifies the user-defined constraints for virtual machine hardware placement. This property cannot be changed once VM is provisioned. Minimum api-version: 2024-11-01.- Returns:
- the placement value.
-
withPlacement
Set the placement property: Placement section specifies the user-defined constraints for virtual machine hardware placement. This property cannot be changed once VM is provisioned. Minimum api-version: 2024-11-01.- Parameters:
placement- the placement value to set.- Returns:
- the VirtualMachineInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
hardwareProfile
Get the hardwareProfile property: Specifies the hardware settings for the virtual machine.- Returns:
- the hardwareProfile value.
-
withHardwareProfile
Set the hardwareProfile property: Specifies the hardware settings for the virtual machine.- Parameters:
hardwareProfile- the hardwareProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
scheduledEventsPolicy
Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine.- Returns:
- the scheduledEventsPolicy value.
-
withScheduledEventsPolicy
Set the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine.- Parameters:
scheduledEventsPolicy- the scheduledEventsPolicy value to set.- Returns:
- the VirtualMachineInner object itself.
-
storageProfile
Get the storageProfile property: Specifies the storage settings for the virtual machine disks.- Returns:
- the storageProfile value.
-
withStorageProfile
Set the storageProfile property: Specifies the storage settings for the virtual machine disks.- Parameters:
storageProfile- the storageProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
additionalCapabilities
Get the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the virtual machine.- Returns:
- the additionalCapabilities value.
-
withAdditionalCapabilities
public VirtualMachineInner withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities) Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the virtual machine.- Parameters:
additionalCapabilities- the additionalCapabilities value to set.- Returns:
- the VirtualMachineInner object itself.
-
osProfile
Get the osProfile property: Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned.- Returns:
- the osProfile value.
-
withOsProfile
Set the osProfile property: Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned.- Parameters:
osProfile- the osProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
networkProfile
Get the networkProfile property: Specifies the network interfaces of the virtual machine.- Returns:
- the networkProfile value.
-
withNetworkProfile
Set the networkProfile property: Specifies the network interfaces of the virtual machine.- Parameters:
networkProfile- the networkProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
securityProfile
Get the securityProfile property: Specifies the Security related profile settings for the virtual machine.- Returns:
- the securityProfile value.
-
withSecurityProfile
Set the securityProfile property: Specifies the Security related profile settings for the virtual machine.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
diagnosticsProfile
Get the diagnosticsProfile property: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.- Returns:
- the diagnosticsProfile value.
-
withDiagnosticsProfile
Set the diagnosticsProfile property: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.- Parameters:
diagnosticsProfile- the diagnosticsProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
availabilitySet
public com.azure.core.management.SubResource availabilitySet()Get the availabilitySet property: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference.- Returns:
- the availabilitySet value.
-
withAvailabilitySet
public VirtualMachineInner withAvailabilitySet(com.azure.core.management.SubResource availabilitySet) Set the availabilitySet property: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference.- Parameters:
availabilitySet- the availabilitySet value to set.- Returns:
- the VirtualMachineInner object itself.
-
virtualMachineScaleSet
public com.azure.core.management.SubResource virtualMachineScaleSet()Get the virtualMachineScaleSet property: Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01.- Returns:
- the virtualMachineScaleSet value.
-
withVirtualMachineScaleSet
public VirtualMachineInner withVirtualMachineScaleSet(com.azure.core.management.SubResource virtualMachineScaleSet) Set the virtualMachineScaleSet property: Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01.- Parameters:
virtualMachineScaleSet- the virtualMachineScaleSet value to set.- Returns:
- the VirtualMachineInner 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 should be assigned to. Minimum api-version: 2018-04-01.- Returns:
- the proximityPlacementGroup value.
-
withProximityPlacementGroup
public VirtualMachineInner withProximityPlacementGroup(com.azure.core.management.SubResource proximityPlacementGroup) Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: 2018-04-01.- Parameters:
proximityPlacementGroup- the proximityPlacementGroup value to set.- Returns:
- the VirtualMachineInner object itself.
-
priority
Get the priority property: Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01.- Returns:
- the priority value.
-
withPriority
Set the priority property: Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01.- Parameters:
priority- the priority value to set.- Returns:
- the VirtualMachineInner object itself.
-
evictionPolicy
Get the evictionPolicy property: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview.- Returns:
- the evictionPolicy value.
-
withEvictionPolicy
Set the evictionPolicy property: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview.- Parameters:
evictionPolicy- the evictionPolicy value to set.- Returns:
- the VirtualMachineInner object itself.
-
billingProfile
Get the billingProfile property: Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01.- Returns:
- the billingProfile value.
-
withBillingProfile
Set the billingProfile property: Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01.- Parameters:
billingProfile- the billingProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
host
public com.azure.core.management.SubResource host()Get the host property: Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01.- Returns:
- the host value.
-
withHost
Set the host property: Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01.- Parameters:
host- the host value to set.- Returns:
- the VirtualMachineInner object itself.
-
hostGroup
public com.azure.core.management.SubResource hostGroup()Get the hostGroup property: Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01.- Returns:
- the hostGroup value.
-
withHostGroup
Set the hostGroup property: Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01.- Parameters:
hostGroup- the hostGroup value to set.- Returns:
- the VirtualMachineInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
instanceView
Get the instanceView property: The virtual machine instance view.- Returns:
- the instanceView value.
-
licenseType
Get the licenseType property: Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) <br><br> [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br> Minimum api-version: 2015-06-15.- Returns:
- the licenseType value.
-
withLicenseType
Set the licenseType property: Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) <br><br> [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br> Minimum api-version: 2015-06-15.- Parameters:
licenseType- the licenseType value to set.- Returns:
- the VirtualMachineInner object itself.
-
vmId
Get the vmId property: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands.- Returns:
- the vmId value.
-
extensionsTimeBudget
Get the extensionsTimeBudget property: Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01.- Returns:
- the extensionsTimeBudget value.
-
withExtensionsTimeBudget
Set the extensionsTimeBudget property: Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01.- Parameters:
extensionsTimeBudget- the extensionsTimeBudget value to set.- Returns:
- the VirtualMachineInner object itself.
-
platformFaultDomain
Get the platformFaultDomain property: Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains. This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set. The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' greater than 1. This property cannot be updated once the Virtual Machine is created. Fault domain assignment can be viewed in the Virtual Machine Instance View. Minimum api‐version: 2020‐12‐01.- Returns:
- the platformFaultDomain value.
-
withPlatformFaultDomain
Set the platformFaultDomain property: Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains. This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set. The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' greater than 1. This property cannot be updated once the Virtual Machine is created. Fault domain assignment can be viewed in the Virtual Machine Instance View. Minimum api‐version: 2020‐12‐01.- Parameters:
platformFaultDomain- the platformFaultDomain value to set.- Returns:
- the VirtualMachineInner object itself.
-
scheduledEventsProfile
Get the scheduledEventsProfile property: Specifies Scheduled Event related configurations.- Returns:
- the scheduledEventsProfile value.
-
withScheduledEventsProfile
public VirtualMachineInner withScheduledEventsProfile(ScheduledEventsProfile scheduledEventsProfile) Set the scheduledEventsProfile property: Specifies Scheduled Event related configurations.- Parameters:
scheduledEventsProfile- the scheduledEventsProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
userData
Get the userData property: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01.- Returns:
- the userData value.
-
withUserData
Set the userData property: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01.- Parameters:
userData- the userData value to set.- Returns:
- the VirtualMachineInner object itself.
-
capacityReservation
Get the capacityReservation property: Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01.- Returns:
- the capacityReservation value.
-
withCapacityReservation
Set the capacityReservation property: Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01.- Parameters:
capacityReservation- the capacityReservation value to set.- Returns:
- the VirtualMachineInner object itself.
-
applicationProfile
Get the applicationProfile property: Specifies the gallery applications that should be made available to the VM/VMSS.- Returns:
- the applicationProfile value.
-
withApplicationProfile
Set the applicationProfile property: Specifies the gallery applications that should be made available to the VM/VMSS.- Parameters:
applicationProfile- the applicationProfile value to set.- Returns:
- the VirtualMachineInner object itself.
-
timeCreated
Get the timeCreated property: Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01.- Returns:
- the timeCreated value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of VirtualMachineInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VirtualMachineInner.
-