1. Packages
  2. Azure Classic
  3. API Docs
  4. datadog
  5. MonitorSsoConfiguration

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.datadog.MonitorSsoConfiguration

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages SingleSignOn on the datadog Monitor.

    Example Usage

    Enabling SSO on monitor

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-datadog",
        location: "West US 2",
    });
    const exampleMonitor = new azure.datadog.Monitor("example", {
        name: "example-monitor",
        resourceGroupName: example.name,
        location: example.location,
        datadogOrganization: {
            apiKey: "XXXX",
            applicationKey: "XXXX",
        },
        user: {
            name: "Example",
            email: "abc@xyz.com",
        },
        skuName: "Linked",
        identity: {
            type: "SystemAssigned",
        },
    });
    const exampleMonitorSsoConfiguration = new azure.datadog.MonitorSsoConfiguration("example", {
        datadogMonitorId: exampleMonitor.id,
        singleSignOnEnabled: "Enable",
        enterpriseApplicationId: "XXXX",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-datadog",
        location="West US 2")
    example_monitor = azure.datadog.Monitor("example",
        name="example-monitor",
        resource_group_name=example.name,
        location=example.location,
        datadog_organization=azure.datadog.MonitorDatadogOrganizationArgs(
            api_key="XXXX",
            application_key="XXXX",
        ),
        user=azure.datadog.MonitorUserArgs(
            name="Example",
            email="abc@xyz.com",
        ),
        sku_name="Linked",
        identity=azure.datadog.MonitorIdentityArgs(
            type="SystemAssigned",
        ))
    example_monitor_sso_configuration = azure.datadog.MonitorSsoConfiguration("example",
        datadog_monitor_id=example_monitor.id,
        single_sign_on_enabled="Enable",
        enterprise_application_id="XXXX")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-datadog"),
    			Location: pulumi.String("West US 2"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleMonitor, err := datadog.NewMonitor(ctx, "example", &datadog.MonitorArgs{
    			Name:              pulumi.String("example-monitor"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			DatadogOrganization: &datadog.MonitorDatadogOrganizationArgs{
    				ApiKey:         pulumi.String("XXXX"),
    				ApplicationKey: pulumi.String("XXXX"),
    			},
    			User: &datadog.MonitorUserArgs{
    				Name:  pulumi.String("Example"),
    				Email: pulumi.String("abc@xyz.com"),
    			},
    			SkuName: pulumi.String("Linked"),
    			Identity: &datadog.MonitorIdentityArgs{
    				Type: pulumi.String("SystemAssigned"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = datadog.NewMonitorSsoConfiguration(ctx, "example", &datadog.MonitorSsoConfigurationArgs{
    			DatadogMonitorId:        exampleMonitor.ID(),
    			SingleSignOnEnabled:     pulumi.String("Enable"),
    			EnterpriseApplicationId: pulumi.String("XXXX"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-datadog",
            Location = "West US 2",
        });
    
        var exampleMonitor = new Azure.Datadog.Monitor("example", new()
        {
            Name = "example-monitor",
            ResourceGroupName = example.Name,
            Location = example.Location,
            DatadogOrganization = new Azure.Datadog.Inputs.MonitorDatadogOrganizationArgs
            {
                ApiKey = "XXXX",
                ApplicationKey = "XXXX",
            },
            User = new Azure.Datadog.Inputs.MonitorUserArgs
            {
                Name = "Example",
                Email = "abc@xyz.com",
            },
            SkuName = "Linked",
            Identity = new Azure.Datadog.Inputs.MonitorIdentityArgs
            {
                Type = "SystemAssigned",
            },
        });
    
        var exampleMonitorSsoConfiguration = new Azure.Datadog.MonitorSsoConfiguration("example", new()
        {
            DatadogMonitorId = exampleMonitor.Id,
            SingleSignOnEnabled = "Enable",
            EnterpriseApplicationId = "XXXX",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.datadog.Monitor;
    import com.pulumi.azure.datadog.MonitorArgs;
    import com.pulumi.azure.datadog.inputs.MonitorDatadogOrganizationArgs;
    import com.pulumi.azure.datadog.inputs.MonitorUserArgs;
    import com.pulumi.azure.datadog.inputs.MonitorIdentityArgs;
    import com.pulumi.azure.datadog.MonitorSsoConfiguration;
    import com.pulumi.azure.datadog.MonitorSsoConfigurationArgs;
    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) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-datadog")
                .location("West US 2")
                .build());
    
            var exampleMonitor = new Monitor("exampleMonitor", MonitorArgs.builder()
                .name("example-monitor")
                .resourceGroupName(example.name())
                .location(example.location())
                .datadogOrganization(MonitorDatadogOrganizationArgs.builder()
                    .apiKey("XXXX")
                    .applicationKey("XXXX")
                    .build())
                .user(MonitorUserArgs.builder()
                    .name("Example")
                    .email("abc@xyz.com")
                    .build())
                .skuName("Linked")
                .identity(MonitorIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .build());
    
            var exampleMonitorSsoConfiguration = new MonitorSsoConfiguration("exampleMonitorSsoConfiguration", MonitorSsoConfigurationArgs.builder()
                .datadogMonitorId(exampleMonitor.id())
                .singleSignOnEnabled("Enable")
                .enterpriseApplicationId("XXXX")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-datadog
          location: West US 2
      exampleMonitor:
        type: azure:datadog:Monitor
        name: example
        properties:
          name: example-monitor
          resourceGroupName: ${example.name}
          location: ${example.location}
          datadogOrganization:
            apiKey: XXXX
            applicationKey: XXXX
          user:
            name: Example
            email: abc@xyz.com
          skuName: Linked
          identity:
            type: SystemAssigned
      exampleMonitorSsoConfiguration:
        type: azure:datadog:MonitorSsoConfiguration
        name: example
        properties:
          datadogMonitorId: ${exampleMonitor.id}
          singleSignOnEnabled: Enable
          enterpriseApplicationId: XXXX
    

    Create MonitorSsoConfiguration Resource

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

    Constructor syntax

    new MonitorSsoConfiguration(name: string, args: MonitorSsoConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def MonitorSsoConfiguration(resource_name: str,
                                args: MonitorSsoConfigurationArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitorSsoConfiguration(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                datadog_monitor_id: Optional[str] = None,
                                enterprise_application_id: Optional[str] = None,
                                single_sign_on_enabled: Optional[str] = None,
                                name: Optional[str] = None)
    func NewMonitorSsoConfiguration(ctx *Context, name string, args MonitorSsoConfigurationArgs, opts ...ResourceOption) (*MonitorSsoConfiguration, error)
    public MonitorSsoConfiguration(string name, MonitorSsoConfigurationArgs args, CustomResourceOptions? opts = null)
    public MonitorSsoConfiguration(String name, MonitorSsoConfigurationArgs args)
    public MonitorSsoConfiguration(String name, MonitorSsoConfigurationArgs args, CustomResourceOptions options)
    
    type: azure:datadog:MonitorSsoConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MonitorSsoConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MonitorSsoConfigurationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MonitorSsoConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitorSsoConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitorSsoConfigurationArgs
    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 monitorSsoConfigurationResource = new Azure.Datadog.MonitorSsoConfiguration("monitorSsoConfigurationResource", new()
    {
        DatadogMonitorId = "string",
        EnterpriseApplicationId = "string",
        SingleSignOnEnabled = "string",
        Name = "string",
    });
    
    example, err := datadog.NewMonitorSsoConfiguration(ctx, "monitorSsoConfigurationResource", &datadog.MonitorSsoConfigurationArgs{
    	DatadogMonitorId:        pulumi.String("string"),
    	EnterpriseApplicationId: pulumi.String("string"),
    	SingleSignOnEnabled:     pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    })
    
    var monitorSsoConfigurationResource = new MonitorSsoConfiguration("monitorSsoConfigurationResource", MonitorSsoConfigurationArgs.builder()
        .datadogMonitorId("string")
        .enterpriseApplicationId("string")
        .singleSignOnEnabled("string")
        .name("string")
        .build());
    
    monitor_sso_configuration_resource = azure.datadog.MonitorSsoConfiguration("monitorSsoConfigurationResource",
        datadog_monitor_id="string",
        enterprise_application_id="string",
        single_sign_on_enabled="string",
        name="string")
    
    const monitorSsoConfigurationResource = new azure.datadog.MonitorSsoConfiguration("monitorSsoConfigurationResource", {
        datadogMonitorId: "string",
        enterpriseApplicationId: "string",
        singleSignOnEnabled: "string",
        name: "string",
    });
    
    type: azure:datadog:MonitorSsoConfiguration
    properties:
        datadogMonitorId: string
        enterpriseApplicationId: string
        name: string
        singleSignOnEnabled: string
    

    MonitorSsoConfiguration Resource Properties

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

    Inputs

    The MonitorSsoConfiguration resource accepts the following input properties:

    DatadogMonitorId string
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    EnterpriseApplicationId string
    The application Id to perform SSO operation.
    SingleSignOnEnabled string
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    Name string
    The name of the SingleSignOn configuration. Defaults to default.
    DatadogMonitorId string
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    EnterpriseApplicationId string
    The application Id to perform SSO operation.
    SingleSignOnEnabled string
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    Name string
    The name of the SingleSignOn configuration. Defaults to default.
    datadogMonitorId String
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    enterpriseApplicationId String
    The application Id to perform SSO operation.
    singleSignOnEnabled String
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    name String
    The name of the SingleSignOn configuration. Defaults to default.
    datadogMonitorId string
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    enterpriseApplicationId string
    The application Id to perform SSO operation.
    singleSignOnEnabled string
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    name string
    The name of the SingleSignOn configuration. Defaults to default.
    datadog_monitor_id str
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    enterprise_application_id str
    The application Id to perform SSO operation.
    single_sign_on_enabled str
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    name str
    The name of the SingleSignOn configuration. Defaults to default.
    datadogMonitorId String
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    enterpriseApplicationId String
    The application Id to perform SSO operation.
    singleSignOnEnabled String
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    name String
    The name of the SingleSignOn configuration. Defaults to default.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LoginUrl string
    The SingleSignOn URL to login to Datadog org.
    Id string
    The provider-assigned unique ID for this managed resource.
    LoginUrl string
    The SingleSignOn URL to login to Datadog org.
    id String
    The provider-assigned unique ID for this managed resource.
    loginUrl String
    The SingleSignOn URL to login to Datadog org.
    id string
    The provider-assigned unique ID for this managed resource.
    loginUrl string
    The SingleSignOn URL to login to Datadog org.
    id str
    The provider-assigned unique ID for this managed resource.
    login_url str
    The SingleSignOn URL to login to Datadog org.
    id String
    The provider-assigned unique ID for this managed resource.
    loginUrl String
    The SingleSignOn URL to login to Datadog org.

    Look up Existing MonitorSsoConfiguration Resource

    Get an existing MonitorSsoConfiguration 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?: MonitorSsoConfigurationState, opts?: CustomResourceOptions): MonitorSsoConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            datadog_monitor_id: Optional[str] = None,
            enterprise_application_id: Optional[str] = None,
            login_url: Optional[str] = None,
            name: Optional[str] = None,
            single_sign_on_enabled: Optional[str] = None) -> MonitorSsoConfiguration
    func GetMonitorSsoConfiguration(ctx *Context, name string, id IDInput, state *MonitorSsoConfigurationState, opts ...ResourceOption) (*MonitorSsoConfiguration, error)
    public static MonitorSsoConfiguration Get(string name, Input<string> id, MonitorSsoConfigurationState? state, CustomResourceOptions? opts = null)
    public static MonitorSsoConfiguration get(String name, Output<String> id, MonitorSsoConfigurationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    DatadogMonitorId string
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    EnterpriseApplicationId string
    The application Id to perform SSO operation.
    LoginUrl string
    The SingleSignOn URL to login to Datadog org.
    Name string
    The name of the SingleSignOn configuration. Defaults to default.
    SingleSignOnEnabled string
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    DatadogMonitorId string
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    EnterpriseApplicationId string
    The application Id to perform SSO operation.
    LoginUrl string
    The SingleSignOn URL to login to Datadog org.
    Name string
    The name of the SingleSignOn configuration. Defaults to default.
    SingleSignOnEnabled string
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    datadogMonitorId String
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    enterpriseApplicationId String
    The application Id to perform SSO operation.
    loginUrl String
    The SingleSignOn URL to login to Datadog org.
    name String
    The name of the SingleSignOn configuration. Defaults to default.
    singleSignOnEnabled String
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    datadogMonitorId string
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    enterpriseApplicationId string
    The application Id to perform SSO operation.
    loginUrl string
    The SingleSignOn URL to login to Datadog org.
    name string
    The name of the SingleSignOn configuration. Defaults to default.
    singleSignOnEnabled string
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    datadog_monitor_id str
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    enterprise_application_id str
    The application Id to perform SSO operation.
    login_url str
    The SingleSignOn URL to login to Datadog org.
    name str
    The name of the SingleSignOn configuration. Defaults to default.
    single_sign_on_enabled str
    The state of SingleSignOn configuration. Possible values are Enable and Disable.
    datadogMonitorId String
    The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
    enterpriseApplicationId String
    The application Id to perform SSO operation.
    loginUrl String
    The SingleSignOn URL to login to Datadog org.
    name String
    The name of the SingleSignOn configuration. Defaults to default.
    singleSignOnEnabled String
    The state of SingleSignOn configuration. Possible values are Enable and Disable.

    Import

    SingleSignOn on the Datadog Monitor can be imported using the signle sign on resource id, e.g.

    $ pulumi import azure:datadog/monitorSsoConfiguration:MonitorSsoConfiguration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Datadog/monitors/monitor1/singleSignOnConfigurations/default
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi