Share via


HciVmOSProfileSshPublicKey Class

Definition

Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.

public class HciVmOSProfileSshPublicKey : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Hci.Vm.Models.HciVmOSProfileSshPublicKey>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Hci.Vm.Models.HciVmOSProfileSshPublicKey>
type HciVmOSProfileSshPublicKey = class
    interface IJsonModel<HciVmOSProfileSshPublicKey>
    interface IPersistableModel<HciVmOSProfileSshPublicKey>
Public Class HciVmOSProfileSshPublicKey
Implements IJsonModel(Of HciVmOSProfileSshPublicKey), IPersistableModel(Of HciVmOSProfileSshPublicKey)
Inheritance
HciVmOSProfileSshPublicKey
Implements

Constructors

HciVmOSProfileSshPublicKey()

Initializes a new instance of HciVmOSProfileSshPublicKey.

Properties

KeyData

SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).

Path

Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<HciVmOSProfileSshPublicKey>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<HciVmOSProfileSshPublicKey>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<HciVmOSProfileSshPublicKey>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<HciVmOSProfileSshPublicKey>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<HciVmOSProfileSshPublicKey>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to