Поделиться через


BatchCertificateReference Class

Definition

A reference to a Certificate to be installed on Compute Nodes in a Pool. Warning: This object is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.

public class BatchCertificateReference : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.BatchCertificateReference>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.BatchCertificateReference>
type BatchCertificateReference = class
    interface IJsonModel<BatchCertificateReference>
    interface IPersistableModel<BatchCertificateReference>
Public Class BatchCertificateReference
Implements IJsonModel(Of BatchCertificateReference), IPersistableModel(Of BatchCertificateReference)
Inheritance
BatchCertificateReference
Implements

Constructors

BatchCertificateReference(String, String)

Initializes a new instance of BatchCertificateReference.

Properties

StoreLocation

The location of the Certificate store on the Compute Node into which to install the Certificate. The default value is currentuser. This property is applicable only for Pools configured with Windows Compute Nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows Image reference). For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory.

StoreName

The name of the Certificate store on the Compute Node into which to install the Certificate. This property is applicable only for Pools configured with Windows Compute Nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows Image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.

Thumbprint

The thumbprint of the Certificate.

ThumbprintAlgorithm

The algorithm with which the thumbprint is associated. This must be sha1.

Visibility

Which user Accounts on the Compute Node should have access to the private data of the Certificate. You can specify more than one visibility in this collection. The default is all Accounts.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<BatchCertificateReference>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BatchCertificateReference>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchCertificateReference>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchCertificateReference>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchCertificateReference>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to