Microsoft.DataBoxEdge dataBoxEdgeDevices/roles/monitoringConfig 2022-12-01-preview

Bicep resource definition

The dataBoxEdgeDevices/roles/monitoringConfig resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig@2022-12-01-preview' = {
  parent: resourceSymbolicName
  name: 'default'
  properties: {
    metricConfigurations: [
      {
        counterSets: [
          {
            counters: [
              {
                additionalDimensions: [
                  {
                    sourceName: 'string'
                    sourceType: 'string'
                  }
                ]
                dimensionFilter: [
                  {
                    sourceName: 'string'
                    sourceType: 'string'
                  }
                ]
                instance: 'string'
                name: 'string'
              }
            ]
          }
        ]
        mdmAccount: 'string'
        metricNameSpace: 'string'
        resourceId: 'string'
      }
    ]
  }
}

Property Values

Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig

Name Description Value
name The resource name 'default' (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: dataBoxEdgeDevices/roles
properties The metric setting properties. MonitoringMetricConfigurationProperties (required)

MetricConfiguration

Name Description Value
counterSets Host name for the IoT hub associated to the device. MetricCounterSet[] (required)
mdmAccount The MDM account to which the counters should be pushed. string
metricNameSpace The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified string
resourceId The Resource ID on which the metrics should be pushed. string (required)

MetricCounter

Name Description Value
additionalDimensions The additional dimensions to be added to metric. MetricDimension[]
dimensionFilter The dimension filter. MetricDimension[]
instance The instance from which counter should be collected. string
name The counter name. string (required)

MetricCounterSet

Name Description Value
counters The counters that should be collected in this set. MetricCounter[] (required)

MetricDimension

Name Description Value
sourceName The dimension value. string (required)
sourceType The dimension type. string (required)

MonitoringMetricConfigurationProperties

Name Description Value
metricConfigurations The metrics configuration details MetricConfiguration[] (required)

ARM template resource definition

The dataBoxEdgeDevices/roles/monitoringConfig resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig resource, add the following JSON to your template.

{
  "type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig",
  "apiVersion": "2022-12-01-preview",
  "name": "string",
  "properties": {
    "metricConfigurations": [
      {
        "counterSets": [
          {
            "counters": [
              {
                "additionalDimensions": [
                  {
                    "sourceName": "string",
                    "sourceType": "string"
                  }
                ],
                "dimensionFilter": [
                  {
                    "sourceName": "string",
                    "sourceType": "string"
                  }
                ],
                "instance": "string",
                "name": "string"
              }
            ]
          }
        ],
        "mdmAccount": "string",
        "metricNameSpace": "string",
        "resourceId": "string"
      }
    ]
  }
}

Property Values

Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig

Name Description Value
apiVersion The api version '2022-12-01-preview'
name The resource name 'default' (required)
properties The metric setting properties. MonitoringMetricConfigurationProperties (required)
type The resource type 'Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig'

MetricConfiguration

Name Description Value
counterSets Host name for the IoT hub associated to the device. MetricCounterSet[] (required)
mdmAccount The MDM account to which the counters should be pushed. string
metricNameSpace The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified string
resourceId The Resource ID on which the metrics should be pushed. string (required)

MetricCounter

Name Description Value
additionalDimensions The additional dimensions to be added to metric. MetricDimension[]
dimensionFilter The dimension filter. MetricDimension[]
instance The instance from which counter should be collected. string
name The counter name. string (required)

MetricCounterSet

Name Description Value
counters The counters that should be collected in this set. MetricCounter[] (required)

MetricDimension

Name Description Value
sourceName The dimension value. string (required)
sourceType The dimension type. string (required)

MonitoringMetricConfigurationProperties

Name Description Value
metricConfigurations The metrics configuration details MetricConfiguration[] (required)

Terraform (AzAPI provider) resource definition

The dataBoxEdgeDevices/roles/monitoringConfig resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig@2022-12-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      metricConfigurations = [
        {
          counterSets = [
            {
              counters = [
                {
                  additionalDimensions = [
                    {
                      sourceName = "string"
                      sourceType = "string"
                    }
                  ]
                  dimensionFilter = [
                    {
                      sourceName = "string"
                      sourceType = "string"
                    }
                  ]
                  instance = "string"
                  name = "string"
                }
              ]
            }
          ]
          mdmAccount = "string"
          metricNameSpace = "string"
          resourceId = "string"
        }
      ]
    }
  }
}

Property Values

Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig

Name Description Value
name The resource name 'default' (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: dataBoxEdgeDevices/roles
properties The metric setting properties. MonitoringMetricConfigurationProperties (required)
type The resource type "Microsoft.DataBoxEdge/dataBoxEdgeDevices/roles/monitoringConfig@2022-12-01-preview"

MetricConfiguration

Name Description Value
counterSets Host name for the IoT hub associated to the device. MetricCounterSet[] (required)
mdmAccount The MDM account to which the counters should be pushed. string
metricNameSpace The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified string
resourceId The Resource ID on which the metrics should be pushed. string (required)

MetricCounter

Name Description Value
additionalDimensions The additional dimensions to be added to metric. MetricDimension[]
dimensionFilter The dimension filter. MetricDimension[]
instance The instance from which counter should be collected. string
name The counter name. string (required)

MetricCounterSet

Name Description Value
counters The counters that should be collected in this set. MetricCounter[] (required)

MetricDimension

Name Description Value
sourceName The dimension value. string (required)
sourceType The dimension type. string (required)

MonitoringMetricConfigurationProperties

Name Description Value
metricConfigurations The metrics configuration details MetricConfiguration[] (required)