Interface VirtualMachine.DefinitionStages.WithLinuxRootPasswordOrPublicKeyManaged
-
- All Known Subinterfaces:
VirtualMachine.DefinitionManaged
- Enclosing interface:
- VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithLinuxRootPasswordOrPublicKeyManagedThe stage of a Linux virtual machine definition allowing to specify an SSH root password or public key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachine.DefinitionStages.WithLinuxCreateManagedwithRootPassword(String rootPassword)Specifies the SSH root password for the Linux virtual machine.VirtualMachine.DefinitionStages.WithLinuxCreateManagedwithSsh(String publicKey)Specifies an SSH public key.
-
-
-
Method Detail
-
withRootPassword
VirtualMachine.DefinitionStages.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
VirtualMachine.DefinitionStages.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
-
-