SshPublicKeyResource Constructors

Definition

Overloads

SshPublicKeyResource()

Initializes a new instance of the SshPublicKeyResource class.

SshPublicKeyResource(String, String, String, String, IDictionary<String,String>, String)

Initializes a new instance of the SshPublicKeyResource class.

SshPublicKeyResource()

Initializes a new instance of the SshPublicKeyResource class.

public SshPublicKeyResource ();
Public Sub New ()

Applies to

SshPublicKeyResource(String, String, String, String, IDictionary<String,String>, String)

Initializes a new instance of the SshPublicKeyResource class.

public SshPublicKeyResource (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string publicKey = default);
new Microsoft.Azure.Management.Compute.Models.SshPublicKeyResource : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string -> Microsoft.Azure.Management.Compute.Models.SshPublicKeyResource
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional publicKey As String = Nothing)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

publicKey
String

SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.

Applies to