We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to access the properties of a LogToMetricAction scheduled query rule.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Monitoring.GetScheduledQueryRulesLog.InvokeAsync(new Azure.Monitoring.GetScheduledQueryRulesLogArgs
{
ResourceGroupName = "example-rg",
Name = "tfex-queryrule",
}));
this.QueryRuleId = example.Apply(example => example.Id);
}
[Output("queryRuleId")]
public Output<string> QueryRuleId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/monitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := monitoring.LookupScheduledQueryRulesLog(ctx, &monitoring.LookupScheduledQueryRulesLogArgs{
ResourceGroupName: "example-rg",
Name: "tfex-queryrule",
}, nil)
if err != nil {
return err
}
ctx.Export("queryRuleId", example.Id)
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.monitoring.getScheduledQueryRulesLog({
resourceGroupName: "example-rg",
name: "tfex-queryrule",
});
export const queryRuleId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.monitoring.get_scheduled_query_rules_log(resource_group_name="example-rg",
name="tfex-queryrule")
pulumi.export("queryRuleId", example.id)
Example coming soon!
Using getScheduledQueryRulesLog
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 getScheduledQueryRulesLog(args: GetScheduledQueryRulesLogArgs, opts?: InvokeOptions): Promise<GetScheduledQueryRulesLogResult>
function getScheduledQueryRulesLogOutput(args: GetScheduledQueryRulesLogOutputArgs, opts?: InvokeOptions): Output<GetScheduledQueryRulesLogResult>def get_scheduled_query_rules_log(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduledQueryRulesLogResult
def get_scheduled_query_rules_log_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetScheduledQueryRulesLogResult]func LookupScheduledQueryRulesLog(ctx *Context, args *LookupScheduledQueryRulesLogArgs, opts ...InvokeOption) (*LookupScheduledQueryRulesLogResult, error)
func LookupScheduledQueryRulesLogOutput(ctx *Context, args *LookupScheduledQueryRulesLogOutputArgs, opts ...InvokeOption) LookupScheduledQueryRulesLogResultOutput> Note: This function is named LookupScheduledQueryRulesLog in the Go SDK.
public static class GetScheduledQueryRulesLog
{
public static Task<GetScheduledQueryRulesLogResult> InvokeAsync(GetScheduledQueryRulesLogArgs args, InvokeOptions? opts = null)
public static Output<GetScheduledQueryRulesLogResult> Invoke(GetScheduledQueryRulesLogInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetScheduledQueryRulesLogResult> getScheduledQueryRulesLog(GetScheduledQueryRulesLogArgs args, InvokeOptions options)
public static Output<GetScheduledQueryRulesLogResult> getScheduledQueryRulesLog(GetScheduledQueryRulesLogArgs args, InvokeOptions options)
fn::invoke:
function: azure:monitoring/getScheduledQueryRulesLog:getScheduledQueryRulesLog
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Specifies the name of the scheduled query rule.
- Resource
Group stringName - Specifies the name of the resource group where the scheduled query rule is located.
- Name string
- Specifies the name of the scheduled query rule.
- Resource
Group stringName - Specifies the name of the resource group where the scheduled query rule is located.
- name String
- Specifies the name of the scheduled query rule.
- resource
Group StringName - Specifies the name of the resource group where the scheduled query rule is located.
- name string
- Specifies the name of the scheduled query rule.
- resource
Group stringName - Specifies the name of the resource group where the scheduled query rule is located.
- name str
- Specifies the name of the scheduled query rule.
- resource_
group_ strname - Specifies the name of the resource group where the scheduled query rule is located.
- name String
- Specifies the name of the scheduled query rule.
- resource
Group StringName - Specifies the name of the resource group where the scheduled query rule is located.
getScheduledQueryRulesLog Result
The following output properties are available:
- List<string>
- Criterias
List<Get
Scheduled Query Rules Log Criteria> - A
criteriablock as defined below. - Data
Source stringId - The resource URI over which log search query is to be run.
- Description string
- The description of the scheduled query rule.
- Enabled bool
- Whether this scheduled query rule is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Name of the dimension.
- Resource
Group stringName - Dictionary<string, string>
- []string
- Criterias
[]Get
Scheduled Query Rules Log Criteria - A
criteriablock as defined below. - Data
Source stringId - The resource URI over which log search query is to be run.
- Description string
- The description of the scheduled query rule.
- Enabled bool
- Whether this scheduled query rule is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Name of the dimension.
- Resource
Group stringName - map[string]string
- List<String>
- criterias
List<Get
Scheduled Query Rules Log Criteria> - A
criteriablock as defined below. - data
Source StringId - The resource URI over which log search query is to be run.
- description String
- The description of the scheduled query rule.
- enabled Boolean
- Whether this scheduled query rule is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- Name of the dimension.
- resource
Group StringName - Map<String,String>
- string[]
- criterias
Get
Scheduled Query Rules Log Criteria[] - A
criteriablock as defined below. - data
Source stringId - The resource URI over which log search query is to be run.
- description string
- The description of the scheduled query rule.
- enabled boolean
- Whether this scheduled query rule is enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- Name of the dimension.
- resource
Group stringName - {[key: string]: string}
- Sequence[str]
- criterias
Sequence[Get
Scheduled Query Rules Log Criteria] - A
criteriablock as defined below. - data_
source_ strid - The resource URI over which log search query is to be run.
- description str
- The description of the scheduled query rule.
- enabled bool
- Whether this scheduled query rule is enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- name str
- Name of the dimension.
- resource_
group_ strname - Mapping[str, str]
- List<String>
- criterias List<Property Map>
- A
criteriablock as defined below. - data
Source StringId - The resource URI over which log search query is to be run.
- description String
- The description of the scheduled query rule.
- enabled Boolean
- Whether this scheduled query rule is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- Name of the dimension.
- resource
Group StringName - Map<String>
Supporting Types
GetScheduledQueryRulesLogCriteria
- Dimensions
List<Get
Scheduled Query Rules Log Criteria Dimension> - A
dimensionblock as defined below. - Metric
Name string - Name of the metric.
- Dimensions
[]Get
Scheduled Query Rules Log Criteria Dimension - A
dimensionblock as defined below. - Metric
Name string - Name of the metric.
- dimensions
List<Get
Scheduled Query Rules Log Criteria Dimension> - A
dimensionblock as defined below. - metric
Name String - Name of the metric.
- dimensions
Get
Scheduled Query Rules Log Criteria Dimension[] - A
dimensionblock as defined below. - metric
Name string - Name of the metric.
- dimensions
Sequence[Get
Scheduled Query Rules Log Criteria Dimension] - A
dimensionblock as defined below. - metric_
name str - Name of the metric.
- dimensions List<Property Map>
- A
dimensionblock as defined below. - metric
Name String - Name of the metric.
GetScheduledQueryRulesLogCriteriaDimension
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
