az monitor

Manage the Azure Monitor Service.

Commands

az monitor action-group

Manage action groups.

az monitor action-group create

Create a new action group.

az monitor action-group delete

Delete an action group.

az monitor action-group enable-receiver

Enable a receiver in an action group.

az monitor action-group list

List action groups under a resource group or the current subscription.

az monitor action-group show

Show the details of an action group.

az monitor action-group update

Update an action group.

az monitor activity-log

Manage activity logs.

az monitor activity-log alert

Manage activity log alerts.

az monitor activity-log alert action-group

Manage action groups for activity log alerts.

az monitor activity-log alert action-group add

Add action groups to this activity log alert. It can also be used to overwrite existing webhook properties of particular action groups.

az monitor activity-log alert action-group remove

Remove action groups from this activity log alert.

az monitor activity-log alert create

Create a default activity log alert.

az monitor activity-log alert delete

Delete an activity log alert.

az monitor activity-log alert list

List activity log alerts under a resource group or the current subscription.

az monitor activity-log alert scope

Manage scopes for activity log alerts.

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 show

Get an activity log alert.

az monitor activity-log alert update

Update the details of this activity log alert.

az monitor activity-log list

List and query activity log events.

az monitor activity-log list-categories

List the event categories of activity logs.

az monitor alert

Manage classic metric-based alert rules.

az monitor alert create

Create a classic metric-based alert rule.

az monitor alert delete

Delete an alert rule.

az monitor alert list

List alert rules in a resource group.

az monitor alert list-incidents

List all incidents for an alert rule.

az monitor alert show

Show an alert rule.

az monitor alert show-incident

Get the details of an alert rule incident.

az monitor alert update

Update a classic metric-based alert rule.

az monitor autoscale

Manage autoscale settings.

az monitor autoscale create

Create new autoscale settings.

az monitor autoscale delete

Deletes and autoscale setting.

az monitor autoscale list

Lists the autoscale settings for a resource group.

az monitor autoscale profile

Manage autoscaling profiles.

az monitor autoscale profile create

Create a fixed or recurring autoscale profile.

az monitor autoscale profile delete

Delete an autoscale profile.

az monitor autoscale profile list

List autoscale profiles.

az monitor autoscale profile list-timezones

Look up time zone information.

az monitor autoscale profile show

Show details of an autoscale profile.

az monitor autoscale rule

Manage autoscale scaling rules.

az monitor autoscale rule copy

Copy autoscale rules from one profile to another.

az monitor autoscale rule create

Add a new autoscale rule.

az monitor autoscale rule delete

Remove autoscale rules from a profile.

az monitor autoscale rule list

List autoscale rules for a profile.

az monitor autoscale show

Show autoscale setting details.

az monitor autoscale update

Update autoscale settings.

az monitor autoscale-settings

Manage autoscale settings.

az monitor autoscale-settings create

Creates or updates an autoscale setting.

az monitor autoscale-settings delete

Deletes and autoscale setting.

az monitor autoscale-settings get-parameters-template

Scaffold fully formed autoscale-settings' parameters as json template.

az monitor autoscale-settings list

Lists the autoscale settings for a resource group.

az monitor autoscale-settings show

Gets an autoscale setting.

az monitor autoscale-settings update

Updates an autoscale setting.

az monitor clone

Clone metrics alert rules from one resource to another resource.

az monitor diagnostic-settings

Manage service diagnostic settings.

az monitor diagnostic-settings categories

Retrieve service diagnostic settings categories.

az monitor diagnostic-settings categories list

List the diagnostic settings categories for the specified resource.

az monitor diagnostic-settings categories show

Gets the diagnostic settings category for the specified resource.

az monitor diagnostic-settings create

Create diagnostic settings for the specified resource.

az monitor diagnostic-settings delete

Deletes existing diagnostic settings for the specified resource.

az monitor diagnostic-settings list

Gets the active diagnostic settings list for the specified resource.

az monitor diagnostic-settings show

Gets the active diagnostic settings for the specified resource.

az monitor diagnostic-settings subscription

Manage diagnostic settings for subscription.

az monitor diagnostic-settings subscription create

Create diagnostic settings for a subscription.

az monitor diagnostic-settings subscription delete

Deletes existing subscription diagnostic settings for the specified resource.

az monitor diagnostic-settings subscription list

Gets the active subscription diagnostic settings list for the specified subscriptionId.

az monitor diagnostic-settings subscription show

Gets the active subscription diagnostic settings for the specified resource.

az monitor diagnostic-settings subscription update

Update diagnostic settings for a subscription.

az monitor diagnostic-settings update

Update diagnostic settings.

az monitor log-analytics

Manage Azure log analytics.

az monitor log-analytics cluster

Manage Azure log analytics cluster.

az monitor log-analytics cluster create

Create a cluster instance.

az monitor log-analytics cluster delete

Delete a cluster instance.

az monitor log-analytics cluster list

Gets all cluster instances in a resource group or in current subscription.

az monitor log-analytics cluster show

Show the properties of a cluster instance.

az monitor log-analytics cluster update

Update a cluster instance.

az monitor log-analytics cluster wait

Place the CLI in a waiting state until a condition of the cluster is met.

az monitor log-analytics workspace

Manage Azure log analytics workspace.

az monitor log-analytics workspace create

Create a workspace instance.

az monitor log-analytics workspace data-export

Manage data export ruls for log analytics workspace.

az monitor log-analytics workspace data-export create

Create a data export rule for a given workspace.

az monitor log-analytics workspace data-export delete

Delete a data export rule for a given workspace.

az monitor log-analytics workspace data-export list

List all data export ruleses for a given workspace.

az monitor log-analytics workspace data-export show

Show a data export rule for a given workspace.

az monitor log-analytics workspace data-export update

Update a data export rule for a given workspace.

az monitor log-analytics workspace delete

Delete a workspace instance.

az monitor log-analytics workspace get-schema

Get the schema for a given workspace.

az monitor log-analytics workspace get-shared-keys

Get the shared keys for a workspace.

az monitor log-analytics workspace linked-service

Manage linked service for log analytics workspace.

az monitor log-analytics workspace linked-service create

Create a linked service.

az monitor log-analytics workspace linked-service delete

Delete a linked service.

az monitor log-analytics workspace linked-service list

Gets all the linked services in a workspace.

az monitor log-analytics workspace linked-service show

Show the properties of a linked service.

az monitor log-analytics workspace linked-service update

Update a linked service.

az monitor log-analytics workspace linked-service wait

Place the CLI in a waiting state until a condition of the linked service is met.

az monitor log-analytics workspace linked-storage

Manage linked storage account for log analytics workspace.

az monitor log-analytics workspace linked-storage add

Add some linked storage accounts with specific data source type for log analytics workspace.

az monitor log-analytics workspace linked-storage create

Create some linked storage accounts for log analytics workspace.

az monitor log-analytics workspace linked-storage delete

Delete all linked storage accounts with specific data source type for log analytics workspace.

az monitor log-analytics workspace linked-storage list

List all linked storage accounts for a log analytics workspace.

az monitor log-analytics workspace linked-storage remove

Remove some linked storage accounts with specific data source type for log analytics workspace.

az monitor log-analytics workspace linked-storage show

List all linked storage accounts with specific data source type for a log analytics workspace.

az monitor log-analytics workspace list

Get a list of workspaces under a resource group or a subscription.

az monitor log-analytics workspace list-deleted-workspaces

Get a list of deleted workspaces that can be recovered in a subscription or a resource group.

az monitor log-analytics workspace list-management-groups

Get a list of management groups connected to a workspace.

az monitor log-analytics workspace list-usages

Get a list of usage metrics for a workspace.

az monitor log-analytics workspace pack

Manage intelligent packs for log analytics workspace.

az monitor log-analytics workspace pack disable

Disable an intelligence pack for a given workspace.

az monitor log-analytics workspace pack enable

Enable an intelligence pack for a given workspace.

az monitor log-analytics workspace pack list

List all the intelligence packs possible and whether they are enabled or disabled for a given workspace.

az monitor log-analytics workspace recover

Recover a workspace in a soft-delete state within 14 days.

az monitor log-analytics workspace saved-search

Manage saved search for log analytics workspace.

az monitor log-analytics workspace saved-search create

Create a saved search for a given workspace.

az monitor log-analytics workspace saved-search delete

Delete a saved search for a given workspace.

az monitor log-analytics workspace saved-search list

List all saved searches for a given workspace.

az monitor log-analytics workspace saved-search show

Show a saved search for a given workspace.

az monitor log-analytics workspace saved-search update

Update a saved search for a given workspace.

az monitor log-analytics workspace show

Show a workspace instance.

az monitor log-analytics workspace table

Manage tables for log analytics workspace.

az monitor log-analytics workspace table list

List all the tables for the given Log Analytics workspace.

az monitor log-analytics workspace table show

Get a Log Analytics workspace table.

az monitor log-analytics workspace table update

Update the properties of a Log Analytics workspace table, currently only support updating retention time.

az monitor log-analytics workspace update

Update a workspace instance.

az monitor log-profiles

Manage log profiles.

az monitor log-profiles create

Create a log profile.

az monitor log-profiles delete

Deletes the log profile.

az monitor log-profiles list

List the log profiles.

az monitor log-profiles show

Gets the log profile.

az monitor log-profiles update

Update a log profile.

az monitor metrics

View Azure resource metrics.

az monitor metrics alert

Manage near-realtime metric alert rules.

az monitor metrics alert create

Create a metric-based alert rule.

az monitor metrics alert delete

Delete a metrics-based alert rule.

az monitor metrics alert list

List metric-based alert rules.

az monitor metrics alert show

Show a metrics-based alert rule.

az monitor metrics alert update

Update a metric-based alert rule.

az monitor metrics list

List the metric values for a resource.

az monitor metrics list-definitions

Lists the metric definitions for the resource.

az monitor private-link-scope

Manage monitor private link scope resource.

az monitor private-link-scope create

Create a private link scope resource.

az monitor private-link-scope delete

Delete a monitor private link scope resource.

az monitor private-link-scope list

List all monitor private link scope resource.

az monitor private-link-scope private-endpoint-connection

Manage private endpoint connection of a private link scope resource.

az monitor private-link-scope private-endpoint-connection approve

Approve a private endpoint connection of a private link scope resource.

az monitor private-link-scope private-endpoint-connection delete

Delete a private endpoint connection of a private link scope resource.

az monitor private-link-scope private-endpoint-connection list

List all private endpoint connections of a private link scope resource.

az monitor private-link-scope private-endpoint-connection reject

Reject a private endpoint connection of a private link scope resource.

az monitor private-link-scope private-endpoint-connection show

Show a private endpoint connection of a private link scope resource.

az monitor private-link-scope private-link-resource

Manage private link resource of a private link scope resource.

az monitor private-link-scope private-link-resource list

List all private link resources of a private link scope resource.

az monitor private-link-scope private-link-resource show

Show a private link resource of a private link scope resource.

az monitor private-link-scope scoped-resource

Manage scoped resource of a private link scope resource.

az monitor private-link-scope scoped-resource create

Create a scoped resource for a private link scope resource.

az monitor private-link-scope scoped-resource delete

Delete a scoped resource of a private link scope resource.

az monitor private-link-scope scoped-resource list

List all scoped resource of a private link scope resource.

az monitor private-link-scope scoped-resource show

Show a scoped resource of a private link scope resource.

az monitor private-link-scope show

Show a monitor private link scope resource.

az monitor private-link-scope update

Update a monitor private link scope resource.

az monitor clone

Clone metrics alert rules from one resource to another resource.

az monitor clone --source-resource
                 --target-resource
                 [--always-clone]
                 [--subscription]
                 [--types {metricsAlert}]

Examples

Clone the metric alert settings from one VM to another

az monitor clone --source-resource /subscriptions/{subscriptionID}/resourceGroups/Space1999/providers/Microsoft.Compute/virtualMachines/vm1 --target-resource /subscriptions/{subscriptionID}/resourceGroups/Space1999/providers/Microsoft.Compute/virtualMachines/vm2

Required Parameters

--source-resource

Resource ID of the source resource.

--target-resource

Resource ID of the target resource.

Optional Parameters

--always-clone

If this argument is applied, all monitor settings would be cloned instead of expanding its scope.

--subscription

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

--types -t

List of types of monitor settings which would be cloned.

accepted values: metricsAlert
default value: ['metricsAlert']