Class LinuxConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.LinuxConfiguration
-
public final class LinuxConfiguration extends Object
Specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
-
-
Constructor Summary
Constructors Constructor Description LinuxConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleandisablePasswordAuthentication()Get the disablePasswordAuthentication property: Specifies whether password authentication should be disabled.LinuxPatchSettingspatchSettings()Get the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Linux.BooleanprovisionVMAgent()Get the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine.SshConfigurationssh()Get the ssh property: Specifies the ssh key configuration for a Linux OS.voidvalidate()Validates the instance.LinuxConfigurationwithDisablePasswordAuthentication(Boolean disablePasswordAuthentication)Set the disablePasswordAuthentication property: Specifies whether password authentication should be disabled.LinuxConfigurationwithPatchSettings(LinuxPatchSettings patchSettings)Set the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Linux.LinuxConfigurationwithProvisionVMAgent(Boolean provisionVMAgent)Set the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine.LinuxConfigurationwithSsh(SshConfiguration ssh)Set the ssh property: Specifies the ssh key configuration for a Linux OS.
-
-
-
Method Detail
-
disablePasswordAuthentication
public Boolean disablePasswordAuthentication()
Get the disablePasswordAuthentication property: Specifies whether password authentication should be disabled.- Returns:
- the disablePasswordAuthentication value.
-
withDisablePasswordAuthentication
public LinuxConfiguration withDisablePasswordAuthentication(Boolean disablePasswordAuthentication)
Set the disablePasswordAuthentication property: Specifies whether password authentication should be disabled.- Parameters:
disablePasswordAuthentication- the disablePasswordAuthentication value to set.- Returns:
- the LinuxConfiguration object itself.
-
ssh
public SshConfiguration ssh()
Get the ssh property: Specifies the ssh key configuration for a Linux OS.- Returns:
- the ssh value.
-
withSsh
public LinuxConfiguration withSsh(SshConfiguration ssh)
Set the ssh property: Specifies the ssh key configuration for a Linux OS.- Parameters:
ssh- the ssh value to set.- Returns:
- the LinuxConfiguration object itself.
-
provisionVMAgent
public Boolean provisionVMAgent()
Get the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.- Returns:
- the provisionVMAgent value.
-
withProvisionVMAgent
public LinuxConfiguration withProvisionVMAgent(Boolean provisionVMAgent)
Set the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.- Parameters:
provisionVMAgent- the provisionVMAgent value to set.- Returns:
- the LinuxConfiguration object itself.
-
patchSettings
public LinuxPatchSettings patchSettings()
Get the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Linux.- Returns:
- the patchSettings value.
-
withPatchSettings
public LinuxConfiguration withPatchSettings(LinuxPatchSettings patchSettings)
Set the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Linux.- Parameters:
patchSettings- the patchSettings value to set.- Returns:
- the LinuxConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-