1. Packages
  2. Azure Classic
  3. API Docs
  4. dynatrace
  5. getMonitor

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.dynatrace.getMonitor

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

Use this data source to access information about an existing Dynatrace Monitor.

Example Usage

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

const example = azure.dynatrace.getMonitor({
    name: "example-dynatracemonitor",
    resourceGroupName: "example-resources",
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.dynatrace.get_monitor(name="example-dynatracemonitor",
    resource_group_name="example-resources")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dynatrace"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dynatrace.LookupMonitor(ctx, &dynatrace.LookupMonitorArgs{
			Name:              "example-dynatracemonitor",
			ResourceGroupName: "example-resources",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.Dynatrace.GetMonitor.Invoke(new()
    {
        Name = "example-dynatracemonitor",
        ResourceGroupName = "example-resources",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.dynatrace.DynatraceFunctions;
import com.pulumi.azure.dynatrace.inputs.GetMonitorArgs;
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) {
        final var example = DynatraceFunctions.getMonitor(GetMonitorArgs.builder()
            .name("example-dynatracemonitor")
            .resourceGroupName("example-resources")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:dynatrace:getMonitor
      arguments:
        name: example-dynatracemonitor
        resourceGroupName: example-resources
Copy

Using getMonitor

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMonitor(args: GetMonitorArgs, opts?: InvokeOptions): Promise<GetMonitorResult>
function getMonitorOutput(args: GetMonitorOutputArgs, opts?: InvokeOptions): Output<GetMonitorResult>
Copy
def get_monitor(name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetMonitorResult
def get_monitor_output(name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetMonitorResult]
Copy
func LookupMonitor(ctx *Context, args *LookupMonitorArgs, opts ...InvokeOption) (*LookupMonitorResult, error)
func LookupMonitorOutput(ctx *Context, args *LookupMonitorOutputArgs, opts ...InvokeOption) LookupMonitorResultOutput
Copy

> Note: This function is named LookupMonitor in the Go SDK.

public static class GetMonitor 
{
    public static Task<GetMonitorResult> InvokeAsync(GetMonitorArgs args, InvokeOptions? opts = null)
    public static Output<GetMonitorResult> Invoke(GetMonitorInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMonitorResult> getMonitor(GetMonitorArgs args, InvokeOptions options)
public static Output<GetMonitorResult> getMonitor(GetMonitorArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:dynatrace/getMonitor:getMonitor
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the Dynatrace monitor.
ResourceGroupName This property is required. string
The name of the Resource Group where the Dynatrace monitor should exist.
Name This property is required. string
Name of the Dynatrace monitor.
ResourceGroupName This property is required. string
The name of the Resource Group where the Dynatrace monitor should exist.
name This property is required. String
Name of the Dynatrace monitor.
resourceGroupName This property is required. String
The name of the Resource Group where the Dynatrace monitor should exist.
name This property is required. string
Name of the Dynatrace monitor.
resourceGroupName This property is required. string
The name of the Resource Group where the Dynatrace monitor should exist.
name This property is required. str
Name of the Dynatrace monitor.
resource_group_name This property is required. str
The name of the Resource Group where the Dynatrace monitor should exist.
name This property is required. String
Name of the Dynatrace monitor.
resourceGroupName This property is required. String
The name of the Resource Group where the Dynatrace monitor should exist.

getMonitor Result

The following output properties are available:

EnvironmentProperties List<GetMonitorEnvironmentProperty>
Id string
The provider-assigned unique ID for this managed resource.
Identities List<GetMonitorIdentity>
The kind of managed identity assigned to this resource. A identity block as defined below.
Location string
The Azure Region where the Dynatrace monitor should exist.
MarketplaceSubscription string
Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
MonitoringEnabled bool
Flag specifying if the resource monitoring is enabled or disabled.
Name string
Plans List<GetMonitorPlan>
Plan id as published by Dynatrace.
ResourceGroupName string
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
Users List<GetMonitorUser>
User's information. A user block as defined below.
EnvironmentProperties []GetMonitorEnvironmentProperty
Id string
The provider-assigned unique ID for this managed resource.
Identities []GetMonitorIdentity
The kind of managed identity assigned to this resource. A identity block as defined below.
Location string
The Azure Region where the Dynatrace monitor should exist.
MarketplaceSubscription string
Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
MonitoringEnabled bool
Flag specifying if the resource monitoring is enabled or disabled.
Name string
Plans []GetMonitorPlan
Plan id as published by Dynatrace.
ResourceGroupName string
Tags map[string]string
A mapping of tags to assign to the resource.
Users []GetMonitorUser
User's information. A user block as defined below.
environmentProperties List<GetMonitorEnvironmentProperty>
id String
The provider-assigned unique ID for this managed resource.
identities List<GetMonitorIdentity>
The kind of managed identity assigned to this resource. A identity block as defined below.
location String
The Azure Region where the Dynatrace monitor should exist.
marketplaceSubscription String
Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
monitoringEnabled Boolean
Flag specifying if the resource monitoring is enabled or disabled.
name String
plans List<GetMonitorPlan>
Plan id as published by Dynatrace.
resourceGroupName String
tags Map<String,String>
A mapping of tags to assign to the resource.
users List<GetMonitorUser>
User's information. A user block as defined below.
environmentProperties GetMonitorEnvironmentProperty[]
id string
The provider-assigned unique ID for this managed resource.
identities GetMonitorIdentity[]
The kind of managed identity assigned to this resource. A identity block as defined below.
location string
The Azure Region where the Dynatrace monitor should exist.
marketplaceSubscription string
Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
monitoringEnabled boolean
Flag specifying if the resource monitoring is enabled or disabled.
name string
plans GetMonitorPlan[]
Plan id as published by Dynatrace.
resourceGroupName string
tags {[key: string]: string}
A mapping of tags to assign to the resource.
users GetMonitorUser[]
User's information. A user block as defined below.
environment_properties Sequence[GetMonitorEnvironmentProperty]
id str
The provider-assigned unique ID for this managed resource.
identities Sequence[GetMonitorIdentity]
The kind of managed identity assigned to this resource. A identity block as defined below.
location str
The Azure Region where the Dynatrace monitor should exist.
marketplace_subscription str
Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
monitoring_enabled bool
Flag specifying if the resource monitoring is enabled or disabled.
name str
plans Sequence[GetMonitorPlan]
Plan id as published by Dynatrace.
resource_group_name str
tags Mapping[str, str]
A mapping of tags to assign to the resource.
users Sequence[GetMonitorUser]
User's information. A user block as defined below.
environmentProperties List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
identities List<Property Map>
The kind of managed identity assigned to this resource. A identity block as defined below.
location String
The Azure Region where the Dynatrace monitor should exist.
marketplaceSubscription String
Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
monitoringEnabled Boolean
Flag specifying if the resource monitoring is enabled or disabled.
name String
plans List<Property Map>
Plan id as published by Dynatrace.
resourceGroupName String
tags Map<String>
A mapping of tags to assign to the resource.
users List<Property Map>
User's information. A user block as defined below.

Supporting Types

GetMonitorEnvironmentProperty

environmentInfos This property is required. List<Property Map>

GetMonitorEnvironmentPropertyEnvironmentInfo

EnvironmentId This property is required. string
EnvironmentId This property is required. string
environmentId This property is required. String
environmentId This property is required. string
environment_id This property is required. str
environmentId This property is required. String

GetMonitorIdentity

PrincipalId This property is required. string
TenantId This property is required. string
Type This property is required. string
The type of identity used for the resource.
PrincipalId This property is required. string
TenantId This property is required. string
Type This property is required. string
The type of identity used for the resource.
principalId This property is required. String
tenantId This property is required. String
type This property is required. String
The type of identity used for the resource.
principalId This property is required. string
tenantId This property is required. string
type This property is required. string
The type of identity used for the resource.
principal_id This property is required. str
tenant_id This property is required. str
type This property is required. str
The type of identity used for the resource.
principalId This property is required. String
tenantId This property is required. String
type This property is required. String
The type of identity used for the resource.

GetMonitorPlan

BillingCycle This property is required. string
Different billing cycles.
EffectiveDate This property is required. string
Date when plan was applied.
Plan This property is required. string
Plan id as published by Dynatrace.
UsageType This property is required. string
Different usage type.
BillingCycle This property is required. string
Different billing cycles.
EffectiveDate This property is required. string
Date when plan was applied.
Plan This property is required. string
Plan id as published by Dynatrace.
UsageType This property is required. string
Different usage type.
billingCycle This property is required. String
Different billing cycles.
effectiveDate This property is required. String
Date when plan was applied.
plan This property is required. String
Plan id as published by Dynatrace.
usageType This property is required. String
Different usage type.
billingCycle This property is required. string
Different billing cycles.
effectiveDate This property is required. string
Date when plan was applied.
plan This property is required. string
Plan id as published by Dynatrace.
usageType This property is required. string
Different usage type.
billing_cycle This property is required. str
Different billing cycles.
effective_date This property is required. str
Date when plan was applied.
plan This property is required. str
Plan id as published by Dynatrace.
usage_type This property is required. str
Different usage type.
billingCycle This property is required. String
Different billing cycles.
effectiveDate This property is required. String
Date when plan was applied.
plan This property is required. String
Plan id as published by Dynatrace.
usageType This property is required. String
Different usage type.

GetMonitorUser

Country This property is required. string
Country of the user.
Email This property is required. string
Email of the user used by Dynatrace for contacting them if needed.
FirstName This property is required. string
First name of the user.
LastName This property is required. string
Last name of the user.
PhoneNumber This property is required. string
phone number of the user by Dynatrace for contacting them if needed.
Country This property is required. string
Country of the user.
Email This property is required. string
Email of the user used by Dynatrace for contacting them if needed.
FirstName This property is required. string
First name of the user.
LastName This property is required. string
Last name of the user.
PhoneNumber This property is required. string
phone number of the user by Dynatrace for contacting them if needed.
country This property is required. String
Country of the user.
email This property is required. String
Email of the user used by Dynatrace for contacting them if needed.
firstName This property is required. String
First name of the user.
lastName This property is required. String
Last name of the user.
phoneNumber This property is required. String
phone number of the user by Dynatrace for contacting them if needed.
country This property is required. string
Country of the user.
email This property is required. string
Email of the user used by Dynatrace for contacting them if needed.
firstName This property is required. string
First name of the user.
lastName This property is required. string
Last name of the user.
phoneNumber This property is required. string
phone number of the user by Dynatrace for contacting them if needed.
country This property is required. str
Country of the user.
email This property is required. str
Email of the user used by Dynatrace for contacting them if needed.
first_name This property is required. str
First name of the user.
last_name This property is required. str
Last name of the user.
phone_number This property is required. str
phone number of the user by Dynatrace for contacting them if needed.
country This property is required. String
Country of the user.
email This property is required. String
Email of the user used by Dynatrace for contacting them if needed.
firstName This property is required. String
First name of the user.
lastName This property is required. String
Last name of the user.
phoneNumber This property is required. String
phone number of the user by Dynatrace for contacting them if needed.

Package Details

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

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi