Compartir vía


VirtualMachineScaleSet.DefinitionStages.WithLinuxRootPasswordOrPublicKeyManagedOrUnmanaged Interface

public interface WithLinuxRootPasswordOrPublicKeyManagedOrUnmanaged

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

Specifies the SSH root password for the Linux virtual machine.

VirtualMachineScaleSet.DefinitionStages.WithLinuxCreateManagedOrUnmanaged 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 WithLinuxCreateManagedOrUnmanaged 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 WithLinuxCreateManagedOrUnmanaged 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