Azure Security Center Device Group

This page shows how to write Terraform and Azure Resource Manager for Security Center Device Group and write them securely.

azurerm_iot_security_device_group (Terraform)

The Device Group in Security Center can be configured in Terraform with the resource name azurerm_iot_security_device_group. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

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 a Iot Security Device Group.

Tips: Best Practices for The Other Azure Security Center Resources

In addition to the azurerm_security_center_contact, Azure Security Center has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.

risk-label

azurerm_security_center_contact

Ensure to enable alert notifications

It is better to configure at least one valid contact for the security center. Microsoft will inform you directly in the event of a security incident using emails.

risk-label

azurerm_security_center_subscription_pricing

Ensure to enable alert notifications

It is better to enable Azure Defender, which is a cloud workload protection service for App Services. In addition, It is also able to analyze non-Azure resources, utilizing Azure Arc, including those on-premises and in both AWS and GCP.

Review your Azure Security Center settings

In addition to the above, there are other security points you should be aware of making sure that your .tf files are protected in Shisho Cloud.

Microsoft.Devices/iotHubs (Azure Resource Manager)

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

Example Usage from GitHub

handson-arm-template.json#L30
            "type": "Microsoft.Devices/IotHubs",
            "apiVersion": "2020-03-01",
            "name": "[variables('CameraIotHubName')]",
            "location": "[parameters('Region')]",
            "sku": {
                "name": "S1",
IoTHub.json#L12
      "type": "Microsoft.Devices/IotHubs",
      "name": "[parameters('hubName')]",
      "location": "North Europe",
      "sku": {
        "name": "S1",
        "tier": "Standard",
handson-arm-template.json#L30
            "type": "Microsoft.Devices/IotHubs",
            "apiVersion": "2020-03-01",
            "name": "[variables('CameraIotHubName')]",
            "location": "[parameters('Region')]",
            "sku": {
                "name": "S1",
brt-arm-template.json#L120
      "type": "Microsoft.Devices/IotHubs",
      "name": "[parameters('iotHubName')]",
      "location": "[parameters('azureLocation')]",
      "sku": {
        "name": "S1",
        "tier": "Standard",
azuredeploy.json#L40
      "type": "Microsoft.Devices/IotHubs",
      "apiVersion": "2018-04-01",
      "name": "[parameters('iotHubName')]",
      "location": "[parameters('location')]",
      "properties": {
        "eventHubEndpoints": {
iot_hub.json#L43
      "type": "Microsoft.Devices/IotHubs",
      "name": "[parameters('resourceName')]",
      "location": "[resourceGroup().location]",
      "properties": {
        "eventHubEndpoints": {
          "events": {
azuredeploy.json#L41
      "type": "Microsoft.Devices/IotHubs",
      "apiVersion": "2018-04-01",
      "name": "[parameters('iotHubName')]",
      "location": "[parameters('location')]",
      "properties": {
        "eventHubEndpoints": {
template-iothub.json#L12
      "type": "Microsoft.Devices/IotHubs",
      "name": "[variables('hubName')]",
      "location": "[variables('location')]",
      "sku": {
        "name": "S1",
        "tier": "Standard",
azuredeploy.json#L40
      "type": "Microsoft.Devices/IotHubs",
      "apiVersion": "2018-04-01",
      "name": "[parameters('iotHubName')]",
      "location": "[parameters('location')]",
      "properties": {
        "eventHubEndpoints": {
azuredeploy.json#L41
      "type": "Microsoft.Devices/IotHubs",
      "apiVersion": "2018-04-01",
      "name": "[parameters('iotHubName')]",
      "location": "[parameters('location')]",
      "properties": {
        "eventHubEndpoints": {

Frequently asked questions

What is Azure Security Center Device Group?

Azure Security Center Device Group is a resource for Security Center of Microsoft Azure. Settings can be wrote in Terraform.