1. Packages
  2. Datadog Provider
  3. API Docs
  4. azure
  5. Integration
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

datadog.azure.Integration

Explore with Pulumi AI

Provides a Datadog - Microsoft Azure integration resource. This can be used to create and manage the integrations.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

// Create a new Datadog - Microsoft Azure integration
const sandbox = new datadog.azure.Integration("sandbox", {
    tenantName: "<azure_tenant_name>",
    clientId: "<azure_client_id>",
    clientSecret: "<azure_client_secret_key>",
    hostFilters: "examplefilter:true,example:true",
    appServicePlanFilters: "examplefilter:true,example:another",
    containerAppFilters: "examplefilter:true,example:one_more",
    automute: true,
    cspmEnabled: true,
    customMetricsEnabled: false,
});
Copy
import pulumi
import pulumi_datadog as datadog

# Create a new Datadog - Microsoft Azure integration
sandbox = datadog.azure.Integration("sandbox",
    tenant_name="<azure_tenant_name>",
    client_id="<azure_client_id>",
    client_secret="<azure_client_secret_key>",
    host_filters="examplefilter:true,example:true",
    app_service_plan_filters="examplefilter:true,example:another",
    container_app_filters="examplefilter:true,example:one_more",
    automute=True,
    cspm_enabled=True,
    custom_metrics_enabled=False)
Copy
package main

import (
	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog/azure"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Create a new Datadog - Microsoft Azure integration
		_, err := azure.NewIntegration(ctx, "sandbox", &azure.IntegrationArgs{
			TenantName:            pulumi.String("<azure_tenant_name>"),
			ClientId:              pulumi.String("<azure_client_id>"),
			ClientSecret:          pulumi.String("<azure_client_secret_key>"),
			HostFilters:           pulumi.String("examplefilter:true,example:true"),
			AppServicePlanFilters: pulumi.String("examplefilter:true,example:another"),
			ContainerAppFilters:   pulumi.String("examplefilter:true,example:one_more"),
			Automute:              pulumi.Bool(true),
			CspmEnabled:           pulumi.Bool(true),
			CustomMetricsEnabled:  pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;

return await Deployment.RunAsync(() => 
{
    // Create a new Datadog - Microsoft Azure integration
    var sandbox = new Datadog.Azure.Integration("sandbox", new()
    {
        TenantName = "<azure_tenant_name>",
        ClientId = "<azure_client_id>",
        ClientSecret = "<azure_client_secret_key>",
        HostFilters = "examplefilter:true,example:true",
        AppServicePlanFilters = "examplefilter:true,example:another",
        ContainerAppFilters = "examplefilter:true,example:one_more",
        Automute = true,
        CspmEnabled = true,
        CustomMetricsEnabled = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.azure.Integration;
import com.pulumi.datadog.azure.IntegrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        // Create a new Datadog - Microsoft Azure integration
        var sandbox = new Integration("sandbox", IntegrationArgs.builder()
            .tenantName("<azure_tenant_name>")
            .clientId("<azure_client_id>")
            .clientSecret("<azure_client_secret_key>")
            .hostFilters("examplefilter:true,example:true")
            .appServicePlanFilters("examplefilter:true,example:another")
            .containerAppFilters("examplefilter:true,example:one_more")
            .automute(true)
            .cspmEnabled(true)
            .customMetricsEnabled(false)
            .build());

    }
}
Copy
resources:
  # Create a new Datadog - Microsoft Azure integration
  sandbox:
    type: datadog:azure:Integration
    properties:
      tenantName: <azure_tenant_name>
      clientId: <azure_client_id>
      clientSecret: <azure_client_secret_key>
      hostFilters: examplefilter:true,example:true
      appServicePlanFilters: examplefilter:true,example:another
      containerAppFilters: examplefilter:true,example:one_more
      automute: true
      cspmEnabled: true
      customMetricsEnabled: false
Copy

Create Integration Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Integration(name: string, args: IntegrationArgs, opts?: CustomResourceOptions);
@overload
def Integration(resource_name: str,
                args: IntegrationArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def Integration(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                client_secret: Optional[str] = None,
                tenant_name: Optional[str] = None,
                client_id: Optional[str] = None,
                custom_metrics_enabled: Optional[bool] = None,
                container_app_filters: Optional[str] = None,
                cspm_enabled: Optional[bool] = None,
                app_service_plan_filters: Optional[str] = None,
                host_filters: Optional[str] = None,
                metrics_enabled: Optional[bool] = None,
                metrics_enabled_default: Optional[bool] = None,
                resource_collection_enabled: Optional[bool] = None,
                resource_provider_configs: Optional[Sequence[IntegrationResourceProviderConfigArgs]] = None,
                automute: Optional[bool] = None,
                usage_metrics_enabled: Optional[bool] = None)
func NewIntegration(ctx *Context, name string, args IntegrationArgs, opts ...ResourceOption) (*Integration, error)
public Integration(string name, IntegrationArgs args, CustomResourceOptions? opts = null)
public Integration(String name, IntegrationArgs args)
public Integration(String name, IntegrationArgs args, CustomResourceOptions options)
type: datadog:azure:Integration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IntegrationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IntegrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IntegrationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var datadogIntegrationResource = new Datadog.Azure.Integration("datadogIntegrationResource", new()
{
    ClientSecret = "string",
    TenantName = "string",
    ClientId = "string",
    CustomMetricsEnabled = false,
    ContainerAppFilters = "string",
    CspmEnabled = false,
    AppServicePlanFilters = "string",
    HostFilters = "string",
    MetricsEnabled = false,
    MetricsEnabledDefault = false,
    ResourceCollectionEnabled = false,
    ResourceProviderConfigs = new[]
    {
        new Datadog.Azure.Inputs.IntegrationResourceProviderConfigArgs
        {
            MetricsEnabled = false,
            Namespace = "string",
        },
    },
    Automute = false,
    UsageMetricsEnabled = false,
});
Copy
example, err := azure.NewIntegration(ctx, "datadogIntegrationResource", &azure.IntegrationArgs{
	ClientSecret:              pulumi.String("string"),
	TenantName:                pulumi.String("string"),
	ClientId:                  pulumi.String("string"),
	CustomMetricsEnabled:      pulumi.Bool(false),
	ContainerAppFilters:       pulumi.String("string"),
	CspmEnabled:               pulumi.Bool(false),
	AppServicePlanFilters:     pulumi.String("string"),
	HostFilters:               pulumi.String("string"),
	MetricsEnabled:            pulumi.Bool(false),
	MetricsEnabledDefault:     pulumi.Bool(false),
	ResourceCollectionEnabled: pulumi.Bool(false),
	ResourceProviderConfigs: azure.IntegrationResourceProviderConfigArray{
		&azure.IntegrationResourceProviderConfigArgs{
			MetricsEnabled: pulumi.Bool(false),
			Namespace:      pulumi.String("string"),
		},
	},
	Automute:            pulumi.Bool(false),
	UsageMetricsEnabled: pulumi.Bool(false),
})
Copy
var datadogIntegrationResource = new com.pulumi.datadog.azure.Integration("datadogIntegrationResource", com.pulumi.datadog.azure.IntegrationArgs.builder()
    .clientSecret("string")
    .tenantName("string")
    .clientId("string")
    .customMetricsEnabled(false)
    .containerAppFilters("string")
    .cspmEnabled(false)
    .appServicePlanFilters("string")
    .hostFilters("string")
    .metricsEnabled(false)
    .metricsEnabledDefault(false)
    .resourceCollectionEnabled(false)
    .resourceProviderConfigs(IntegrationResourceProviderConfigArgs.builder()
        .metricsEnabled(false)
        .namespace("string")
        .build())
    .automute(false)
    .usageMetricsEnabled(false)
    .build());
Copy
datadog_integration_resource = datadog.azure.Integration("datadogIntegrationResource",
    client_secret="string",
    tenant_name="string",
    client_id="string",
    custom_metrics_enabled=False,
    container_app_filters="string",
    cspm_enabled=False,
    app_service_plan_filters="string",
    host_filters="string",
    metrics_enabled=False,
    metrics_enabled_default=False,
    resource_collection_enabled=False,
    resource_provider_configs=[{
        "metrics_enabled": False,
        "namespace": "string",
    }],
    automute=False,
    usage_metrics_enabled=False)
Copy
const datadogIntegrationResource = new datadog.azure.Integration("datadogIntegrationResource", {
    clientSecret: "string",
    tenantName: "string",
    clientId: "string",
    customMetricsEnabled: false,
    containerAppFilters: "string",
    cspmEnabled: false,
    appServicePlanFilters: "string",
    hostFilters: "string",
    metricsEnabled: false,
    metricsEnabledDefault: false,
    resourceCollectionEnabled: false,
    resourceProviderConfigs: [{
        metricsEnabled: false,
        namespace: "string",
    }],
    automute: false,
    usageMetricsEnabled: false,
});
Copy
type: datadog:azure:Integration
properties:
    appServicePlanFilters: string
    automute: false
    clientId: string
    clientSecret: string
    containerAppFilters: string
    cspmEnabled: false
    customMetricsEnabled: false
    hostFilters: string
    metricsEnabled: false
    metricsEnabledDefault: false
    resourceCollectionEnabled: false
    resourceProviderConfigs:
        - metricsEnabled: false
          namespace: string
    tenantName: string
    usageMetricsEnabled: false
Copy

Integration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Integration resource accepts the following input properties:

ClientId This property is required. string
Your Azure web application ID.
ClientSecret This property is required. string
(Required for Initial Creation) Your Azure web application secret key.
TenantName This property is required. string
Your Azure Active Directory ID.
AppServicePlanFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
Automute bool
Silence monitors for expected Azure VM shutdowns. Defaults to false.
ContainerAppFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
CspmEnabled bool
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
CustomMetricsEnabled bool
Enable custom metrics for your organization. Defaults to false.
HostFilters string
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
MetricsEnabled bool
Enable Azure metrics for your organization. Defaults to true.
MetricsEnabledDefault bool
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
ResourceCollectionEnabled bool
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
ResourceProviderConfigs List<IntegrationResourceProviderConfig>
Configuration settings applied to resources from the specified Azure resource providers.
UsageMetricsEnabled bool
Enable azure.usage metrics for your organization. Defaults to true.
ClientId This property is required. string
Your Azure web application ID.
ClientSecret This property is required. string
(Required for Initial Creation) Your Azure web application secret key.
TenantName This property is required. string
Your Azure Active Directory ID.
AppServicePlanFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
Automute bool
Silence monitors for expected Azure VM shutdowns. Defaults to false.
ContainerAppFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
CspmEnabled bool
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
CustomMetricsEnabled bool
Enable custom metrics for your organization. Defaults to false.
HostFilters string
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
MetricsEnabled bool
Enable Azure metrics for your organization. Defaults to true.
MetricsEnabledDefault bool
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
ResourceCollectionEnabled bool
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
ResourceProviderConfigs []IntegrationResourceProviderConfigArgs
Configuration settings applied to resources from the specified Azure resource providers.
UsageMetricsEnabled bool
Enable azure.usage metrics for your organization. Defaults to true.
clientId This property is required. String
Your Azure web application ID.
clientSecret This property is required. String
(Required for Initial Creation) Your Azure web application secret key.
tenantName This property is required. String
Your Azure Active Directory ID.
appServicePlanFilters String
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
automute Boolean
Silence monitors for expected Azure VM shutdowns. Defaults to false.
containerAppFilters String
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
cspmEnabled Boolean
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
customMetricsEnabled Boolean
Enable custom metrics for your organization. Defaults to false.
hostFilters String
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
metricsEnabled Boolean
Enable Azure metrics for your organization. Defaults to true.
metricsEnabledDefault Boolean
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
resourceCollectionEnabled Boolean
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
resourceProviderConfigs List<IntegrationResourceProviderConfig>
Configuration settings applied to resources from the specified Azure resource providers.
usageMetricsEnabled Boolean
Enable azure.usage metrics for your organization. Defaults to true.
clientId This property is required. string
Your Azure web application ID.
clientSecret This property is required. string
(Required for Initial Creation) Your Azure web application secret key.
tenantName This property is required. string
Your Azure Active Directory ID.
appServicePlanFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
automute boolean
Silence monitors for expected Azure VM shutdowns. Defaults to false.
containerAppFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
cspmEnabled boolean
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
customMetricsEnabled boolean
Enable custom metrics for your organization. Defaults to false.
hostFilters string
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
metricsEnabled boolean
Enable Azure metrics for your organization. Defaults to true.
metricsEnabledDefault boolean
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
resourceCollectionEnabled boolean
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
resourceProviderConfigs IntegrationResourceProviderConfig[]
Configuration settings applied to resources from the specified Azure resource providers.
usageMetricsEnabled boolean
Enable azure.usage metrics for your organization. Defaults to true.
client_id This property is required. str
Your Azure web application ID.
client_secret This property is required. str
(Required for Initial Creation) Your Azure web application secret key.
tenant_name This property is required. str
Your Azure Active Directory ID.
app_service_plan_filters str
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
automute bool
Silence monitors for expected Azure VM shutdowns. Defaults to false.
container_app_filters str
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
cspm_enabled bool
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
custom_metrics_enabled bool
Enable custom metrics for your organization. Defaults to false.
host_filters str
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
metrics_enabled bool
Enable Azure metrics for your organization. Defaults to true.
metrics_enabled_default bool
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
resource_collection_enabled bool
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
resource_provider_configs Sequence[IntegrationResourceProviderConfigArgs]
Configuration settings applied to resources from the specified Azure resource providers.
usage_metrics_enabled bool
Enable azure.usage metrics for your organization. Defaults to true.
clientId This property is required. String
Your Azure web application ID.
clientSecret This property is required. String
(Required for Initial Creation) Your Azure web application secret key.
tenantName This property is required. String
Your Azure Active Directory ID.
appServicePlanFilters String
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
automute Boolean
Silence monitors for expected Azure VM shutdowns. Defaults to false.
containerAppFilters String
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
cspmEnabled Boolean
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
customMetricsEnabled Boolean
Enable custom metrics for your organization. Defaults to false.
hostFilters String
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
metricsEnabled Boolean
Enable Azure metrics for your organization. Defaults to true.
metricsEnabledDefault Boolean
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
resourceCollectionEnabled Boolean
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
resourceProviderConfigs List<Property Map>
Configuration settings applied to resources from the specified Azure resource providers.
usageMetricsEnabled Boolean
Enable azure.usage metrics for your organization. Defaults to true.

Outputs

All input properties are implicitly available as output properties. Additionally, the Integration resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Integration Resource

Get an existing Integration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IntegrationState, opts?: CustomResourceOptions): Integration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        app_service_plan_filters: Optional[str] = None,
        automute: Optional[bool] = None,
        client_id: Optional[str] = None,
        client_secret: Optional[str] = None,
        container_app_filters: Optional[str] = None,
        cspm_enabled: Optional[bool] = None,
        custom_metrics_enabled: Optional[bool] = None,
        host_filters: Optional[str] = None,
        metrics_enabled: Optional[bool] = None,
        metrics_enabled_default: Optional[bool] = None,
        resource_collection_enabled: Optional[bool] = None,
        resource_provider_configs: Optional[Sequence[IntegrationResourceProviderConfigArgs]] = None,
        tenant_name: Optional[str] = None,
        usage_metrics_enabled: Optional[bool] = None) -> Integration
func GetIntegration(ctx *Context, name string, id IDInput, state *IntegrationState, opts ...ResourceOption) (*Integration, error)
public static Integration Get(string name, Input<string> id, IntegrationState? state, CustomResourceOptions? opts = null)
public static Integration get(String name, Output<String> id, IntegrationState state, CustomResourceOptions options)
resources:  _:    type: datadog:azure:Integration    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AppServicePlanFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
Automute bool
Silence monitors for expected Azure VM shutdowns. Defaults to false.
ClientId string
Your Azure web application ID.
ClientSecret string
(Required for Initial Creation) Your Azure web application secret key.
ContainerAppFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
CspmEnabled bool
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
CustomMetricsEnabled bool
Enable custom metrics for your organization. Defaults to false.
HostFilters string
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
MetricsEnabled bool
Enable Azure metrics for your organization. Defaults to true.
MetricsEnabledDefault bool
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
ResourceCollectionEnabled bool
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
ResourceProviderConfigs List<IntegrationResourceProviderConfig>
Configuration settings applied to resources from the specified Azure resource providers.
TenantName string
Your Azure Active Directory ID.
UsageMetricsEnabled bool
Enable azure.usage metrics for your organization. Defaults to true.
AppServicePlanFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
Automute bool
Silence monitors for expected Azure VM shutdowns. Defaults to false.
ClientId string
Your Azure web application ID.
ClientSecret string
(Required for Initial Creation) Your Azure web application secret key.
ContainerAppFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
CspmEnabled bool
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
CustomMetricsEnabled bool
Enable custom metrics for your organization. Defaults to false.
HostFilters string
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
MetricsEnabled bool
Enable Azure metrics for your organization. Defaults to true.
MetricsEnabledDefault bool
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
ResourceCollectionEnabled bool
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
ResourceProviderConfigs []IntegrationResourceProviderConfigArgs
Configuration settings applied to resources from the specified Azure resource providers.
TenantName string
Your Azure Active Directory ID.
UsageMetricsEnabled bool
Enable azure.usage metrics for your organization. Defaults to true.
appServicePlanFilters String
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
automute Boolean
Silence monitors for expected Azure VM shutdowns. Defaults to false.
clientId String
Your Azure web application ID.
clientSecret String
(Required for Initial Creation) Your Azure web application secret key.
containerAppFilters String
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
cspmEnabled Boolean
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
customMetricsEnabled Boolean
Enable custom metrics for your organization. Defaults to false.
hostFilters String
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
metricsEnabled Boolean
Enable Azure metrics for your organization. Defaults to true.
metricsEnabledDefault Boolean
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
resourceCollectionEnabled Boolean
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
resourceProviderConfigs List<IntegrationResourceProviderConfig>
Configuration settings applied to resources from the specified Azure resource providers.
tenantName String
Your Azure Active Directory ID.
usageMetricsEnabled Boolean
Enable azure.usage metrics for your organization. Defaults to true.
appServicePlanFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
automute boolean
Silence monitors for expected Azure VM shutdowns. Defaults to false.
clientId string
Your Azure web application ID.
clientSecret string
(Required for Initial Creation) Your Azure web application secret key.
containerAppFilters string
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
cspmEnabled boolean
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
customMetricsEnabled boolean
Enable custom metrics for your organization. Defaults to false.
hostFilters string
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
metricsEnabled boolean
Enable Azure metrics for your organization. Defaults to true.
metricsEnabledDefault boolean
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
resourceCollectionEnabled boolean
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
resourceProviderConfigs IntegrationResourceProviderConfig[]
Configuration settings applied to resources from the specified Azure resource providers.
tenantName string
Your Azure Active Directory ID.
usageMetricsEnabled boolean
Enable azure.usage metrics for your organization. Defaults to true.
app_service_plan_filters str
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
automute bool
Silence monitors for expected Azure VM shutdowns. Defaults to false.
client_id str
Your Azure web application ID.
client_secret str
(Required for Initial Creation) Your Azure web application secret key.
container_app_filters str
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
cspm_enabled bool
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
custom_metrics_enabled bool
Enable custom metrics for your organization. Defaults to false.
host_filters str
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
metrics_enabled bool
Enable Azure metrics for your organization. Defaults to true.
metrics_enabled_default bool
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
resource_collection_enabled bool
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
resource_provider_configs Sequence[IntegrationResourceProviderConfigArgs]
Configuration settings applied to resources from the specified Azure resource providers.
tenant_name str
Your Azure Active Directory ID.
usage_metrics_enabled bool
Enable azure.usage metrics for your organization. Defaults to true.
appServicePlanFilters String
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to "".
automute Boolean
Silence monitors for expected Azure VM shutdowns. Defaults to false.
clientId String
Your Azure web application ID.
clientSecret String
(Required for Initial Creation) Your Azure web application secret key.
containerAppFilters String
This comma-separated list of tags (in the form key:value,key:value) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to "".
cspmEnabled Boolean
When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. Note: This requires resource_collection_enabled to be set to true. Defaults to false.
customMetricsEnabled Boolean
Enable custom metrics for your organization. Defaults to false.
hostFilters String
String of host tag(s) (in the form key:value,key:value) defines a filter that Datadog will use when collecting metrics from Azure. Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. e.x. env:production,deploymentgroup:red Defaults to "".
metricsEnabled Boolean
Enable Azure metrics for your organization. Defaults to true.
metricsEnabledDefault Boolean
Enable Azure metrics for your organization for resource providers where no resource provider config is specified. Defaults to true.
resourceCollectionEnabled Boolean
When enabled, Datadog collects metadata and configuration info from cloud resources (such as compute instances, databases, and load balancers) monitored by this app registration.
resourceProviderConfigs List<Property Map>
Configuration settings applied to resources from the specified Azure resource providers.
tenantName String
Your Azure Active Directory ID.
usageMetricsEnabled Boolean
Enable azure.usage metrics for your organization. Defaults to true.

Supporting Types

IntegrationResourceProviderConfig
, IntegrationResourceProviderConfigArgs

MetricsEnabled This property is required. bool
Namespace This property is required. string
MetricsEnabled This property is required. bool
Namespace This property is required. string
metricsEnabled This property is required. Boolean
namespace This property is required. String
metricsEnabled This property is required. boolean
namespace This property is required. string
metrics_enabled This property is required. bool
namespace This property is required. str
metricsEnabled This property is required. Boolean
namespace This property is required. String

Import

Microsoft Azure integrations can be imported using their tenant name and client id separated with a colon (:).

The client_secret should be passed by setting the environment variable CLIENT_SECRET

$ pulumi import datadog:azure/integration:Integration sandbox ${tenant_name}:${client_id}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.