1. Packages
  2. Azure Native
  3. API Docs
  4. monitor
  5. getActivityLogAlert
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.monitor.getActivityLogAlert

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Get an Activity Log Alert rule.

Uses Azure REST API version 2020-10-01.

Using getActivityLogAlert

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 getActivityLogAlert(args: GetActivityLogAlertArgs, opts?: InvokeOptions): Promise<GetActivityLogAlertResult>
function getActivityLogAlertOutput(args: GetActivityLogAlertOutputArgs, opts?: InvokeOptions): Output<GetActivityLogAlertResult>
Copy
def get_activity_log_alert(activity_log_alert_name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetActivityLogAlertResult
def get_activity_log_alert_output(activity_log_alert_name: Optional[pulumi.Input[str]] = None,
                           resource_group_name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetActivityLogAlertResult]
Copy
func LookupActivityLogAlert(ctx *Context, args *LookupActivityLogAlertArgs, opts ...InvokeOption) (*LookupActivityLogAlertResult, error)
func LookupActivityLogAlertOutput(ctx *Context, args *LookupActivityLogAlertOutputArgs, opts ...InvokeOption) LookupActivityLogAlertResultOutput
Copy

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

public static class GetActivityLogAlert 
{
    public static Task<GetActivityLogAlertResult> InvokeAsync(GetActivityLogAlertArgs args, InvokeOptions? opts = null)
    public static Output<GetActivityLogAlertResult> Invoke(GetActivityLogAlertInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetActivityLogAlertResult> getActivityLogAlert(GetActivityLogAlertArgs args, InvokeOptions options)
public static Output<GetActivityLogAlertResult> getActivityLogAlert(GetActivityLogAlertArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:monitor:getActivityLogAlert
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ActivityLogAlertName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Activity Log Alert rule.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ActivityLogAlertName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Activity Log Alert rule.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
activityLogAlertName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Activity Log Alert rule.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
activityLogAlertName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Activity Log Alert rule.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
activity_log_alert_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Activity Log Alert rule.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
activityLogAlertName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Activity Log Alert rule.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.

getActivityLogAlert Result

The following output properties are available:

Actions Pulumi.AzureNative.Monitor.Outputs.ActionListResponse
The actions that will activate when the condition is met.
AzureApiVersion string
The Azure API version of the resource.
Condition Pulumi.AzureNative.Monitor.Outputs.AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
Id string
The resource Id.
Name string
The name of the resource.
Scopes List<string>
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
Type string
The type of the resource.
Description string
A description of this Activity Log Alert rule.
Enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
Location string
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
Tags Dictionary<string, string>
The tags of the resource.
Actions ActionListResponse
The actions that will activate when the condition is met.
AzureApiVersion string
The Azure API version of the resource.
Condition AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
Id string
The resource Id.
Name string
The name of the resource.
Scopes []string
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
Type string
The type of the resource.
Description string
A description of this Activity Log Alert rule.
Enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
Location string
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
Tags map[string]string
The tags of the resource.
actions ActionListResponse
The actions that will activate when the condition is met.
azureApiVersion String
The Azure API version of the resource.
condition AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
id String
The resource Id.
name String
The name of the resource.
scopes List<String>
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
type String
The type of the resource.
description String
A description of this Activity Log Alert rule.
enabled Boolean
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location String
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
tags Map<String,String>
The tags of the resource.
actions ActionListResponse
The actions that will activate when the condition is met.
azureApiVersion string
The Azure API version of the resource.
condition AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
id string
The resource Id.
name string
The name of the resource.
scopes string[]
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
type string
The type of the resource.
description string
A description of this Activity Log Alert rule.
enabled boolean
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location string
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
tags {[key: string]: string}
The tags of the resource.
actions ActionListResponse
The actions that will activate when the condition is met.
azure_api_version str
The Azure API version of the resource.
condition AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
id str
The resource Id.
name str
The name of the resource.
scopes Sequence[str]
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
type str
The type of the resource.
description str
A description of this Activity Log Alert rule.
enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location str
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
tags Mapping[str, str]
The tags of the resource.
actions Property Map
The actions that will activate when the condition is met.
azureApiVersion String
The Azure API version of the resource.
condition Property Map
The condition that will cause this alert to activate.
id String
The resource Id.
name String
The name of the resource.
scopes List<String>
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
type String
The type of the resource.
description String
A description of this Activity Log Alert rule.
enabled Boolean
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location String
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
tags Map<String>
The tags of the resource.

Supporting Types

ActionGroupResponse

ActionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
WebhookProperties Dictionary<string, string>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
ActionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
WebhookProperties map[string]string
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. String
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties Map<String,String>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties {[key: string]: string}
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
action_group_id This property is required. str
The resource ID of the Action Group. This cannot be null or empty.
webhook_properties Mapping[str, str]
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. String
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties Map<String>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

ActionListResponse

ActionGroups []ActionGroupResponse
The list of the Action Groups.
actionGroups List<ActionGroupResponse>
The list of the Action Groups.
actionGroups ActionGroupResponse[]
The list of the Action Groups.
action_groups Sequence[ActionGroupResponse]
The list of the Action Groups.
actionGroups List<Property Map>
The list of the Action Groups.

AlertRuleAllOfConditionResponse

AllOf This property is required. List<Pulumi.AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionResponse>
The list of Activity Log Alert rule conditions.
AllOf This property is required. []AlertRuleAnyOfOrLeafConditionResponse
The list of Activity Log Alert rule conditions.
allOf This property is required. List<AlertRuleAnyOfOrLeafConditionResponse>
The list of Activity Log Alert rule conditions.
allOf This property is required. AlertRuleAnyOfOrLeafConditionResponse[]
The list of Activity Log Alert rule conditions.
all_of This property is required. Sequence[AlertRuleAnyOfOrLeafConditionResponse]
The list of Activity Log Alert rule conditions.
allOf This property is required. List<Property Map>
The list of Activity Log Alert rule conditions.

AlertRuleAnyOfOrLeafConditionResponse

AnyOf List<Pulumi.AzureNative.Monitor.Inputs.AlertRuleLeafConditionResponse>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
ContainsAny List<string>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
AnyOf []AlertRuleLeafConditionResponse
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
ContainsAny []string
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf List<AlertRuleLeafConditionResponse>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals_ String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf AlertRuleLeafConditionResponse[]
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny string[]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
any_of Sequence[AlertRuleLeafConditionResponse]
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
contains_any Sequence[str]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals str
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field str
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf List<Property Map>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.

AlertRuleLeafConditionResponse

ContainsAny List<string>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
ContainsAny []string
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals_ String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny string[]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
contains_any Sequence[str]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals str
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field str
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi