Class LinuxConfiguration
java.lang.Object
com.azure.resourcemanager.workloads.models.OSConfiguration
com.azure.resourcemanager.workloads.models.LinuxConfiguration
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the disablePasswordAuthentication property: Specifies whether password authentication should be disabled.ssh()
Get the ssh property: Specifies the ssh key configuration for a Linux OS.Get the sshKeyPair property: The SSH Key-pair used to authenticate with the VM's.void
validate()
Validates the instance.withDisablePasswordAuthentication
(Boolean disablePasswordAuthentication) Set the disablePasswordAuthentication property: Specifies whether password authentication should be disabled.withSsh
(SshConfiguration ssh) Set the ssh property: Specifies the ssh key configuration for a Linux OS.withSshKeyPair
(SshKeyPair sshKeyPair) Set the sshKeyPair property: The SSH Key-pair used to authenticate with the VM's.
-
Constructor Details
-
LinuxConfiguration
public LinuxConfiguration()
-
-
Method Details
-
disablePasswordAuthentication
Get the disablePasswordAuthentication property: Specifies whether password authentication should be disabled.- Returns:
- the disablePasswordAuthentication value.
-
withDisablePasswordAuthentication
Set the disablePasswordAuthentication property: Specifies whether password authentication should be disabled.- Parameters:
disablePasswordAuthentication
- the disablePasswordAuthentication value to set.- Returns:
- the LinuxConfiguration object itself.
-
ssh
Get the ssh property: Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead).- Returns:
- the ssh value.
-
withSsh
Set the ssh property: Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead).- Parameters:
ssh
- the ssh value to set.- Returns:
- the LinuxConfiguration object itself.
-
sshKeyPair
Get the sshKeyPair property: The SSH Key-pair used to authenticate with the VM's.- Returns:
- the sshKeyPair value.
-
withSshKeyPair
Set the sshKeyPair property: The SSH Key-pair used to authenticate with the VM's.- Parameters:
sshKeyPair
- the sshKeyPair value to set.- Returns:
- the LinuxConfiguration object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classOSConfiguration
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-