Compartir vía


VirtualMachine.DefinitionStages.WithLinuxRootPasswordOrPublicKeyUnmanaged Interface

public interface WithLinuxRootPasswordOrPublicKeyUnmanaged

The stage of a Linux virtual machine definition allowing to specify an SSH root password or public key.

Method Summary

Modifier and Type Method and Description
VirtualMachine.DefinitionStages.WithLinuxCreateUnmanaged withRootPassword(String rootPassword)

Specifies an SSH root password for the Linux virtual machine.

VirtualMachine.DefinitionStages.WithLinuxCreateUnmanaged withSsh(String publicKey)

Specifies an SSH public key.

Method Details

withRootPassword

public WithLinuxCreateUnmanaged withRootPassword(String rootPassword)

Specifies an SSH root password for the Linux virtual machine.

Parameters:

rootPassword - a password following the complexity criteria for Azure Linux VM passwords.

Returns:

the next stage of the definition

withSsh

public WithLinuxCreateUnmanaged withSsh(String publicKey)

Specifies an SSH public key.

Parameters:

publicKey - an SSH public key in the PEM format.

Returns:

the next stage of the definition

Applies to