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@2020-02-01-preview' = {
identity: {
type: 'string'
}
location: 'string'
name: 'string'
properties: {
datadogOrganizationProperties: {
apiKey: 'string'
applicationKey: 'string'
enterpriseAppId: 'string'
linkingAuthCode: 'string'
linkingClientId: '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. |
| enterpriseAppId | The Id of the Enterprise App used for Single sign on. | 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. |
| redirectUri | The redirect uri for linking. | string |
IdentityProperties
| Name | Description | Value |
|---|---|---|
| type | Identity type | 'SystemAssigned' 'UserAssigned' |
MonitorProperties
| Name | Description | Value |
|---|---|---|
| datadogOrganizationProperties | Datadog organization properties | DatadogOrganizationProperties |
| monitoringStatus | Flag specifying if the resource monitoring is enabled or disabled. | 'Disabled' 'Enabled' |
| userInfo | User info | UserInfo |
ResourceSku
| Name | Description | Value |
|---|---|---|
| name | Name of the SKU. | 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": "2020-02-01-preview",
"name": "string",
"identity": {
"type": "string"
},
"location": "string",
"properties": {
"datadogOrganizationProperties": {
"apiKey": "string",
"applicationKey": "string",
"enterpriseAppId": "string",
"linkingAuthCode": "string",
"linkingClientId": "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 | '2020-02-01-preview' |
| 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. |
| enterpriseAppId | The Id of the Enterprise App used for Single sign on. | 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. |
| redirectUri | The redirect uri for linking. | string |
IdentityProperties
| Name | Description | Value |
|---|---|---|
| type | Identity type | 'SystemAssigned' 'UserAssigned' |
MonitorProperties
| Name | Description | Value |
|---|---|---|
| datadogOrganizationProperties | Datadog organization properties | DatadogOrganizationProperties |
| monitoringStatus | Flag specifying if the resource monitoring is enabled or disabled. | 'Disabled' 'Enabled' |
| userInfo | User info | UserInfo |
ResourceSku
| Name | Description | Value |
|---|---|---|
| name | Name of the SKU. | 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@2020-02-01-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
datadogOrganizationProperties = {
apiKey = "string"
applicationKey = "string"
enterpriseAppId = "string"
linkingAuthCode = "string"
linkingClientId = "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@2020-02-01-preview" |
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. |
| enterpriseAppId | The Id of the Enterprise App used for Single sign on. | 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. |
| redirectUri | The redirect uri for linking. | string |
IdentityProperties
| Name | Description | Value |
|---|---|---|
| type | Identity type | 'SystemAssigned' 'UserAssigned' |
MonitorProperties
| Name | Description | Value |
|---|---|---|
| datadogOrganizationProperties | Datadog organization properties | DatadogOrganizationProperties |
| monitoringStatus | Flag specifying if the resource monitoring is enabled or disabled. | 'Disabled' 'Enabled' |
| userInfo | User info | UserInfo |
ResourceSku
| Name | Description | Value |
|---|---|---|
| name | Name of the SKU. | 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 |