VirtualMachineScaleSetVMProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineScaleSetVMProfile
- com.
Implements
public final class VirtualMachineScaleSetVMProfile
implements JsonSerializable<VirtualMachineScaleSetVMProfile>
Describes a virtual machine scale set virtual machine profile.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineScaleSetVMProfile() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Application |
applicationProfile()
Get the application |
Billing |
billingProfile()
Get the billing |
Capacity |
capacityReservation()
Get the capacity |
Diagnostics |
diagnosticsProfile()
Get the diagnostics |
Virtual |
evictionPolicy()
Get the eviction |
Virtual |
extensionProfile()
Get the extension |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Virtual |
hardwareProfile()
Get the hardware |
String |
licenseType()
Get the license |
Virtual |
networkProfile()
Get the network |
Virtual |
osProfile()
Get the os |
Virtual |
priority()
Get the priority property: Specifies the priority for the virtual machines in the scale set. |
Scheduled |
scheduledEventsProfile()
Get the scheduled |
Security |
securityPostureReference()
Get the security |
Security |
securityProfile()
Get the security |
Service |
serviceArtifactReference()
Get the service |
Virtual |
storageProfile()
Get the storage |
Offset |
timeCreated()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
String |
userData()
Get the user |
void |
validate()
Validates the instance. |
Virtual |
withApplicationProfile(ApplicationProfile applicationProfile)
Set the application |
Virtual |
withBillingProfile(BillingProfile billingProfile)
Set the billing |
Virtual |
withCapacityReservation(CapacityReservationProfile capacityReservation)
Set the capacity |
Virtual |
withDiagnosticsProfile(DiagnosticsProfile diagnosticsProfile)
Set the diagnostics |
Virtual |
withEvictionPolicy(VirtualMachineEvictionPolicyTypes evictionPolicy)
Set the eviction |
Virtual |
withExtensionProfile(VirtualMachineScaleSetExtensionProfile extensionProfile)
Set the extension |
Virtual |
withHardwareProfile(VirtualMachineScaleSetHardwareProfile hardwareProfile)
Set the hardware |
Virtual |
withLicenseType(String licenseType)
Set the license |
Virtual |
withNetworkProfile(VirtualMachineScaleSetNetworkProfile networkProfile)
Set the network |
Virtual |
withOsProfile(VirtualMachineScaleSetOSProfile osProfile)
Set the os |
Virtual |
withPriority(VirtualMachinePriorityTypes priority)
Set the priority property: Specifies the priority for the virtual machines in the scale set. |
Virtual |
withScheduledEventsProfile(ScheduledEventsProfile scheduledEventsProfile)
Set the scheduled |
Virtual |
withSecurityPostureReference(SecurityPostureReference securityPostureReference)
Set the security |
Virtual |
withSecurityProfile(SecurityProfile securityProfile)
Set the security |
Virtual |
withServiceArtifactReference(ServiceArtifactReference serviceArtifactReference)
Set the service |
Virtual |
withStorageProfile(VirtualMachineScaleSetStorageProfile storageProfile)
Set the storage |
Virtual |
withUserData(String userData)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineScaleSetVMProfile
public VirtualMachineScaleSetVMProfile()
Creates an instance of VirtualMachineScaleSetVMProfile class.
Method Details
applicationProfile
public ApplicationProfile applicationProfile()
Get the applicationProfile property: Specifies the gallery applications that should be made available to the VM/VMSS.
Returns:
billingProfile
public BillingProfile billingProfile()
Get the billingProfile property: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01.
Returns:
capacityReservation
public CapacityReservationProfile capacityReservation()
Get the capacityReservation property: Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01.
Returns:
diagnosticsProfile
public DiagnosticsProfile diagnosticsProfile()
Get the diagnosticsProfile property: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.
Returns:
evictionPolicy
public VirtualMachineEvictionPolicyTypes 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:
extensionProfile
public VirtualMachineScaleSetExtensionProfile extensionProfile()
Get the extensionProfile property: Specifies a collection of settings for extensions installed on virtual machines in the scale set.
Returns:
fromJson
public static VirtualMachineScaleSetVMProfile fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineScaleSetVMProfile from the JsonReader.
Parameters:
Returns:
Throws:
hardwareProfile
public VirtualMachineScaleSetHardwareProfile hardwareProfile()
Get the hardwareProfile property: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01.
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:
networkProfile
public VirtualMachineScaleSetNetworkProfile networkProfile()
Get the networkProfile property: Specifies properties of the network interfaces of the virtual machines in the scale set.
Returns:
osProfile
public VirtualMachineScaleSetOSProfile osProfile()
Get the osProfile property: Specifies the operating system settings for the virtual machines in the scale set.
Returns:
priority
public VirtualMachinePriorityTypes priority()
Get the priority property: Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview.
Returns:
scheduledEventsProfile
public ScheduledEventsProfile scheduledEventsProfile()
Get the scheduledEventsProfile property: Specifies Scheduled Event related configurations.
Returns:
securityPostureReference
public SecurityPostureReference securityPostureReference()
Get the securityPostureReference property: Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01.
Returns:
securityProfile
public SecurityProfile securityProfile()
Get the securityProfile property: Specifies the Security related profile settings for the virtual machines in the scale set.
Returns:
serviceArtifactReference
public ServiceArtifactReference serviceArtifactReference()
Get the serviceArtifactReference property: Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01.
Returns:
storageProfile
public VirtualMachineScaleSetStorageProfile 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 in which this VM profile for the Virtual Machine Scale Set was created. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile. Minimum API version for this property is 2023-09-01.
Returns:
toJson
userData
public String userData()
Get the userData property: UserData for the virtual machines in the scale set, 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.
withApplicationProfile
public VirtualMachineScaleSetVMProfile withApplicationProfile(ApplicationProfile applicationProfile)
Set the applicationProfile property: Specifies the gallery applications that should be made available to the VM/VMSS.
Parameters:
Returns:
withBillingProfile
public VirtualMachineScaleSetVMProfile withBillingProfile(BillingProfile billingProfile)
Set the billingProfile property: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01.
Parameters:
Returns:
withCapacityReservation
public VirtualMachineScaleSetVMProfile withCapacityReservation(CapacityReservationProfile capacityReservation)
Set the capacityReservation property: Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01.
Parameters:
Returns:
withDiagnosticsProfile
public VirtualMachineScaleSetVMProfile withDiagnosticsProfile(DiagnosticsProfile diagnosticsProfile)
Set the diagnosticsProfile property: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.
Parameters:
Returns:
withEvictionPolicy
public VirtualMachineScaleSetVMProfile withEvictionPolicy(VirtualMachineEvictionPolicyTypes evictionPolicy)
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:
Returns:
withExtensionProfile
public VirtualMachineScaleSetVMProfile withExtensionProfile(VirtualMachineScaleSetExtensionProfile extensionProfile)
Set the extensionProfile property: Specifies a collection of settings for extensions installed on virtual machines in the scale set.
Parameters:
Returns:
withHardwareProfile
public VirtualMachineScaleSetVMProfile withHardwareProfile(VirtualMachineScaleSetHardwareProfile hardwareProfile)
Set the hardwareProfile property: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01.
Parameters:
Returns:
withLicenseType
public VirtualMachineScaleSetVMProfile 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:
withNetworkProfile
public VirtualMachineScaleSetVMProfile withNetworkProfile(VirtualMachineScaleSetNetworkProfile networkProfile)
Set the networkProfile property: Specifies properties of the network interfaces of the virtual machines in the scale set.
Parameters:
Returns:
withOsProfile
public VirtualMachineScaleSetVMProfile withOsProfile(VirtualMachineScaleSetOSProfile osProfile)
Set the osProfile property: Specifies the operating system settings for the virtual machines in the scale set.
Parameters:
Returns:
withPriority
public VirtualMachineScaleSetVMProfile withPriority(VirtualMachinePriorityTypes priority)
Set the priority property: Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview.
Parameters:
Returns:
withScheduledEventsProfile
public VirtualMachineScaleSetVMProfile withScheduledEventsProfile(ScheduledEventsProfile scheduledEventsProfile)
Set the scheduledEventsProfile property: Specifies Scheduled Event related configurations.
Parameters:
Returns:
withSecurityPostureReference
public VirtualMachineScaleSetVMProfile withSecurityPostureReference(SecurityPostureReference securityPostureReference)
Set the securityPostureReference property: Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01.
Parameters:
Returns:
withSecurityProfile
public VirtualMachineScaleSetVMProfile withSecurityProfile(SecurityProfile securityProfile)
Set the securityProfile property: Specifies the Security related profile settings for the virtual machines in the scale set.
Parameters:
Returns:
withServiceArtifactReference
public VirtualMachineScaleSetVMProfile withServiceArtifactReference(ServiceArtifactReference serviceArtifactReference)
Set the serviceArtifactReference property: Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01.
Parameters:
Returns:
withStorageProfile
public VirtualMachineScaleSetVMProfile withStorageProfile(VirtualMachineScaleSetStorageProfile storageProfile)
Set the storageProfile property: Specifies the storage settings for the virtual machine disks.
Parameters:
Returns:
withUserData
public VirtualMachineScaleSetVMProfile withUserData(String userData)
Set the userData property: UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01.
Parameters:
Returns:
Applies to
Azure SDK for Java