Dela via


VaultCertificatesOperationsExtensions.CreateAsync Method

Definition

Uploads a certificate for a resource.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Models.VaultCertificateResponse> CreateAsync (this Microsoft.Azure.Management.RecoveryServices.IVaultCertificatesOperations operations, string resourceGroupName, string vaultName, string certificateName, Microsoft.Azure.Management.RecoveryServices.Models.RawCertificateData properties = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.RecoveryServices.IVaultCertificatesOperations * string * string * string * Microsoft.Azure.Management.RecoveryServices.Models.RawCertificateData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Models.VaultCertificateResponse>
<Extension()>
Public Function CreateAsync (operations As IVaultCertificatesOperations, resourceGroupName As String, vaultName As String, certificateName As String, Optional properties As RawCertificateData = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VaultCertificateResponse)

Parameters

operations
IVaultCertificatesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group where the recovery services vault is present.

vaultName
String

The name of the recovery services vault.

certificateName
String

Certificate friendly name.

properties
RawCertificateData
cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to