Class LinuxConfiguration
java.lang.Object
com.microsoft.azure.management.compute.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/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
<br><br> For running non-endorsed distributions, see
[Information for Non-Endorsed
Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet specifies whether password authentication should be disabled.Get [Preview Feature] Specifies settings related to VM Guest Patching on Linux.Get indicates whether virtual machine agent should be provisioned on the virtual machine.ssh()
Get specifies the ssh key configuration for a Linux OS.withDisablePasswordAuthentication
(Boolean disablePasswordAuthentication) Set specifies whether password authentication should be disabled.withPatchSettings
(LinuxPatchSettings patchSettings) Set [Preview Feature] Specifies settings related to VM Guest Patching on Linux.withProvisionVMAgent
(Boolean provisionVMAgent) Set indicates whether virtual machine agent should be provisioned on the virtual machine.withSsh
(SshConfiguration ssh) Set specifies the ssh key configuration for a Linux OS.
-
Constructor Details
-
LinuxConfiguration
public LinuxConfiguration()
-
-
Method Details
-
disablePasswordAuthentication
Get specifies whether password authentication should be disabled.- Returns:
- the disablePasswordAuthentication value
-
withDisablePasswordAuthentication
Set specifies whether password authentication should be disabled.- Parameters:
disablePasswordAuthentication
- the disablePasswordAuthentication value to set- Returns:
- the LinuxConfiguration object itself.
-
ssh
Get specifies the ssh key configuration for a Linux OS.- Returns:
- the ssh value
-
withSsh
Set specifies the ssh key configuration for a Linux OS.- Parameters:
ssh
- the ssh value to set- Returns:
- the LinuxConfiguration object itself.
-
provisionVMAgent
Get 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
Set 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
Get [Preview Feature] Specifies settings related to VM Guest Patching on Linux.- Returns:
- the patchSettings value
-
withPatchSettings
Set [Preview Feature] Specifies settings related to VM Guest Patching on Linux.- Parameters:
patchSettings
- the patchSettings value to set- Returns:
- the LinuxConfiguration object itself.
-