We recommend using Azure Native.
azure.monitoring.ActivityLogAlert
Explore with Pulumi AI
Manages an Activity Log Alert within Azure Monitor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const main = new azure.monitoring.ActionGroup("main", {
name: "example-actiongroup",
resourceGroupName: example.name,
shortName: "p0action",
webhookReceivers: [{
name: "callmyapi",
serviceUri: "http://example.com/alert",
}],
});
const toMonitor = new azure.storage.Account("to_monitor", {
name: "examplesa",
resourceGroupName: example.name,
location: example.location,
accountTier: "Standard",
accountReplicationType: "GRS",
});
const mainActivityLogAlert = new azure.monitoring.ActivityLogAlert("main", {
name: "example-activitylogalert",
resourceGroupName: example.name,
scopes: [example.id],
description: "This alert will monitor a specific storage account updates.",
criteria: {
resourceId: toMonitor.id,
operationName: "Microsoft.Storage/storageAccounts/write",
category: "Recommendation",
},
actions: [{
actionGroupId: main.id,
webhookProperties: {
from: "source",
},
}],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
main = azure.monitoring.ActionGroup("main",
name="example-actiongroup",
resource_group_name=example.name,
short_name="p0action",
webhook_receivers=[azure.monitoring.ActionGroupWebhookReceiverArgs(
name="callmyapi",
service_uri="http://example.com/alert",
)])
to_monitor = azure.storage.Account("to_monitor",
name="examplesa",
resource_group_name=example.name,
location=example.location,
account_tier="Standard",
account_replication_type="GRS")
main_activity_log_alert = azure.monitoring.ActivityLogAlert("main",
name="example-activitylogalert",
resource_group_name=example.name,
scopes=[example.id],
description="This alert will monitor a specific storage account updates.",
criteria=azure.monitoring.ActivityLogAlertCriteriaArgs(
resource_id=to_monitor.id,
operation_name="Microsoft.Storage/storageAccounts/write",
category="Recommendation",
),
actions=[azure.monitoring.ActivityLogAlertActionArgs(
action_group_id=main.id,
webhook_properties={
"from": "source",
},
)])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/monitoring"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
main, err := monitoring.NewActionGroup(ctx, "main", &monitoring.ActionGroupArgs{
Name: pulumi.String("example-actiongroup"),
ResourceGroupName: example.Name,
ShortName: pulumi.String("p0action"),
WebhookReceivers: monitoring.ActionGroupWebhookReceiverArray{
&monitoring.ActionGroupWebhookReceiverArgs{
Name: pulumi.String("callmyapi"),
ServiceUri: pulumi.String("http://example.com/alert"),
},
},
})
if err != nil {
return err
}
toMonitor, err := storage.NewAccount(ctx, "to_monitor", &storage.AccountArgs{
Name: pulumi.String("examplesa"),
ResourceGroupName: example.Name,
Location: example.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("GRS"),
})
if err != nil {
return err
}
_, err = monitoring.NewActivityLogAlert(ctx, "main", &monitoring.ActivityLogAlertArgs{
Name: pulumi.String("example-activitylogalert"),
ResourceGroupName: example.Name,
Scopes: pulumi.StringArray{
example.ID(),
},
Description: pulumi.String("This alert will monitor a specific storage account updates."),
Criteria: &monitoring.ActivityLogAlertCriteriaArgs{
ResourceId: toMonitor.ID(),
OperationName: pulumi.String("Microsoft.Storage/storageAccounts/write"),
Category: pulumi.String("Recommendation"),
},
Actions: monitoring.ActivityLogAlertActionArray{
&monitoring.ActivityLogAlertActionArgs{
ActionGroupId: main.ID(),
WebhookProperties: pulumi.StringMap{
"from": pulumi.String("source"),
},
},
},
})
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 = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var main = new Azure.Monitoring.ActionGroup("main", new()
{
Name = "example-actiongroup",
ResourceGroupName = example.Name,
ShortName = "p0action",
WebhookReceivers = new[]
{
new Azure.Monitoring.Inputs.ActionGroupWebhookReceiverArgs
{
Name = "callmyapi",
ServiceUri = "http://example.com/alert",
},
},
});
var toMonitor = new Azure.Storage.Account("to_monitor", new()
{
Name = "examplesa",
ResourceGroupName = example.Name,
Location = example.Location,
AccountTier = "Standard",
AccountReplicationType = "GRS",
});
var mainActivityLogAlert = new Azure.Monitoring.ActivityLogAlert("main", new()
{
Name = "example-activitylogalert",
ResourceGroupName = example.Name,
Scopes = new[]
{
example.Id,
},
Description = "This alert will monitor a specific storage account updates.",
Criteria = new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaArgs
{
ResourceId = toMonitor.Id,
OperationName = "Microsoft.Storage/storageAccounts/write",
Category = "Recommendation",
},
Actions = new[]
{
new Azure.Monitoring.Inputs.ActivityLogAlertActionArgs
{
ActionGroupId = main.Id,
WebhookProperties =
{
{ "from", "source" },
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.monitoring.ActionGroup;
import com.pulumi.azure.monitoring.ActionGroupArgs;
import com.pulumi.azure.monitoring.inputs.ActionGroupWebhookReceiverArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.monitoring.ActivityLogAlert;
import com.pulumi.azure.monitoring.ActivityLogAlertArgs;
import com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaArgs;
import com.pulumi.azure.monitoring.inputs.ActivityLogAlertActionArgs;
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) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var main = new ActionGroup("main", ActionGroupArgs.builder()
.name("example-actiongroup")
.resourceGroupName(example.name())
.shortName("p0action")
.webhookReceivers(ActionGroupWebhookReceiverArgs.builder()
.name("callmyapi")
.serviceUri("http://example.com/alert")
.build())
.build());
var toMonitor = new Account("toMonitor", AccountArgs.builder()
.name("examplesa")
.resourceGroupName(example.name())
.location(example.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var mainActivityLogAlert = new ActivityLogAlert("mainActivityLogAlert", ActivityLogAlertArgs.builder()
.name("example-activitylogalert")
.resourceGroupName(example.name())
.scopes(example.id())
.description("This alert will monitor a specific storage account updates.")
.criteria(ActivityLogAlertCriteriaArgs.builder()
.resourceId(toMonitor.id())
.operationName("Microsoft.Storage/storageAccounts/write")
.category("Recommendation")
.build())
.actions(ActivityLogAlertActionArgs.builder()
.actionGroupId(main.id())
.webhookProperties(Map.of("from", "source"))
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
main:
type: azure:monitoring:ActionGroup
properties:
name: example-actiongroup
resourceGroupName: ${example.name}
shortName: p0action
webhookReceivers:
- name: callmyapi
serviceUri: http://example.com/alert
toMonitor:
type: azure:storage:Account
name: to_monitor
properties:
name: examplesa
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountReplicationType: GRS
mainActivityLogAlert:
type: azure:monitoring:ActivityLogAlert
name: main
properties:
name: example-activitylogalert
resourceGroupName: ${example.name}
scopes:
- ${example.id}
description: This alert will monitor a specific storage account updates.
criteria:
resourceId: ${toMonitor.id}
operationName: Microsoft.Storage/storageAccounts/write
category: Recommendation
actions:
- actionGroupId: ${main.id}
webhookProperties:
from: source
Create ActivityLogAlert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ActivityLogAlert(name: string, args: ActivityLogAlertArgs, opts?: CustomResourceOptions);
@overload
def ActivityLogAlert(resource_name: str,
args: ActivityLogAlertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ActivityLogAlert(resource_name: str,
opts: Optional[ResourceOptions] = None,
criteria: Optional[ActivityLogAlertCriteriaArgs] = None,
resource_group_name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
actions: Optional[Sequence[ActivityLogAlertActionArgs]] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewActivityLogAlert(ctx *Context, name string, args ActivityLogAlertArgs, opts ...ResourceOption) (*ActivityLogAlert, error)
public ActivityLogAlert(string name, ActivityLogAlertArgs args, CustomResourceOptions? opts = null)
public ActivityLogAlert(String name, ActivityLogAlertArgs args)
public ActivityLogAlert(String name, ActivityLogAlertArgs args, CustomResourceOptions options)
type: azure:monitoring:ActivityLogAlert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ActivityLogAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ActivityLogAlertArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ActivityLogAlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ActivityLogAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ActivityLogAlertArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var activityLogAlertResource = new Azure.Monitoring.ActivityLogAlert("activityLogAlertResource", new()
{
Criteria = new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaArgs
{
Category = "string",
ResourceHealths = new[]
{
new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaResourceHealthArgs
{
Currents = new[]
{
"string",
},
Previouses = new[]
{
"string",
},
Reasons = new[]
{
"string",
},
},
},
RecommendationCategory = "string",
ResourceId = "string",
ResourceProvider = "string",
ResourceIds = new[]
{
"string",
},
RecommendationImpact = "string",
RecommendationType = "string",
ResourceGroup = "string",
ResourceGroups = new[]
{
"string",
},
Caller = "string",
Levels = new[]
{
"string",
},
Level = "string",
OperationName = "string",
ResourceProviders = new[]
{
"string",
},
ResourceType = "string",
ResourceTypes = new[]
{
"string",
},
ServiceHealths = new[]
{
new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaServiceHealthArgs
{
Events = new[]
{
"string",
},
Locations = new[]
{
"string",
},
Services = new[]
{
"string",
},
},
},
Status = "string",
Statuses = new[]
{
"string",
},
SubStatus = "string",
SubStatuses = new[]
{
"string",
},
},
ResourceGroupName = "string",
Scopes = new[]
{
"string",
},
Actions = new[]
{
new Azure.Monitoring.Inputs.ActivityLogAlertActionArgs
{
ActionGroupId = "string",
WebhookProperties =
{
{ "string", "string" },
},
},
},
Description = "string",
Enabled = false,
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := monitoring.NewActivityLogAlert(ctx, "activityLogAlertResource", &monitoring.ActivityLogAlertArgs{
Criteria: &monitoring.ActivityLogAlertCriteriaArgs{
Category: pulumi.String("string"),
ResourceHealths: monitoring.ActivityLogAlertCriteriaResourceHealthArray{
&monitoring.ActivityLogAlertCriteriaResourceHealthArgs{
Currents: pulumi.StringArray{
pulumi.String("string"),
},
Previouses: pulumi.StringArray{
pulumi.String("string"),
},
Reasons: pulumi.StringArray{
pulumi.String("string"),
},
},
},
RecommendationCategory: pulumi.String("string"),
ResourceId: pulumi.String("string"),
ResourceProvider: pulumi.String("string"),
ResourceIds: pulumi.StringArray{
pulumi.String("string"),
},
RecommendationImpact: pulumi.String("string"),
RecommendationType: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
ResourceGroups: pulumi.StringArray{
pulumi.String("string"),
},
Caller: pulumi.String("string"),
Levels: pulumi.StringArray{
pulumi.String("string"),
},
Level: pulumi.String("string"),
OperationName: pulumi.String("string"),
ResourceProviders: pulumi.StringArray{
pulumi.String("string"),
},
ResourceType: pulumi.String("string"),
ResourceTypes: pulumi.StringArray{
pulumi.String("string"),
},
ServiceHealths: monitoring.ActivityLogAlertCriteriaServiceHealthArray{
&monitoring.ActivityLogAlertCriteriaServiceHealthArgs{
Events: pulumi.StringArray{
pulumi.String("string"),
},
Locations: pulumi.StringArray{
pulumi.String("string"),
},
Services: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Status: pulumi.String("string"),
Statuses: pulumi.StringArray{
pulumi.String("string"),
},
SubStatus: pulumi.String("string"),
SubStatuses: pulumi.StringArray{
pulumi.String("string"),
},
},
ResourceGroupName: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
Actions: monitoring.ActivityLogAlertActionArray{
&monitoring.ActivityLogAlertActionArgs{
ActionGroupId: pulumi.String("string"),
WebhookProperties: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var activityLogAlertResource = new ActivityLogAlert("activityLogAlertResource", ActivityLogAlertArgs.builder()
.criteria(ActivityLogAlertCriteriaArgs.builder()
.category("string")
.resourceHealths(ActivityLogAlertCriteriaResourceHealthArgs.builder()
.currents("string")
.previouses("string")
.reasons("string")
.build())
.recommendationCategory("string")
.resourceId("string")
.resourceProvider("string")
.resourceIds("string")
.recommendationImpact("string")
.recommendationType("string")
.resourceGroup("string")
.resourceGroups("string")
.caller("string")
.levels("string")
.level("string")
.operationName("string")
.resourceProviders("string")
.resourceType("string")
.resourceTypes("string")
.serviceHealths(ActivityLogAlertCriteriaServiceHealthArgs.builder()
.events("string")
.locations("string")
.services("string")
.build())
.status("string")
.statuses("string")
.subStatus("string")
.subStatuses("string")
.build())
.resourceGroupName("string")
.scopes("string")
.actions(ActivityLogAlertActionArgs.builder()
.actionGroupId("string")
.webhookProperties(Map.of("string", "string"))
.build())
.description("string")
.enabled(false)
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
activity_log_alert_resource = azure.monitoring.ActivityLogAlert("activityLogAlertResource",
criteria=azure.monitoring.ActivityLogAlertCriteriaArgs(
category="string",
resource_healths=[azure.monitoring.ActivityLogAlertCriteriaResourceHealthArgs(
currents=["string"],
previouses=["string"],
reasons=["string"],
)],
recommendation_category="string",
resource_id="string",
resource_provider="string",
resource_ids=["string"],
recommendation_impact="string",
recommendation_type="string",
resource_group="string",
resource_groups=["string"],
caller="string",
levels=["string"],
level="string",
operation_name="string",
resource_providers=["string"],
resource_type="string",
resource_types=["string"],
service_healths=[azure.monitoring.ActivityLogAlertCriteriaServiceHealthArgs(
events=["string"],
locations=["string"],
services=["string"],
)],
status="string",
statuses=["string"],
sub_status="string",
sub_statuses=["string"],
),
resource_group_name="string",
scopes=["string"],
actions=[azure.monitoring.ActivityLogAlertActionArgs(
action_group_id="string",
webhook_properties={
"string": "string",
},
)],
description="string",
enabled=False,
location="string",
name="string",
tags={
"string": "string",
})
const activityLogAlertResource = new azure.monitoring.ActivityLogAlert("activityLogAlertResource", {
criteria: {
category: "string",
resourceHealths: [{
currents: ["string"],
previouses: ["string"],
reasons: ["string"],
}],
recommendationCategory: "string",
resourceId: "string",
resourceProvider: "string",
resourceIds: ["string"],
recommendationImpact: "string",
recommendationType: "string",
resourceGroup: "string",
resourceGroups: ["string"],
caller: "string",
levels: ["string"],
level: "string",
operationName: "string",
resourceProviders: ["string"],
resourceType: "string",
resourceTypes: ["string"],
serviceHealths: [{
events: ["string"],
locations: ["string"],
services: ["string"],
}],
status: "string",
statuses: ["string"],
subStatus: "string",
subStatuses: ["string"],
},
resourceGroupName: "string",
scopes: ["string"],
actions: [{
actionGroupId: "string",
webhookProperties: {
string: "string",
},
}],
description: "string",
enabled: false,
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure:monitoring:ActivityLogAlert
properties:
actions:
- actionGroupId: string
webhookProperties:
string: string
criteria:
caller: string
category: string
level: string
levels:
- string
operationName: string
recommendationCategory: string
recommendationImpact: string
recommendationType: string
resourceGroup: string
resourceGroups:
- string
resourceHealths:
- currents:
- string
previouses:
- string
reasons:
- string
resourceId: string
resourceIds:
- string
resourceProvider: string
resourceProviders:
- string
resourceType: string
resourceTypes:
- string
serviceHealths:
- events:
- string
locations:
- string
services:
- string
status: string
statuses:
- string
subStatus: string
subStatuses:
- string
description: string
enabled: false
location: string
name: string
resourceGroupName: string
scopes:
- string
tags:
string: string
ActivityLogAlert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ActivityLogAlert resource accepts the following input properties:
- Criteria
Activity
Log Alert Criteria - A
criteria
block as defined below. - Resource
Group stringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- Scopes List<string>
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- Actions
List<Activity
Log Alert Action> - One or more
action
blocks as defined below. - Description string
- The description of this activity log alert.
- Enabled bool
- Should this Activity Log Alert be enabled? Defaults to
true
. - Location string
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - Name string
- The name of the activity log alert. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Criteria
Activity
Log Alert Criteria Args - A
criteria
block as defined below. - Resource
Group stringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- Scopes []string
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- Actions
[]Activity
Log Alert Action Args - One or more
action
blocks as defined below. - Description string
- The description of this activity log alert.
- Enabled bool
- Should this Activity Log Alert be enabled? Defaults to
true
. - Location string
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - Name string
- The name of the activity log alert. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- criteria
Activity
Log Alert Criteria - A
criteria
block as defined below. - resource
Group StringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- scopes List<String>
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- actions
List<Activity
Log Alert Action> - One or more
action
blocks as defined below. - description String
- The description of this activity log alert.
- enabled Boolean
- Should this Activity Log Alert be enabled? Defaults to
true
. - location String
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - name String
- The name of the activity log alert. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- criteria
Activity
Log Alert Criteria - A
criteria
block as defined below. - resource
Group stringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- scopes string[]
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- actions
Activity
Log Alert Action[] - One or more
action
blocks as defined below. - description string
- The description of this activity log alert.
- enabled boolean
- Should this Activity Log Alert be enabled? Defaults to
true
. - location string
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - name string
- The name of the activity log alert. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- criteria
Activity
Log Alert Criteria Args - A
criteria
block as defined below. - resource_
group_ strname - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- scopes Sequence[str]
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- actions
Sequence[Activity
Log Alert Action Args] - One or more
action
blocks as defined below. - description str
- The description of this activity log alert.
- enabled bool
- Should this Activity Log Alert be enabled? Defaults to
true
. - location str
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - name str
- The name of the activity log alert. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- criteria Property Map
- A
criteria
block as defined below. - resource
Group StringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- scopes List<String>
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- actions List<Property Map>
- One or more
action
blocks as defined below. - description String
- The description of this activity log alert.
- enabled Boolean
- Should this Activity Log Alert be enabled? Defaults to
true
. - location String
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - name String
- The name of the activity log alert. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ActivityLogAlert resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ActivityLogAlert Resource
Get an existing ActivityLogAlert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ActivityLogAlertState, opts?: CustomResourceOptions): ActivityLogAlert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[ActivityLogAlertActionArgs]] = None,
criteria: Optional[ActivityLogAlertCriteriaArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None) -> ActivityLogAlert
func GetActivityLogAlert(ctx *Context, name string, id IDInput, state *ActivityLogAlertState, opts ...ResourceOption) (*ActivityLogAlert, error)
public static ActivityLogAlert Get(string name, Input<string> id, ActivityLogAlertState? state, CustomResourceOptions? opts = null)
public static ActivityLogAlert get(String name, Output<String> id, ActivityLogAlertState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Actions
List<Activity
Log Alert Action> - One or more
action
blocks as defined below. - Criteria
Activity
Log Alert Criteria - A
criteria
block as defined below. - Description string
- The description of this activity log alert.
- Enabled bool
- Should this Activity Log Alert be enabled? Defaults to
true
. - Location string
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - Name string
- The name of the activity log alert. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- Scopes List<string>
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Actions
[]Activity
Log Alert Action Args - One or more
action
blocks as defined below. - Criteria
Activity
Log Alert Criteria Args - A
criteria
block as defined below. - Description string
- The description of this activity log alert.
- Enabled bool
- Should this Activity Log Alert be enabled? Defaults to
true
. - Location string
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - Name string
- The name of the activity log alert. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- Scopes []string
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- map[string]string
- A mapping of tags to assign to the resource.
- actions
List<Activity
Log Alert Action> - One or more
action
blocks as defined below. - criteria
Activity
Log Alert Criteria - A
criteria
block as defined below. - description String
- The description of this activity log alert.
- enabled Boolean
- Should this Activity Log Alert be enabled? Defaults to
true
. - location String
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - name String
- The name of the activity log alert. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- scopes List<String>
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- Map<String,String>
- A mapping of tags to assign to the resource.
- actions
Activity
Log Alert Action[] - One or more
action
blocks as defined below. - criteria
Activity
Log Alert Criteria - A
criteria
block as defined below. - description string
- The description of this activity log alert.
- enabled boolean
- Should this Activity Log Alert be enabled? Defaults to
true
. - location string
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - name string
- The name of the activity log alert. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- scopes string[]
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- actions
Sequence[Activity
Log Alert Action Args] - One or more
action
blocks as defined below. - criteria
Activity
Log Alert Criteria Args - A
criteria
block as defined below. - description str
- The description of this activity log alert.
- enabled bool
- Should this Activity Log Alert be enabled? Defaults to
true
. - location str
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - name str
- The name of the activity log alert. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- scopes Sequence[str]
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- actions List<Property Map>
- One or more
action
blocks as defined below. - criteria Property Map
- A
criteria
block as defined below. - description String
- The description of this activity log alert.
- enabled Boolean
- Should this Activity Log Alert be enabled? Defaults to
true
. - location String
- The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created. Defaults to
global
. - name String
- The name of the activity log alert. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
- scopes List<String>
- The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
ActivityLogAlertAction, ActivityLogAlertActionArgs
- Action
Group stringId - The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroup
resource. - Webhook
Properties Dictionary<string, string> - The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
- Action
Group stringId - The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroup
resource. - Webhook
Properties map[string]string - The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
- action
Group StringId - The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroup
resource. - webhook
Properties Map<String,String> - The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
- action
Group stringId - The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroup
resource. - webhook
Properties {[key: string]: string} - The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
- action_
group_ strid - The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroup
resource. - webhook_
properties Mapping[str, str] - The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
- action
Group StringId - The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroup
resource. - webhook
Properties Map<String> - The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
ActivityLogAlertCriteria, ActivityLogAlertCriteriaArgs
- Category string
- The category of the operation. Possible values are
Administrative
,Autoscale
,Policy
,Recommendation
,ResourceHealth
,Security
andServiceHealth
. - Caller string
- The email address or Azure Active Directory identifier of the user who performed the operation.
- Level string
- The severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
. - Levels List<string>
A list of severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
.NOTE:
level
andlevels
are mutually exclusive.- Operation
Name string - The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>
. - Recommendation
Category string - The recommendation category of the event. Possible values are
Cost
,Reliability
,OperationalExcellence
,HighAvailability
andPerformance
. It is only allowed whencategory
isRecommendation
. - Recommendation
Impact string - The recommendation impact of the event. Possible values are
High
,Medium
andLow
. It is only allowed whencategory
isRecommendation
. - Recommendation
Type string - The recommendation type of the event. It is only allowed when
category
isRecommendation
. - Resource
Group string - The name of resource group monitored by the activity log alert.
- Resource
Groups List<string> A list of names of resource groups monitored by the activity log alert.
NOTE:
resource_group
andresource_groups
are mutually exclusive.- Resource
Healths List<ActivityLog Alert Criteria Resource Health> - A block to define fine grain resource health settings.
- Resource
Id string - The specific resource monitored by the activity log alert. It should be within one of the
scopes
. - Resource
Ids List<string> A list of specific resources monitored by the activity log alert. It should be within one of the
scopes
.NOTE:
resource_id
andresource_ids
are mutually exclusive.- Resource
Provider string - The name of the resource provider monitored by the activity log alert.
- Resource
Providers List<string> A list of names of resource providers monitored by the activity log alert.
NOTE:
resource_provider
andresource_providers
are mutually exclusive.- Resource
Type string - The resource type monitored by the activity log alert.
- Resource
Types List<string> A list of resource types monitored by the activity log alert.
NOTE:
resource_type
andresource_types
are mutually exclusive.- Service
Healths List<ActivityLog Alert Criteria Service Health> - A block to define fine grain service health settings.
- Status string
- The status of the event. For example,
Started
,Failed
, orSucceeded
. - Statuses List<string>
A list of status of the event. For example,
Started
,Failed
, orSucceeded
.NOTE:
status
andstatuses
are mutually exclusive.- Sub
Status string - The sub status of the event.
- Sub
Statuses List<string> A list of sub status of the event.
NOTE:
sub_status
andsub_statuses
are mutually exclusive.
- Category string
- The category of the operation. Possible values are
Administrative
,Autoscale
,Policy
,Recommendation
,ResourceHealth
,Security
andServiceHealth
. - Caller string
- The email address or Azure Active Directory identifier of the user who performed the operation.
- Level string
- The severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
. - Levels []string
A list of severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
.NOTE:
level
andlevels
are mutually exclusive.- Operation
Name string - The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>
. - Recommendation
Category string - The recommendation category of the event. Possible values are
Cost
,Reliability
,OperationalExcellence
,HighAvailability
andPerformance
. It is only allowed whencategory
isRecommendation
. - Recommendation
Impact string - The recommendation impact of the event. Possible values are
High
,Medium
andLow
. It is only allowed whencategory
isRecommendation
. - Recommendation
Type string - The recommendation type of the event. It is only allowed when
category
isRecommendation
. - Resource
Group string - The name of resource group monitored by the activity log alert.
- Resource
Groups []string A list of names of resource groups monitored by the activity log alert.
NOTE:
resource_group
andresource_groups
are mutually exclusive.- Resource
Healths []ActivityLog Alert Criteria Resource Health - A block to define fine grain resource health settings.
- Resource
Id string - The specific resource monitored by the activity log alert. It should be within one of the
scopes
. - Resource
Ids []string A list of specific resources monitored by the activity log alert. It should be within one of the
scopes
.NOTE:
resource_id
andresource_ids
are mutually exclusive.- Resource
Provider string - The name of the resource provider monitored by the activity log alert.
- Resource
Providers []string A list of names of resource providers monitored by the activity log alert.
NOTE:
resource_provider
andresource_providers
are mutually exclusive.- Resource
Type string - The resource type monitored by the activity log alert.
- Resource
Types []string A list of resource types monitored by the activity log alert.
NOTE:
resource_type
andresource_types
are mutually exclusive.- Service
Healths []ActivityLog Alert Criteria Service Health - A block to define fine grain service health settings.
- Status string
- The status of the event. For example,
Started
,Failed
, orSucceeded
. - Statuses []string
A list of status of the event. For example,
Started
,Failed
, orSucceeded
.NOTE:
status
andstatuses
are mutually exclusive.- Sub
Status string - The sub status of the event.
- Sub
Statuses []string A list of sub status of the event.
NOTE:
sub_status
andsub_statuses
are mutually exclusive.
- category String
- The category of the operation. Possible values are
Administrative
,Autoscale
,Policy
,Recommendation
,ResourceHealth
,Security
andServiceHealth
. - caller String
- The email address or Azure Active Directory identifier of the user who performed the operation.
- level String
- The severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
. - levels List<String>
A list of severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
.NOTE:
level
andlevels
are mutually exclusive.- operation
Name String - The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>
. - recommendation
Category String - The recommendation category of the event. Possible values are
Cost
,Reliability
,OperationalExcellence
,HighAvailability
andPerformance
. It is only allowed whencategory
isRecommendation
. - recommendation
Impact String - The recommendation impact of the event. Possible values are
High
,Medium
andLow
. It is only allowed whencategory
isRecommendation
. - recommendation
Type String - The recommendation type of the event. It is only allowed when
category
isRecommendation
. - resource
Group String - The name of resource group monitored by the activity log alert.
- resource
Groups List<String> A list of names of resource groups monitored by the activity log alert.
NOTE:
resource_group
andresource_groups
are mutually exclusive.- resource
Healths List<ActivityLog Alert Criteria Resource Health> - A block to define fine grain resource health settings.
- resource
Id String - The specific resource monitored by the activity log alert. It should be within one of the
scopes
. - resource
Ids List<String> A list of specific resources monitored by the activity log alert. It should be within one of the
scopes
.NOTE:
resource_id
andresource_ids
are mutually exclusive.- resource
Provider String - The name of the resource provider monitored by the activity log alert.
- resource
Providers List<String> A list of names of resource providers monitored by the activity log alert.
NOTE:
resource_provider
andresource_providers
are mutually exclusive.- resource
Type String - The resource type monitored by the activity log alert.
- resource
Types List<String> A list of resource types monitored by the activity log alert.
NOTE:
resource_type
andresource_types
are mutually exclusive.- service
Healths List<ActivityLog Alert Criteria Service Health> - A block to define fine grain service health settings.
- status String
- The status of the event. For example,
Started
,Failed
, orSucceeded
. - statuses List<String>
A list of status of the event. For example,
Started
,Failed
, orSucceeded
.NOTE:
status
andstatuses
are mutually exclusive.- sub
Status String - The sub status of the event.
- sub
Statuses List<String> A list of sub status of the event.
NOTE:
sub_status
andsub_statuses
are mutually exclusive.
- category string
- The category of the operation. Possible values are
Administrative
,Autoscale
,Policy
,Recommendation
,ResourceHealth
,Security
andServiceHealth
. - caller string
- The email address or Azure Active Directory identifier of the user who performed the operation.
- level string
- The severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
. - levels string[]
A list of severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
.NOTE:
level
andlevels
are mutually exclusive.- operation
Name string - The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>
. - recommendation
Category string - The recommendation category of the event. Possible values are
Cost
,Reliability
,OperationalExcellence
,HighAvailability
andPerformance
. It is only allowed whencategory
isRecommendation
. - recommendation
Impact string - The recommendation impact of the event. Possible values are
High
,Medium
andLow
. It is only allowed whencategory
isRecommendation
. - recommendation
Type string - The recommendation type of the event. It is only allowed when
category
isRecommendation
. - resource
Group string - The name of resource group monitored by the activity log alert.
- resource
Groups string[] A list of names of resource groups monitored by the activity log alert.
NOTE:
resource_group
andresource_groups
are mutually exclusive.- resource
Healths ActivityLog Alert Criteria Resource Health[] - A block to define fine grain resource health settings.
- resource
Id string - The specific resource monitored by the activity log alert. It should be within one of the
scopes
. - resource
Ids string[] A list of specific resources monitored by the activity log alert. It should be within one of the
scopes
.NOTE:
resource_id
andresource_ids
are mutually exclusive.- resource
Provider string - The name of the resource provider monitored by the activity log alert.
- resource
Providers string[] A list of names of resource providers monitored by the activity log alert.
NOTE:
resource_provider
andresource_providers
are mutually exclusive.- resource
Type string - The resource type monitored by the activity log alert.
- resource
Types string[] A list of resource types monitored by the activity log alert.
NOTE:
resource_type
andresource_types
are mutually exclusive.- service
Healths ActivityLog Alert Criteria Service Health[] - A block to define fine grain service health settings.
- status string
- The status of the event. For example,
Started
,Failed
, orSucceeded
. - statuses string[]
A list of status of the event. For example,
Started
,Failed
, orSucceeded
.NOTE:
status
andstatuses
are mutually exclusive.- sub
Status string - The sub status of the event.
- sub
Statuses string[] A list of sub status of the event.
NOTE:
sub_status
andsub_statuses
are mutually exclusive.
- category str
- The category of the operation. Possible values are
Administrative
,Autoscale
,Policy
,Recommendation
,ResourceHealth
,Security
andServiceHealth
. - caller str
- The email address or Azure Active Directory identifier of the user who performed the operation.
- level str
- The severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
. - levels Sequence[str]
A list of severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
.NOTE:
level
andlevels
are mutually exclusive.- operation_
name str - The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>
. - recommendation_
category str - The recommendation category of the event. Possible values are
Cost
,Reliability
,OperationalExcellence
,HighAvailability
andPerformance
. It is only allowed whencategory
isRecommendation
. - recommendation_
impact str - The recommendation impact of the event. Possible values are
High
,Medium
andLow
. It is only allowed whencategory
isRecommendation
. - recommendation_
type str - The recommendation type of the event. It is only allowed when
category
isRecommendation
. - resource_
group str - The name of resource group monitored by the activity log alert.
- resource_
groups Sequence[str] A list of names of resource groups monitored by the activity log alert.
NOTE:
resource_group
andresource_groups
are mutually exclusive.- resource_
healths Sequence[ActivityLog Alert Criteria Resource Health] - A block to define fine grain resource health settings.
- resource_
id str - The specific resource monitored by the activity log alert. It should be within one of the
scopes
. - resource_
ids Sequence[str] A list of specific resources monitored by the activity log alert. It should be within one of the
scopes
.NOTE:
resource_id
andresource_ids
are mutually exclusive.- resource_
provider str - The name of the resource provider monitored by the activity log alert.
- resource_
providers Sequence[str] A list of names of resource providers monitored by the activity log alert.
NOTE:
resource_provider
andresource_providers
are mutually exclusive.- resource_
type str - The resource type monitored by the activity log alert.
- resource_
types Sequence[str] A list of resource types monitored by the activity log alert.
NOTE:
resource_type
andresource_types
are mutually exclusive.- service_
healths Sequence[ActivityLog Alert Criteria Service Health] - A block to define fine grain service health settings.
- status str
- The status of the event. For example,
Started
,Failed
, orSucceeded
. - statuses Sequence[str]
A list of status of the event. For example,
Started
,Failed
, orSucceeded
.NOTE:
status
andstatuses
are mutually exclusive.- sub_
status str - The sub status of the event.
- sub_
statuses Sequence[str] A list of sub status of the event.
NOTE:
sub_status
andsub_statuses
are mutually exclusive.
- category String
- The category of the operation. Possible values are
Administrative
,Autoscale
,Policy
,Recommendation
,ResourceHealth
,Security
andServiceHealth
. - caller String
- The email address or Azure Active Directory identifier of the user who performed the operation.
- level String
- The severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
. - levels List<String>
A list of severity level of the event. Possible values are
Verbose
,Informational
,Warning
,Error
, andCritical
.NOTE:
level
andlevels
are mutually exclusive.- operation
Name String - The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>
. - recommendation
Category String - The recommendation category of the event. Possible values are
Cost
,Reliability
,OperationalExcellence
,HighAvailability
andPerformance
. It is only allowed whencategory
isRecommendation
. - recommendation
Impact String - The recommendation impact of the event. Possible values are
High
,Medium
andLow
. It is only allowed whencategory
isRecommendation
. - recommendation
Type String - The recommendation type of the event. It is only allowed when
category
isRecommendation
. - resource
Group String - The name of resource group monitored by the activity log alert.
- resource
Groups List<String> A list of names of resource groups monitored by the activity log alert.
NOTE:
resource_group
andresource_groups
are mutually exclusive.- resource
Healths List<Property Map> - A block to define fine grain resource health settings.
- resource
Id String - The specific resource monitored by the activity log alert. It should be within one of the
scopes
. - resource
Ids List<String> A list of specific resources monitored by the activity log alert. It should be within one of the
scopes
.NOTE:
resource_id
andresource_ids
are mutually exclusive.- resource
Provider String - The name of the resource provider monitored by the activity log alert.
- resource
Providers List<String> A list of names of resource providers monitored by the activity log alert.
NOTE:
resource_provider
andresource_providers
are mutually exclusive.- resource
Type String - The resource type monitored by the activity log alert.
- resource
Types List<String> A list of resource types monitored by the activity log alert.
NOTE:
resource_type
andresource_types
are mutually exclusive.- service
Healths List<Property Map> - A block to define fine grain service health settings.
- status String
- The status of the event. For example,
Started
,Failed
, orSucceeded
. - statuses List<String>
A list of status of the event. For example,
Started
,Failed
, orSucceeded
.NOTE:
status
andstatuses
are mutually exclusive.- sub
Status String - The sub status of the event.
- sub
Statuses List<String> A list of sub status of the event.
NOTE:
sub_status
andsub_statuses
are mutually exclusive.
ActivityLogAlertCriteriaResourceHealth, ActivityLogAlertCriteriaResourceHealthArgs
- Currents List<string>
- The current resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - Previouses List<string>
- The previous resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - Reasons List<string>
- The reason that will log an alert. Possible values are
PlatformInitiated
(such as a problem with the resource in an affected region of an Azure incident),UserInitiated
(such as a shutdown request of a VM) andUnknown
.
- Currents []string
- The current resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - Previouses []string
- The previous resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - Reasons []string
- The reason that will log an alert. Possible values are
PlatformInitiated
(such as a problem with the resource in an affected region of an Azure incident),UserInitiated
(such as a shutdown request of a VM) andUnknown
.
- currents List<String>
- The current resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - previouses List<String>
- The previous resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - reasons List<String>
- The reason that will log an alert. Possible values are
PlatformInitiated
(such as a problem with the resource in an affected region of an Azure incident),UserInitiated
(such as a shutdown request of a VM) andUnknown
.
- currents string[]
- The current resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - previouses string[]
- The previous resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - reasons string[]
- The reason that will log an alert. Possible values are
PlatformInitiated
(such as a problem with the resource in an affected region of an Azure incident),UserInitiated
(such as a shutdown request of a VM) andUnknown
.
- currents Sequence[str]
- The current resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - previouses Sequence[str]
- The previous resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - reasons Sequence[str]
- The reason that will log an alert. Possible values are
PlatformInitiated
(such as a problem with the resource in an affected region of an Azure incident),UserInitiated
(such as a shutdown request of a VM) andUnknown
.
- currents List<String>
- The current resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - previouses List<String>
- The previous resource health statuses that will log an alert. Possible values are
Available
,Degraded
,Unavailable
andUnknown
. - reasons List<String>
- The reason that will log an alert. Possible values are
PlatformInitiated
(such as a problem with the resource in an affected region of an Azure incident),UserInitiated
(such as a shutdown request of a VM) andUnknown
.
ActivityLogAlertCriteriaServiceHealth, ActivityLogAlertCriteriaServiceHealthArgs
- Events List<string>
- Events this alert will monitor Possible values are
Incident
,Maintenance
,Informational
,ActionRequired
andSecurity
. - Locations List<string>
- Locations this alert will monitor. For example,
West Europe
. - Services List<string>
- Services this alert will monitor. For example,
Activity Logs & Alerts
,Action Groups
. Defaults to all Services.
- Events []string
- Events this alert will monitor Possible values are
Incident
,Maintenance
,Informational
,ActionRequired
andSecurity
. - Locations []string
- Locations this alert will monitor. For example,
West Europe
. - Services []string
- Services this alert will monitor. For example,
Activity Logs & Alerts
,Action Groups
. Defaults to all Services.
- events List<String>
- Events this alert will monitor Possible values are
Incident
,Maintenance
,Informational
,ActionRequired
andSecurity
. - locations List<String>
- Locations this alert will monitor. For example,
West Europe
. - services List<String>
- Services this alert will monitor. For example,
Activity Logs & Alerts
,Action Groups
. Defaults to all Services.
- events string[]
- Events this alert will monitor Possible values are
Incident
,Maintenance
,Informational
,ActionRequired
andSecurity
. - locations string[]
- Locations this alert will monitor. For example,
West Europe
. - services string[]
- Services this alert will monitor. For example,
Activity Logs & Alerts
,Action Groups
. Defaults to all Services.
- events Sequence[str]
- Events this alert will monitor Possible values are
Incident
,Maintenance
,Informational
,ActionRequired
andSecurity
. - locations Sequence[str]
- Locations this alert will monitor. For example,
West Europe
. - services Sequence[str]
- Services this alert will monitor. For example,
Activity Logs & Alerts
,Action Groups
. Defaults to all Services.
- events List<String>
- Events this alert will monitor Possible values are
Incident
,Maintenance
,Informational
,ActionRequired
andSecurity
. - locations List<String>
- Locations this alert will monitor. For example,
West Europe
. - services List<String>
- Services this alert will monitor. For example,
Activity Logs & Alerts
,Action Groups
. Defaults to all Services.
Import
Activity log alerts can be imported using the resource id
, e.g.
$ pulumi import azure:monitoring/activityLogAlert:ActivityLogAlert example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Insights/activityLogAlerts/myalertname
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.