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 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
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
| Bicep File | Description |
|---|---|
| Create a new Datadog Organization | This template creates a new Datadog - An Azure Native ISV Service resource and a Datadog organization to monitor resources in your subscription. |
Resource format
To create a Microsoft.Datadog/monitors resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Datadog/monitors@2023-01-01' = {
identity: {
type: 'string'
}
location: 'string'
name: 'string'
properties: {
datadogOrganizationProperties: {
apiKey: 'string'
applicationKey: 'string'
cspm: bool
enterpriseAppId: 'string'
id: 'string'
linkingAuthCode: 'string'
linkingClientId: 'string'
name: 'string'
redirectUri: 'string'
}
monitoringStatus: 'string'
userInfo: {
emailAddress: 'string'
name: 'string'
phoneNumber: 'string'
}
}
sku: {
name: 'string'
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.Datadog/monitors
| Name | Description | Value |
|---|---|---|
| identity | IdentityProperties | |
| location | string (required) | |
| name | The resource name | string (required) |
| properties | Properties specific to the monitor resource. | MonitorProperties |
| sku | ResourceSku | |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
DatadogMonitorResourceTags
| Name | Description | Value |
|---|
DatadogOrganizationProperties
| Name | Description | Value |
|---|---|---|
| apiKey | Api key associated to the Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| applicationKey | Application key associated to the Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| cspm | The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. | bool |
| enterpriseAppId | The Id of the Enterprise App used for Single sign on. | string |
| id | Id of the Datadog organization. | string |
| linkingAuthCode | The auth code used to linking to an existing Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| linkingClientId | The client_id from an existing in exchange for an auth token to link organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| name | Name of the Datadog organization. | string |
| redirectUri | The redirect URI for linking. | string |
IdentityProperties
| Name | Description | Value |
|---|---|---|
| type | Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. | 'SystemAssigned' 'UserAssigned' |
MonitorProperties
| Name | Description | Value |
|---|---|---|
| datadogOrganizationProperties | Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. | DatadogOrganizationProperties |
| monitoringStatus | Flag specifying if the resource monitoring is enabled or disabled. | 'Disabled' 'Enabled' |
| userInfo | Includes name, email and optionally, phone number. User Information can't be null. | UserInfo |
ResourceSku
| Name | Description | Value |
|---|---|---|
| name | Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'. | string (required) |
UserInfo
| Name | Description | Value |
|---|---|---|
| emailAddress | Email of the user used by Datadog for contacting them if needed | string Constraints: Pattern = ^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$ |
| name | Name of the user | string Constraints: Max length = 50 |
| phoneNumber | Phone number of the user used by Datadog for contacting them if needed | string Constraints: Max length = 40 |
ARM template resource definition
The monitors 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
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
| Template | Description |
|---|---|
| Create a new Datadog Organization |
This template creates a new Datadog - An Azure Native ISV Service resource and a Datadog organization to monitor resources in your subscription. |
Resource format
To create a Microsoft.Datadog/monitors resource, add the following JSON to your template.
{
"type": "Microsoft.Datadog/monitors",
"apiVersion": "2023-01-01",
"name": "string",
"identity": {
"type": "string"
},
"location": "string",
"properties": {
"datadogOrganizationProperties": {
"apiKey": "string",
"applicationKey": "string",
"cspm": "bool",
"enterpriseAppId": "string",
"id": "string",
"linkingAuthCode": "string",
"linkingClientId": "string",
"name": "string",
"redirectUri": "string"
},
"monitoringStatus": "string",
"userInfo": {
"emailAddress": "string",
"name": "string",
"phoneNumber": "string"
}
},
"sku": {
"name": "string"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.Datadog/monitors
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2023-01-01' |
| identity | IdentityProperties | |
| location | string (required) | |
| name | The resource name | string (required) |
| properties | Properties specific to the monitor resource. | MonitorProperties |
| sku | ResourceSku | |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| type | The resource type | 'Microsoft.Datadog/monitors' |
DatadogMonitorResourceTags
| Name | Description | Value |
|---|
DatadogOrganizationProperties
| Name | Description | Value |
|---|---|---|
| apiKey | Api key associated to the Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| applicationKey | Application key associated to the Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| cspm | The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. | bool |
| enterpriseAppId | The Id of the Enterprise App used for Single sign on. | string |
| id | Id of the Datadog organization. | string |
| linkingAuthCode | The auth code used to linking to an existing Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| linkingClientId | The client_id from an existing in exchange for an auth token to link organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| name | Name of the Datadog organization. | string |
| redirectUri | The redirect URI for linking. | string |
IdentityProperties
| Name | Description | Value |
|---|---|---|
| type | Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. | 'SystemAssigned' 'UserAssigned' |
MonitorProperties
| Name | Description | Value |
|---|---|---|
| datadogOrganizationProperties | Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. | DatadogOrganizationProperties |
| monitoringStatus | Flag specifying if the resource monitoring is enabled or disabled. | 'Disabled' 'Enabled' |
| userInfo | Includes name, email and optionally, phone number. User Information can't be null. | UserInfo |
ResourceSku
| Name | Description | Value |
|---|---|---|
| name | Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'. | string (required) |
UserInfo
| Name | Description | Value |
|---|---|---|
| emailAddress | Email of the user used by Datadog for contacting them if needed | string Constraints: Pattern = ^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$ |
| name | Name of the user | string Constraints: Max length = 50 |
| phoneNumber | Phone number of the user used by Datadog for contacting them if needed | string Constraints: Max length = 40 |
Terraform (AzAPI provider) resource definition
The monitors 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 resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Datadog/monitors@2023-01-01"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
datadogOrganizationProperties = {
apiKey = "string"
applicationKey = "string"
cspm = bool
enterpriseAppId = "string"
id = "string"
linkingAuthCode = "string"
linkingClientId = "string"
name = "string"
redirectUri = "string"
}
monitoringStatus = "string"
userInfo = {
emailAddress = "string"
name = "string"
phoneNumber = "string"
}
}
sku = {
name = "string"
}
}
}
Property Values
Microsoft.Datadog/monitors
| Name | Description | Value |
|---|---|---|
| identity | IdentityProperties | |
| location | string (required) | |
| name | The resource name | string (required) |
| properties | Properties specific to the monitor resource. | MonitorProperties |
| sku | ResourceSku | |
| tags | Resource tags | Dictionary of tag names and values. |
| type | The resource type | "Microsoft.Datadog/monitors@2023-01-01" |
DatadogMonitorResourceTags
| Name | Description | Value |
|---|
DatadogOrganizationProperties
| Name | Description | Value |
|---|---|---|
| apiKey | Api key associated to the Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| applicationKey | Application key associated to the Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| cspm | The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. | bool |
| enterpriseAppId | The Id of the Enterprise App used for Single sign on. | string |
| id | Id of the Datadog organization. | string |
| linkingAuthCode | The auth code used to linking to an existing Datadog organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| linkingClientId | The client_id from an existing in exchange for an auth token to link organization. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| name | Name of the Datadog organization. | string |
| redirectUri | The redirect URI for linking. | string |
IdentityProperties
| Name | Description | Value |
|---|---|---|
| type | Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. | 'SystemAssigned' 'UserAssigned' |
MonitorProperties
| Name | Description | Value |
|---|---|---|
| datadogOrganizationProperties | Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. | DatadogOrganizationProperties |
| monitoringStatus | Flag specifying if the resource monitoring is enabled or disabled. | 'Disabled' 'Enabled' |
| userInfo | Includes name, email and optionally, phone number. User Information can't be null. | UserInfo |
ResourceSku
| Name | Description | Value |
|---|---|---|
| name | Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'. | string (required) |
UserInfo
| Name | Description | Value |
|---|---|---|
| emailAddress | Email of the user used by Datadog for contacting them if needed | string Constraints: Pattern = ^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$ |
| name | Name of the user | string Constraints: Max length = 50 |
| phoneNumber | Phone number of the user used by Datadog for contacting them if needed | string Constraints: Max length = 40 |