VirtualMachineScaleSet.DefinitionStages.WithLinuxRootPasswordOrPublicKeyManagedOrUnmanaged 接口


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

public interface WithLinuxRootPasswordOrPublicKeyManagedOrUnmanaged


withRootPassword(String rootPassword)

Specifies the SSH root password for the Linux virtual machine.

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.