次の方法で共有


VirtualMachineScaleSet.DefinitionStages.WithLinuxRootPasswordOrPublicKeyManaged Interface

public interface WithLinuxRootPasswordOrPublicKeyManaged

The stage of the Linux virtual machine scale set definition allowing to specify SSH root password or public key.

Method Summary

Modifier and Type Method and Description
VirtualMachineScaleSet.DefinitionStages.WithLinuxCreateManaged withRootPassword(String rootPassword)

Specifies the SSH root password for the Linux virtual machine.

VirtualMachineScaleSet.DefinitionStages.WithLinuxCreateManaged withSsh(String publicKey)

Specifies the SSH public key.

Each call to this method adds the given public key to the list of VM's public keys.

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 the SSH public key.

Each call to this method adds the given public key to the list of VM's public keys.

Parameters:

publicKey - the SSH public key in PEM format.

Returns:

the next stage of the definition

Applies to