Partager via


ComputeFleetVaultCertificate Class

Definition

Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.

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

Constructors

ComputeFleetVaultCertificate()

Initializes a new instance of ComputeFleetVaultCertificate.

Properties

CertificateStore

For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted.

CertificateUri

This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see Add a key or secret to the key vault. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>} <br> To install certificates on a virtual machine it is recommended to use the Azure Key Vault virtual machine extension for Linux or the Azure Key Vault virtual machine extension for Windows.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ComputeFleetVaultCertificate>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ComputeFleetVaultCertificate>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ComputeFleetVaultCertificate>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ComputeFleetVaultCertificate>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ComputeFleetVaultCertificate>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to