We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.dynatrace.getMonitor
Explore with Pulumi AI
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
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 dictionaryThe following arguments are supported:
- Name string
- Name of the Dynatrace monitor.
- ResourceGroup stringName 
- The name of the Resource Group where the Dynatrace monitor should exist.
- Name string
- Name of the Dynatrace monitor.
- ResourceGroup stringName 
- The name of the Resource Group where the Dynatrace monitor should exist.
- name String
- Name of the Dynatrace monitor.
- resourceGroup StringName 
- The name of the Resource Group where the Dynatrace monitor should exist.
- name string
- Name of the Dynatrace monitor.
- resourceGroup 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.
- resourceGroup StringName 
- The name of the Resource Group where the Dynatrace monitor should exist.
getMonitor Result
The following output properties are available:
- EnvironmentProperties List<GetMonitor Environment Property> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<GetMonitor Identity> 
- The kind of managed identity assigned to this resource. A identityblock 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<GetMonitor Plan> 
- Plan id as published by Dynatrace.
- ResourceGroup stringName 
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Users
List<GetMonitor User> 
- User's information. A userblock as defined below.
- EnvironmentProperties []GetMonitor Environment Property 
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]GetMonitor Identity 
- The kind of managed identity assigned to this resource. A identityblock 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
[]GetMonitor Plan 
- Plan id as published by Dynatrace.
- ResourceGroup stringName 
- map[string]string
- A mapping of tags to assign to the resource.
- Users
[]GetMonitor User 
- User's information. A userblock as defined below.
- environmentProperties List<GetMonitor Environment Property> 
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<GetMonitor Identity> 
- The kind of managed identity assigned to this resource. A identityblock 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<GetMonitor Plan> 
- Plan id as published by Dynatrace.
- resourceGroup StringName 
- Map<String,String>
- A mapping of tags to assign to the resource.
- users
List<GetMonitor User> 
- User's information. A userblock as defined below.
- environmentProperties GetMonitor Environment Property[] 
- id string
- The provider-assigned unique ID for this managed resource.
- identities
GetMonitor Identity[] 
- The kind of managed identity assigned to this resource. A identityblock 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
GetMonitor Plan[] 
- Plan id as published by Dynatrace.
- resourceGroup stringName 
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- users
GetMonitor User[] 
- User's information. A userblock as defined below.
- environment_properties Sequence[GetMonitor Environment Property] 
- id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[GetMonitor Identity] 
- The kind of managed identity assigned to this resource. A identityblock 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[GetMonitor Plan] 
- Plan id as published by Dynatrace.
- resource_group_ strname 
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- users
Sequence[GetMonitor User] 
- User's information. A userblock 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 identityblock 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.
- resourceGroup StringName 
- Map<String>
- A mapping of tags to assign to the resource.
- users List<Property Map>
- User's information. A userblock as defined below.
Supporting Types
GetMonitorEnvironmentProperty   
GetMonitorEnvironmentPropertyEnvironmentInfo     
- EnvironmentId string
- EnvironmentId string
- environmentId String
- environmentId string
- environment_id str
- environmentId String
GetMonitorIdentity  
- PrincipalId string
- TenantId string
- Type string
- The type of identity used for the resource.
- PrincipalId string
- TenantId string
- Type string
- The type of identity used for the resource.
- principalId String
- tenantId String
- type String
- The type of identity used for the resource.
- principalId string
- tenantId 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.
- principalId String
- tenantId String
- type String
- The type of identity used for the resource.
GetMonitorPlan  
- BillingCycle string
- Different billing cycles.
- EffectiveDate string
- Date when plan was applied.
- Plan string
- Plan id as published by Dynatrace.
- UsageType string
- Different usage type.
- BillingCycle string
- Different billing cycles.
- EffectiveDate string
- Date when plan was applied.
- Plan string
- Plan id as published by Dynatrace.
- UsageType string
- Different usage type.
- billingCycle String
- Different billing cycles.
- effectiveDate String
- Date when plan was applied.
- plan String
- Plan id as published by Dynatrace.
- usageType String
- Different usage type.
- billingCycle string
- Different billing cycles.
- effectiveDate string
- Date when plan was applied.
- plan string
- Plan id as published by Dynatrace.
- usageType 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.
- billingCycle String
- Different billing cycles.
- effectiveDate String
- Date when plan was applied.
- plan String
- Plan id as published by Dynatrace.
- usageType 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.
- FirstName string
- First name of the user.
- LastName string
- Last name of the user.
- PhoneNumber 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.
- FirstName string
- First name of the user.
- LastName string
- Last name of the user.
- PhoneNumber 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.
- firstName String
- First name of the user.
- lastName String
- Last name of the user.
- phoneNumber 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.
- firstName string
- First name of the user.
- lastName string
- Last name of the user.
- phoneNumber 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.
- firstName String
- First name of the user.
- lastName String
- Last name of the user.
- phoneNumber 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 azurermTerraform Provider.