CertificatesOperationsExtensions.CreateOrUpdateAsync(ICertificatesOperations, String, String, Certificate, CancellationToken) Method

Definition

Create or update a certificate.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.WebSites.Models.Certificate> CreateOrUpdateAsync (this Microsoft.Azure.Management.WebSites.ICertificatesOperations operations, string resourceGroupName, string name, Microsoft.Azure.Management.WebSites.Models.Certificate certificateEnvelope, System.Threading.CancellationToken cancellationToken = null);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.WebSites.ICertificatesOperations * string * string * Microsoft.Azure.Management.WebSites.Models.Certificate * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.WebSites.Models.Certificate>

Parameters

operations
ICertificatesOperations

The operations group for this extension method.

resourceGroupName
System.String

Name of the resource group to which the resource belongs.

name
System.String

Name of the certificate.

certificateEnvelope
Certificate

Details of certificate, if it exists already.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<Certificate>

Remarks

Create or update a certificate.

Applies to