We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.dynatrace.getMonitor
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",
});
import pulumi
import pulumi_azure as azure
example = azure.dynatrace.get_monitor(name="example-dynatracemonitor",
resource_group_name="example-resources")
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
})
}
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",
});
});
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());
}
}
variables:
example:
fn::invoke:
function: azure:dynatrace:getMonitor
arguments:
name: example-dynatracemonitor
resourceGroupName: example-resources
API Providers
This data source uses the following Azure API Providers:
Dynatrace.Observability
- 2023-04-27
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>
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]
func LookupMonitor(ctx *Context, args *LookupMonitorArgs, opts ...InvokeOption) (*LookupMonitorResult, error)
func LookupMonitorOutput(ctx *Context, args *LookupMonitorOutputArgs, opts ...InvokeOption) LookupMonitorResultOutput
> 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)
}
public static CompletableFuture<GetMonitorResult> getMonitor(GetMonitorArgs args, InvokeOptions options)
public static Output<GetMonitorResult> getMonitor(GetMonitorArgs args, InvokeOptions options)
fn::invoke:
function: azure:dynatrace/getMonitor:getMonitor
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name of the Dynatrace monitor.
- Resource
Group stringName - The name of the Resource Group where the Dynatrace monitor should exist.
- Name string
- Name of the Dynatrace monitor.
- Resource
Group stringName - The name of the Resource Group where the Dynatrace monitor should exist.
- name String
- Name of the Dynatrace monitor.
- resource
Group StringName - The name of the Resource Group where the Dynatrace monitor should exist.
- name string
- Name of the Dynatrace monitor.
- resource
Group stringName - The name of the Resource Group where the Dynatrace monitor should exist.
- name str
- Name of the Dynatrace monitor.
- resource_
group_ strname - The name of the Resource Group where the Dynatrace monitor should exist.
- name String
- Name of the Dynatrace monitor.
- resource
Group StringName - The name of the Resource Group where the Dynatrace monitor should exist.
getMonitor Result
The following output properties are available:
- Environment
Properties List<GetMonitor Environment Property> - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Monitor Identity> - 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.
- Marketplace
Subscription string - 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 string
- Plans
List<Get
Monitor Plan> - Plan id as published by Dynatrace.
- Resource
Group stringName - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Users
List<Get
Monitor User> - User's information. A
user
block as defined below.
- Environment
Properties []GetMonitor Environment Property - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Monitor Identity - 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.
- Marketplace
Subscription string - 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 string
- Plans
[]Get
Monitor Plan - Plan id as published by Dynatrace.
- Resource
Group stringName - map[string]string
- A mapping of tags to assign to the resource.
- Users
[]Get
Monitor User - User's information. A
user
block as defined below.
- environment
Properties List<GetMonitor Environment Property> - id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Monitor Identity> - 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.
- marketplace
Subscription String - 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 Boolean - Flag specifying if the resource monitoring is enabled or disabled.
- name String
- plans
List<Get
Monitor Plan> - Plan id as published by Dynatrace.
- resource
Group StringName - Map<String,String>
- A mapping of tags to assign to the resource.
- users
List<Get
Monitor User> - User's information. A
user
block as defined below.
- environment
Properties GetMonitor Environment Property[] - id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Monitor Identity[] - 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.
- marketplace
Subscription string - 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 boolean - Flag specifying if the resource monitoring is enabled or disabled.
- name string
- plans
Get
Monitor Plan[] - Plan id as published by Dynatrace.
- resource
Group stringName - {[key: string]: string}
- A mapping of tags to assign to the resource.
- users
Get
Monitor User[] - User's information. A
user
block as defined below.
- environment_
properties Sequence[GetMonitor Environment Property] - id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Monitor Identity] - 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[Get
Monitor Plan] - Plan id as published by Dynatrace.
- resource_
group_ strname - Mapping[str, str]
- A mapping of tags to assign to the resource.
- users
Sequence[Get
Monitor User] - User's information. A
user
block as defined below.
- environment
Properties 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.
- marketplace
Subscription String - 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 Boolean - Flag specifying if the resource monitoring is enabled or disabled.
- name String
- plans List<Property Map>
- Plan id as published by Dynatrace.
- resource
Group StringName - 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
GetMonitorEnvironmentPropertyEnvironmentInfo
- Environment
Id string
- Environment
Id string
- environment
Id String
- environment
Id string
- environment_
id str
- environment
Id String
GetMonitorIdentity
- Principal
Id string - Tenant
Id string - Type string
- The type of identity used for the resource.
- Principal
Id string - Tenant
Id string - Type string
- The type of identity used for the resource.
- principal
Id String - tenant
Id String - type String
- The type of identity used for the resource.
- principal
Id string - tenant
Id string - type string
- The type of identity used for the resource.
- principal_
id str - tenant_
id str - type str
- The type of identity used for the resource.
- principal
Id String - tenant
Id String - type String
- The type of identity used for the resource.
GetMonitorPlan
- Billing
Cycle string - Different billing cycles.
- Effective
Date string - Date when plan was applied.
- Plan string
- Plan id as published by Dynatrace.
- Usage
Type string - Different usage type.
- Billing
Cycle string - Different billing cycles.
- Effective
Date string - Date when plan was applied.
- Plan string
- Plan id as published by Dynatrace.
- Usage
Type string - Different usage type.
- billing
Cycle String - Different billing cycles.
- effective
Date String - Date when plan was applied.
- plan String
- Plan id as published by Dynatrace.
- usage
Type String - Different usage type.
- billing
Cycle string - Different billing cycles.
- effective
Date string - Date when plan was applied.
- plan string
- Plan id as published by Dynatrace.
- usage
Type string - Different usage type.
- billing_
cycle str - Different billing cycles.
- effective_
date str - Date when plan was applied.
- plan str
- Plan id as published by Dynatrace.
- usage_
type str - Different usage type.
- billing
Cycle String - Different billing cycles.
- effective
Date String - Date when plan was applied.
- plan String
- Plan id as published by Dynatrace.
- usage
Type String - Different usage type.
GetMonitorUser
- Country string
- Country of the user.
- Email string
- Email of the user used by Dynatrace for contacting them if needed.
- First
Name string - First name of the user.
- Last
Name string - Last name of the user.
- Phone
Number string - phone number of the user by Dynatrace for contacting them if needed.
- Country string
- Country of the user.
- Email string
- Email of the user used by Dynatrace for contacting them if needed.
- First
Name string - First name of the user.
- Last
Name string - Last name of the user.
- Phone
Number string - phone number of the user by Dynatrace for contacting them if needed.
- country String
- Country of the user.
- email String
- Email of the user used by Dynatrace for contacting them if needed.
- first
Name String - First name of the user.
- last
Name String - Last name of the user.
- phone
Number String - phone number of the user by Dynatrace for contacting them if needed.
- country string
- Country of the user.
- email string
- Email of the user used by Dynatrace for contacting them if needed.
- first
Name string - First name of the user.
- last
Name string - Last name of the user.
- phone
Number string - phone number of the user by Dynatrace for contacting them if needed.
- country str
- Country of the user.
- email str
- Email of the user used by Dynatrace for contacting them if needed.
- first_
name str - First name of the user.
- last_
name str - Last name of the user.
- phone_
number str - phone number of the user by Dynatrace for contacting them if needed.
- country String
- Country of the user.
- email String
- Email of the user used by Dynatrace for contacting them if needed.
- first
Name String - First name of the user.
- last
Name String - Last name of the user.
- phone
Number 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.