DpsCertificateOperationsExtensions.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Upload the certificate to the provisioning service.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse> CreateOrUpdateAsync (this Microsoft.Azure.Management.DeviceProvisioningServices.IDpsCertificateOperations operations, string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch = default, Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateProperties properties = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DeviceProvisioningServices.IDpsCertificateOperations * string * string * string * string * Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDpsCertificateOperations, resourceGroupName As String, provisioningServiceName As String, certificateName As String, Optional ifMatch As String = Nothing, Optional properties As CertificateProperties = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
Add new certificate or update an existing certificate.