Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The monitors/monitoredSubscriptions resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Datadog/monitors/monitoredSubscriptions resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Datadog/monitors/monitoredSubscriptions@2023-10-20' = {
parent: resourceSymbolicName
name: 'string'
properties: {
monitoredSubscriptionList: [
{
error: 'string'
status: 'string'
subscriptionId: 'string'
tagRules: {
automuting: bool
customMetrics: bool
logRules: {
filteringTags: [
{
action: 'string'
name: 'string'
value: 'string'
}
]
sendAadLogs: bool
sendResourceLogs: bool
sendSubscriptionLogs: bool
}
metricRules: {
filteringTags: [
{
action: 'string'
name: 'string'
value: 'string'
}
]
}
}
}
]
operation: 'string'
}
}
Property Values
Microsoft.Datadog/monitors/monitoredSubscriptions
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (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: monitors |
| properties | The request to update subscriptions needed to be monitored by the Datadog monitor resource. | SubscriptionList |
FilteringTag
| Name | Description | Value |
|---|---|---|
| action | Valid actions for a filtering tag. Exclusion takes priority over inclusion. | 'Exclude' 'Include' |
| name | The name (also known as the key) of the tag. | string |
| value | The value of the tag. | string |
LogRules
| Name | Description | Value |
|---|---|---|
| filteringTags | List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. | FilteringTag[] |
| sendAadLogs | Flag specifying if AAD logs should be sent for the Monitor resource. | bool |
| sendResourceLogs | Flag specifying if Azure resource logs should be sent for the Monitor resource. | bool |
| sendSubscriptionLogs | Flag specifying if Azure subscription logs should be sent for the Monitor resource. | bool |
MetricRules
| Name | Description | Value |
|---|---|---|
| filteringTags | List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. | FilteringTag[] |
MonitoredSubscription
| Name | Description | Value |
|---|---|---|
| error | The reason of not monitoring the subscription. | string |
| status | The state of monitoring. | 'Active' 'Deleting' 'Failed' 'InProgress' |
| subscriptionId | The subscriptionId to be monitored. | string |
| tagRules | Definition of the properties for a TagRules resource. | MonitoringTagRulesProperties |
MonitoringTagRulesProperties
| Name | Description | Value |
|---|---|---|
| automuting | Configuration to enable/disable auto-muting flag | bool |
| customMetrics | Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent. | bool |
| logRules | Set of rules for sending logs for the Monitor resource. | LogRules |
| metricRules | Set of rules for sending metrics for the Monitor resource. | MetricRules |
SubscriptionList
| Name | Description | Value |
|---|---|---|
| monitoredSubscriptionList | List of subscriptions and the state of the monitoring. | MonitoredSubscription[] |
| operation | The operation for the patch on the resource. | 'Active' 'AddBegin' 'AddComplete' 'DeleteBegin' 'DeleteComplete' |
ARM template resource definition
The monitors/monitoredSubscriptions resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands For a list of changed properties in each API version, see change log.
Usage Examples
Resource format
To create a Microsoft.Datadog/monitors/monitoredSubscriptions resource, add the following JSON to your template.
{
"type": "Microsoft.Datadog/monitors/monitoredSubscriptions",
"apiVersion": "2023-10-20",
"name": "string",
"properties": {
"monitoredSubscriptionList": [
{
"error": "string",
"status": "string",
"subscriptionId": "string",
"tagRules": {
"automuting": "bool",
"customMetrics": "bool",
"logRules": {
"filteringTags": [
{
"action": "string",
"name": "string",
"value": "string"
}
],
"sendAadLogs": "bool",
"sendResourceLogs": "bool",
"sendSubscriptionLogs": "bool"
},
"metricRules": {
"filteringTags": [
{
"action": "string",
"name": "string",
"value": "string"
}
]
}
}
}
],
"operation": "string"
}
}
Property Values
Microsoft.Datadog/monitors/monitoredSubscriptions
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2023-10-20' |
| name | The resource name | string (required) |
| properties | The request to update subscriptions needed to be monitored by the Datadog monitor resource. | SubscriptionList |
| type | The resource type | 'Microsoft.Datadog/monitors/monitoredSubscriptions' |
FilteringTag
| Name | Description | Value |
|---|---|---|
| action | Valid actions for a filtering tag. Exclusion takes priority over inclusion. | 'Exclude' 'Include' |
| name | The name (also known as the key) of the tag. | string |
| value | The value of the tag. | string |
LogRules
| Name | Description | Value |
|---|---|---|
| filteringTags | List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. | FilteringTag[] |
| sendAadLogs | Flag specifying if AAD logs should be sent for the Monitor resource. | bool |
| sendResourceLogs | Flag specifying if Azure resource logs should be sent for the Monitor resource. | bool |
| sendSubscriptionLogs | Flag specifying if Azure subscription logs should be sent for the Monitor resource. | bool |
MetricRules
| Name | Description | Value |
|---|---|---|
| filteringTags | List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. | FilteringTag[] |
MonitoredSubscription
| Name | Description | Value |
|---|---|---|
| error | The reason of not monitoring the subscription. | string |
| status | The state of monitoring. | 'Active' 'Deleting' 'Failed' 'InProgress' |
| subscriptionId | The subscriptionId to be monitored. | string |
| tagRules | Definition of the properties for a TagRules resource. | MonitoringTagRulesProperties |
MonitoringTagRulesProperties
| Name | Description | Value |
|---|---|---|
| automuting | Configuration to enable/disable auto-muting flag | bool |
| customMetrics | Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent. | bool |
| logRules | Set of rules for sending logs for the Monitor resource. | LogRules |
| metricRules | Set of rules for sending metrics for the Monitor resource. | MetricRules |
SubscriptionList
| Name | Description | Value |
|---|---|---|
| monitoredSubscriptionList | List of subscriptions and the state of the monitoring. | MonitoredSubscription[] |
| operation | The operation for the patch on the resource. | 'Active' 'AddBegin' 'AddComplete' 'DeleteBegin' 'DeleteComplete' |
Terraform (AzAPI provider) resource definition
The monitors/monitoredSubscriptions 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.Datadog/monitors/monitoredSubscriptions resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Datadog/monitors/monitoredSubscriptions@2023-10-20"
name = "string"
parent_id = "string"
body = {
properties = {
monitoredSubscriptionList = [
{
error = "string"
status = "string"
subscriptionId = "string"
tagRules = {
automuting = bool
customMetrics = bool
logRules = {
filteringTags = [
{
action = "string"
name = "string"
value = "string"
}
]
sendAadLogs = bool
sendResourceLogs = bool
sendSubscriptionLogs = bool
}
metricRules = {
filteringTags = [
{
action = "string"
name = "string"
value = "string"
}
]
}
}
}
]
operation = "string"
}
}
}
Property Values
Microsoft.Datadog/monitors/monitoredSubscriptions
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: monitors |
| properties | The request to update subscriptions needed to be monitored by the Datadog monitor resource. | SubscriptionList |
| type | The resource type | "Microsoft.Datadog/monitors/monitoredSubscriptions@2023-10-20" |
FilteringTag
| Name | Description | Value |
|---|---|---|
| action | Valid actions for a filtering tag. Exclusion takes priority over inclusion. | 'Exclude' 'Include' |
| name | The name (also known as the key) of the tag. | string |
| value | The value of the tag. | string |
LogRules
| Name | Description | Value |
|---|---|---|
| filteringTags | List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. | FilteringTag[] |
| sendAadLogs | Flag specifying if AAD logs should be sent for the Monitor resource. | bool |
| sendResourceLogs | Flag specifying if Azure resource logs should be sent for the Monitor resource. | bool |
| sendSubscriptionLogs | Flag specifying if Azure subscription logs should be sent for the Monitor resource. | bool |
MetricRules
| Name | Description | Value |
|---|---|---|
| filteringTags | List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. | FilteringTag[] |
MonitoredSubscription
| Name | Description | Value |
|---|---|---|
| error | The reason of not monitoring the subscription. | string |
| status | The state of monitoring. | 'Active' 'Deleting' 'Failed' 'InProgress' |
| subscriptionId | The subscriptionId to be monitored. | string |
| tagRules | Definition of the properties for a TagRules resource. | MonitoringTagRulesProperties |
MonitoringTagRulesProperties
| Name | Description | Value |
|---|---|---|
| automuting | Configuration to enable/disable auto-muting flag | bool |
| customMetrics | Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent. | bool |
| logRules | Set of rules for sending logs for the Monitor resource. | LogRules |
| metricRules | Set of rules for sending metrics for the Monitor resource. | MetricRules |
SubscriptionList
| Name | Description | Value |
|---|---|---|
| monitoredSubscriptionList | List of subscriptions and the state of the monitoring. | MonitoredSubscription[] |
| operation | The operation for the patch on the resource. | 'Active' 'AddBegin' 'AddComplete' 'DeleteBegin' 'DeleteComplete' |