Sdílet prostřednictvím


SshPublicKeyResource Class

Definition

Specifies information about the SSH public key.

[Microsoft.Rest.Serialization.JsonTransformation]
public class SshPublicKeyResource : Microsoft.Azure.Management.Compute.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type SshPublicKeyResource = class
    inherit Resource
Public Class SshPublicKeyResource
Inherits Resource
Inheritance
SshPublicKeyResource
Attributes

Constructors

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.

Properties

Id

Gets resource Id

(Inherited from Resource)
Location

Gets or sets resource location

(Inherited from Resource)
Name

Gets resource name

(Inherited from Resource)
PublicKey

Gets or sets 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.

Tags

Gets or sets resource tags

(Inherited from Resource)
Type

Gets resource type

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to