CertificatesOperationsExtensions.CreateOrUpdate 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 IoT hub.
public static Microsoft.Azure.Management.IotHub.Models.CertificateDescription CreateOrUpdate (this Microsoft.Azure.Management.IotHub.ICertificatesOperations operations, string resourceGroupName, string resourceName, string certificateName, string ifMatch = default, Microsoft.Azure.Management.IotHub.Models.CertificateProperties properties = default);
static member CreateOrUpdate : Microsoft.Azure.Management.IotHub.ICertificatesOperations * string * string * string * string * Microsoft.Azure.Management.IotHub.Models.CertificateProperties -> Microsoft.Azure.Management.IotHub.Models.CertificateDescription
<Extension()>
Public Function CreateOrUpdate (operations As ICertificatesOperations, resourceGroupName As String, resourceName As String, certificateName As String, Optional ifMatch As String = Nothing, Optional properties As CertificateProperties = Nothing) As CertificateDescription
Parameters
- operations
- ICertificatesOperations
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group that contains the IoT hub.
- resourceName
- String
The name of the IoT hub.
- certificateName
- String
The name of the certificate
- ifMatch
- String
ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update an existing certificate.
- properties
- CertificateProperties
Returns
Remarks
Adds new or replaces existing certificate.