共用方式為


DpsCertificateOperationsExtensions.CreateOrUpdate Method

Definition

Upload the certificate to the provisioning service.

public static Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse CreateOrUpdate (this Microsoft.Azure.Management.DeviceProvisioningServices.IDpsCertificateOperations operations, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch = default, Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateProperties properties = default);
static member CreateOrUpdate : Microsoft.Azure.Management.DeviceProvisioningServices.IDpsCertificateOperations * string * string * string * string * Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateProperties -> Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse
<Extension()>
Public Function CreateOrUpdate (operations As IDpsCertificateOperations, resourceGroupName As String, provisioningServiceName As String, certificateName As String, Optional ifMatch As String = Nothing, Optional properties As CertificateProperties = Nothing) As CertificateResponse

Parameters

operations
IDpsCertificateOperations

The operations group for this extension method.

resourceGroupName
String

Resource group identifier.

provisioningServiceName
String

The name of the provisioning service.

certificateName
String

The name of the certificate create or update.

ifMatch
String

ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.

properties
CertificateProperties

properties of a certificate

Returns

Remarks

Add new certificate or update an existing certificate.

Applies to