Class LinuxConfiguration

java.lang.Object
com.azure.resourcemanager.workloads.models.OSConfiguration
com.azure.resourcemanager.workloads.models.LinuxConfiguration

public final class LinuxConfiguration extends OSConfiguration
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 Details

    • LinuxConfiguration

      public LinuxConfiguration()
  • Method Details

    • 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. (This property is deprecated, please use 'sshKeyPair' instead).
      Returns:
      the ssh value.
    • withSsh

      public LinuxConfiguration withSsh(SshConfiguration ssh)
      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

      public SshKeyPair sshKeyPair()
      Get the sshKeyPair property: The SSH Key-pair used to authenticate with the VM's.
      Returns:
      the sshKeyPair value.
    • withSshKeyPair

      public LinuxConfiguration withSshKeyPair(SshKeyPair sshKeyPair)
      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 class OSConfiguration
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.