az monitor activity-log alert scope

Manage scopes for activity log alerts.

Commands

az monitor activity-log alert scope add Add scopes to this activity log alert.
az monitor activity-log alert scope remove Removes scopes from this activity log alert.

az monitor activity-log alert scope add

Add scopes to this activity log alert.

az monitor activity-log alert scope add --scope
[--ids]
[--name]
[--reset]
[--resource-group]
[--subscription]

Required Parameters

--scope -s

The scopes to add.

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--name -n

Name of the activity log alerts.

--reset

Remove all the existing scopes before add new scopes.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az monitor activity-log alert scope remove

Removes scopes from this activity log alert.

az monitor activity-log alert scope remove --scope
[--ids]
[--name]
[--resource-group]
[--subscription]

Required Parameters

--scope -s

The scopes to remove.

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--name -n

Name of the activity log alerts.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.