Microsoft.Devices IotHubs/certificates 2020-04-01

Template format

To create a Microsoft.Devices/IotHubs/certificates resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Devices/IotHubs/certificates",
  "apiVersion": "2020-04-01",
  "certificate": "string"
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Devices/IotHubs/certificates object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The name of the certificate
type enum Yes For JSON -certificates
-or-
Microsoft.Devices/IotHubs/certificates

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2020-04-01
certificate string No base-64 representation of the X509 leaf certificate .cer file or just .pem file content.