次の方法で共有


VirtualMachine.DefinitionStages.WithLinuxRootPasswordOrPublicKeyManaged Interface

public interface WithLinuxRootPasswordOrPublicKeyManaged

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.WithLinuxCreateManaged withRootPassword(String rootPassword)

Specifies the SSH root password for the Linux virtual machine.

VirtualMachine.DefinitionStages.WithLinuxCreateManaged withSsh(String publicKey)

Specifies an SSH public key.

Method Details

withRootPassword

public WithLinuxCreateManaged withRootPassword(String rootPassword)

Specifies the 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 WithLinuxCreateManaged 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