VirtualMachineScaleSetVMInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. compute. fluent. models. VirtualMachineScaleSetVMInner
- com.
- com.
- com.
public final class VirtualMachineScaleSetVMInner
extends Resource
Describes a virtual machine scale set virtual machine.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineScaleSetVMInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Additional |
additionalCapabilities()
Get the additional |
Sub |
availabilitySet()
Get the availability |
Diagnostics |
diagnosticsProfile()
Get the diagnostics |
String |
etag()
Get the etag property: Etag is property returned in Update/Get response of the VMSS VM, so that customer can supply it in the header to ensure optimistic updates. |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Hardware |
hardwareProfile()
Get the hardware |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Virtual |
identity()
Get the identity property: The identity of the virtual machine, if configured. |
String |
instanceId()
Get the instance |
Virtual |
instanceView()
Get the instance |
Boolean |
latestModelApplied()
Get the latest |
String |
licenseType()
Get the license |
String |
modelDefinitionApplied()
Get the model |
String |
name()
Get the name property: The name of the resource. |
Network |
networkProfile()
Get the network |
Virtual |
networkProfileConfiguration()
Get the network |
OSProfile |
osProfile()
Get the os |
Plan |
plan()
Get the plan property: Specifies information about the marketplace image used to create the virtual machine. |
Virtual |
protectionPolicy()
Get the protection |
String |
provisioningState()
Get the provisioning |
List<Virtual |
resources()
Get the resources property: The virtual machine child extension resources. |
Security |
securityProfile()
Get the security |
Sku |
sku()
Get the sku property: The virtual machine SKU. |
Storage |
storageProfile()
Get the storage |
Offset |
timeCreated()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
String |
userData()
Get the user |
void |
validate()
Validates the instance. |
String |
vmId()
Get the vm |
Virtual |
withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)
Set the additional |
Virtual |
withAvailabilitySet(SubResource availabilitySet)
Set the availability |
Virtual |
withDiagnosticsProfile(DiagnosticsProfile diagnosticsProfile)
Set the diagnostics |
Virtual |
withHardwareProfile(HardwareProfile hardwareProfile)
Set the hardware |
Virtual |
withIdentity(VirtualMachineIdentity identity)
Set the identity property: The identity of the virtual machine, if configured. |
Virtual |
withLicenseType(String licenseType)
Set the license |
Virtual |
withLocation(String location) |
Virtual |
withNetworkProfile(NetworkProfile networkProfile)
Set the network |
Virtual |
withNetworkProfileConfiguration(VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration)
Set the network |
Virtual |
withOsProfile(OSProfile osProfile)
Set the os |
Virtual |
withPlan(Plan plan)
Set the plan property: Specifies information about the marketplace image used to create the virtual machine. |
Virtual |
withProtectionPolicy(VirtualMachineScaleSetVMProtectionPolicy protectionPolicy)
Set the protection |
Virtual |
withSecurityProfile(SecurityProfile securityProfile)
Set the security |
Virtual |
withStorageProfile(StorageProfile storageProfile)
Set the storage |
Virtual |
withTags(Map<String,String> tags) |
Virtual |
withUserData(String userData)
Set the user |
List<String> |
zones()
Get the zones property: The virtual machine zones. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineScaleSetVMInner
public VirtualMachineScaleSetVMInner()
Creates an instance of VirtualMachineScaleSetVMInner class.
Method Details
additionalCapabilities
public AdditionalCapabilities additionalCapabilities()
Get the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.
Returns:
availabilitySet
public 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. An existing VM cannot be added to an availability set.
Returns:
diagnosticsProfile
public DiagnosticsProfile diagnosticsProfile()
Get the diagnosticsProfile property: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.
Returns:
etag
public String etag()
Get the etag property: Etag is property returned in Update/Get response of the VMSS VM, so that customer can supply it in the header to ensure optimistic updates.
Returns:
fromJson
public static VirtualMachineScaleSetVMInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineScaleSetVMInner from the JsonReader.
Parameters:
Returns:
Throws:
hardwareProfile
public HardwareProfile hardwareProfile()
Get the hardwareProfile property: Specifies the hardware settings for the virtual machine.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
VirtualMachineScaleSetVMInner.id()Returns:
identity
public VirtualMachineIdentity identity()
Get the identity property: The identity of the virtual machine, if configured.
Returns:
instanceId
public String instanceId()
Get the instanceId property: The virtual machine instance ID.
Returns:
instanceView
public VirtualMachineScaleSetVMInstanceViewInner instanceView()
Get the instanceView property: The virtual machine instance view.
Returns:
latestModelApplied
public Boolean latestModelApplied()
Get the latestModelApplied property: Specifies whether the latest model has been applied to the virtual machine.
Returns:
licenseType
public String licenseType()
Get the licenseType property: Specifies that the image or disk that is being used was licensed on-premises.
Possible values for Windows Server operating system are:
Windows_Client
Windows_Server
Possible values for Linux Server operating system are:
RHEL_BYOS (for RHEL)
SLES_BYOS (for SUSE)
For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)
[Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux)
Minimum api-version: 2015-06-15.
Returns:
modelDefinitionApplied
public String modelDefinitionApplied()
Get the modelDefinitionApplied property: Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
VirtualMachineScaleSetVMInner.name()Returns:
networkProfile
public NetworkProfile networkProfile()
Get the networkProfile property: Specifies the network interfaces of the virtual machine.
Returns:
networkProfileConfiguration
public VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration()
Get the networkProfileConfiguration property: Specifies the network profile configuration of the virtual machine.
Returns:
osProfile
public OSProfile osProfile()
Get the osProfile property: Specifies the operating system settings for the virtual machine.
Returns:
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:
protectionPolicy
public VirtualMachineScaleSetVMProtectionPolicy protectionPolicy()
Get the protectionPolicy property: Specifies the protection policy of the virtual machine.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.
Returns:
resources
public List
Get the resources property: The virtual machine child extension resources.
Returns:
securityProfile
public SecurityProfile securityProfile()
Get the securityProfile property: Specifies the Security related profile settings for the virtual machine.
Returns:
sku
public Sku sku()
Get the sku property: The virtual machine SKU.
Returns:
storageProfile
public StorageProfile storageProfile()
Get the storageProfile property: Specifies the storage settings for the virtual machine disks.
Returns:
timeCreated
public OffsetDateTime timeCreated()
Get the timeCreated property: Specifies the time at which the Virtual Machine resource was created.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualMachineScaleSetVMInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
VirtualMachineScaleSetVMInner.type()Returns:
userData
public String 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:
validate
public void validate()
Validates the instance.
vmId
public String vmId()
Get the vmId property: Azure VM unique ID.
Returns:
withAdditionalCapabilities
public VirtualMachineScaleSetVMInner withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)
Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.
Parameters:
Returns:
withAvailabilitySet
public VirtualMachineScaleSetVMInner withAvailabilitySet(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. An existing VM cannot be added to an availability set.
Parameters:
Returns:
withDiagnosticsProfile
public VirtualMachineScaleSetVMInner withDiagnosticsProfile(DiagnosticsProfile diagnosticsProfile)
Set the diagnosticsProfile property: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.
Parameters:
Returns:
withHardwareProfile
public VirtualMachineScaleSetVMInner withHardwareProfile(HardwareProfile hardwareProfile)
Set the hardwareProfile property: Specifies the hardware settings for the virtual machine.
Parameters:
Returns:
withIdentity
public VirtualMachineScaleSetVMInner withIdentity(VirtualMachineIdentity identity)
Set the identity property: The identity of the virtual machine, if configured.
Parameters:
Returns:
withLicenseType
public VirtualMachineScaleSetVMInner withLicenseType(String licenseType)
Set the licenseType property: Specifies that the image or disk that is being used was licensed on-premises.
Possible values for Windows Server operating system are:
Windows_Client
Windows_Server
Possible values for Linux Server operating system are:
RHEL_BYOS (for RHEL)
SLES_BYOS (for SUSE)
For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)
[Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux)
Minimum api-version: 2015-06-15.
Parameters:
Returns:
withLocation
public VirtualMachineScaleSetVMInner withLocation(String location)
Overrides:
VirtualMachineScaleSetVMInner.withLocation(String location)Parameters:
withNetworkProfile
public VirtualMachineScaleSetVMInner withNetworkProfile(NetworkProfile networkProfile)
Set the networkProfile property: Specifies the network interfaces of the virtual machine.
Parameters:
Returns:
withNetworkProfileConfiguration
public VirtualMachineScaleSetVMInner withNetworkProfileConfiguration(VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration)
Set the networkProfileConfiguration property: Specifies the network profile configuration of the virtual machine.
Parameters:
Returns:
withOsProfile
public VirtualMachineScaleSetVMInner withOsProfile(OSProfile osProfile)
Set the osProfile property: Specifies the operating system settings for the virtual machine.
Parameters:
Returns:
withPlan
public VirtualMachineScaleSetVMInner 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:
Returns:
withProtectionPolicy
public VirtualMachineScaleSetVMInner withProtectionPolicy(VirtualMachineScaleSetVMProtectionPolicy protectionPolicy)
Set the protectionPolicy property: Specifies the protection policy of the virtual machine.
Parameters:
Returns:
withSecurityProfile
public VirtualMachineScaleSetVMInner withSecurityProfile(SecurityProfile securityProfile)
Set the securityProfile property: Specifies the Security related profile settings for the virtual machine.
Parameters:
Returns:
withStorageProfile
public VirtualMachineScaleSetVMInner withStorageProfile(StorageProfile storageProfile)
Set the storageProfile property: Specifies the storage settings for the virtual machine disks.
Parameters:
Returns:
withTags
public VirtualMachineScaleSetVMInner withTags(Map
Overrides:
VirtualMachineScaleSetVMInner.withTags(Map<String,String> tags)Parameters:
withUserData
public VirtualMachineScaleSetVMInner withUserData(String userData)
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:
Returns:
zones
public List
Get the zones property: The virtual machine zones.
Returns:
Applies to
Azure SDK for Java