Azure IoT Hub DPS Certificate

This page shows how to write Terraform and Azure Resource Manager for IoT Hub DPS Certificate and write them securely.

azurerm_iothub_dps_certificate (Terraform)

The DPS Certificate in IoT Hub can be configured in Terraform with the resource name azurerm_iothub_dps_certificate. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "azurerm_iothub_dps_certificate" "this" {
  certificate_content = var.certificate_content
  iot_dps_name        = var.iot_dps_name
  name                = var.name
  resource_group_name = var.resource_group_name

main.tf#L7
resource "azurerm_iothub_dps_certificate" "this" {
  certificate_content = var.certificate_content
  iot_dps_name        = var.iot_dps_name
  name                = var.name
  resource_group_name = var.resource_group_name

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages an IotHub Device Provisioning Service Certificate.

Microsoft.Devices/provisioningServices/certificates (Azure Resource Manager)

The provisioningServices/certificates in Microsoft.Devices can be configured in Azure Resource Manager with the resource name Microsoft.Devices/provisioningServices/certificates. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Frequently asked questions

What is Azure IoT Hub DPS Certificate?

Azure IoT Hub DPS Certificate is a resource for IoT Hub of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure IoT Hub DPS Certificate?

For Terraform, the kevinhead/azurerm and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.