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 action-rule

Commands to manage action rule.

az monitor action-rule create

Create an action rule.

az monitor action-rule delete

Delete an action rule.

az monitor action-rule list

List all action rules of the subscription, created in given resource group and given input filters.

az monitor action-rule show

Get an action rule.

az monitor action-rule update

Update an action rule.

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 app-insights

Commands for querying data in Application Insights applications.

az monitor app-insights api-key

Operations on API keys associated with an Application Insights component.

az monitor app-insights api-key create

Create a new API key for use with an Application Insights resource.

az monitor app-insights api-key delete

Delete an API key from an Application Insights resource.

az monitor app-insights api-key show

Get all keys or a specific API key associated with an Application Insights resource.

az monitor app-insights component

Manage an Application Insights component or its subcomponents.

az monitor app-insights component billing

Manage an Application Insights component billing features.

az monitor app-insights component billing show

Show the billing features of an Application Insights resource.

az monitor app-insights component billing update

Update the billing features of an Application Insights resource.

az monitor app-insights component connect-webapp

Connect AI to a web app.

az monitor app-insights component continues-export

Manage Continuous Export configurations for an Application Insights component.

az monitor app-insights component continues-export create

Create a Continuous Export configuration for an Application Insights component.

az monitor app-insights component continues-export delete

Delete a specific Continuous Export configuration of an Application Insights component.

az monitor app-insights component continues-export list

List Continuous Export configurations for an Application Insights component.

az monitor app-insights component continues-export show

Get a specific Continuous Export configuration of an Application Insights component.

az monitor app-insights component continues-export update

Update a Continuous Export configuration for an Application Insights component.

az monitor app-insights component create

Create a new Application Insights resource.

az monitor app-insights component delete

Delete a new Application Insights resource.

az monitor app-insights component linked-storage

Manage linked storage account for an Application Insights component.

az monitor app-insights component linked-storage link

Link a storage account with an Application Insights component.

az monitor app-insights component linked-storage show

Show the details of linked storage account for an Application Insights component.

az monitor app-insights component linked-storage unlink

Unlink a storage account with an Application Insights component.

az monitor app-insights component linked-storage update

Update the linked storage account for an Application Insights component.

az monitor app-insights component show

Get an Application Insights resource.

az monitor app-insights component update

Update properties on an existing Application Insights resource. The primary value which can be updated is kind, which customizes the UI experience.

az monitor app-insights component update-tags

Update tags on an existing Application Insights resource.

az monitor app-insights events

Retrieve events from an application.

az monitor app-insights events show

List events by type or view a single event from an application, specified by type and ID.

az monitor app-insights metrics

Retrieve metrics from an application.

az monitor app-insights metrics get-metadata

Get the metadata for metrics on a particular application.

az monitor app-insights metrics show

View the value of a single metric.

az monitor app-insights query

Execute a query over data in your application.

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 data-collection

Manage data collection for monitor control service.

az monitor data-collection rule

Manage data collection rule for monitor control service.

az monitor data-collection rule association

Manage data collection rule association for monitor control service.

az monitor data-collection rule association create

Create an association.

az monitor data-collection rule association delete

Delete an association.

az monitor data-collection rule association list

List associations for the specified data collection rule. And Lists associations for the specified resource.

az monitor data-collection rule association show

Return the specified association.

az monitor data-collection rule association update

Update an association.

az monitor data-collection rule create

Create a data collection rule.

az monitor data-collection rule data-flow

Manage data flows.

az monitor data-collection rule data-flow add

Add a data flow.

az monitor data-collection rule data-flow list

List data flows.

az monitor data-collection rule delete

Deletes a data collection rule.

az monitor data-collection rule list

List all data collection rules in the specified resource group. And Lists all data collection rules in the specified subscription.

az monitor data-collection rule log-analytics

Manage Log Analytics destinations.

az monitor data-collection rule log-analytics add

Add Log Analytics destinations of a data collection rule.

az monitor data-collection rule log-analytics delete

Delete a Log Analytics destinations of a data collection rule.

az monitor data-collection rule log-analytics list

List Log Analytics destinations of a data collection rule.

az monitor data-collection rule log-analytics show

Show a Log Analytics destination of a data collection rule.

az monitor data-collection rule log-analytics update

Update a Log Analytics destination of a data collection rule.

az monitor data-collection rule performance-counter

Manage Log performance counter data source.

az monitor data-collection rule performance-counter add

Add a Log performance counter data source.

az monitor data-collection rule performance-counter delete

Delete a Log performance counter data source.

az monitor data-collection rule performance-counter list

List Log performance counter data sources.

az monitor data-collection rule performance-counter show

Show a Log performance counter data source.

az monitor data-collection rule performance-counter update

Update a Log performance counter data source.

az monitor data-collection rule show

Return the specified data collection rule.

az monitor data-collection rule syslog

Manage Syslog data source.

az monitor data-collection rule syslog add

Add a Syslog data source.

az monitor data-collection rule syslog delete

Delete a Syslog data source.

az monitor data-collection rule syslog list

List Syslog data sources.

az monitor data-collection rule syslog show

Show a Syslog data source.

az monitor data-collection rule syslog update

Update a Syslog data source.

az monitor data-collection rule update

Update a data collection rule.

az monitor data-collection rule windows-event-log

Manage Windows Event Log data source.

az monitor data-collection rule windows-event-log add

Add a Windows Event Log data source.

az monitor data-collection rule windows-event-log delete

Delete a Windows Event Log data source.

az monitor data-collection rule windows-event-log list

List Windows Event Log data sources.

az monitor data-collection rule windows-event-log show

Show a Windows Event Log data source.

az monitor data-collection rule windows-event-log update

Update a Windows Event Log data source.

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 query

Query a Log Analytics workspace.

az monitor log-analytics solution

Commands to manage monitor log-analytics solution.

az monitor log-analytics solution create

Create a log-analytics solution.

az monitor log-analytics solution delete

Delete a log-analytics solution.

az monitor log-analytics solution list

List all of the log-analytics solutions in the specified subscription or resource group.

az monitor log-analytics solution show

Get details about the specified log-analytics solution.

az monitor log-analytics solution update

Update an existing log-analytics solution.

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 condition

Manage near-realtime metric alert rule conditions.

az monitor metrics alert condition create

Build a metric alert rule condition.

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 dimension

Manage near-realtime metric alert rule dimensions.

az monitor metrics alert dimension create

Build a metric alert rule dimension.

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

List the metric definitions for the resource.

az monitor metrics list-namespaces

List the metric namespaces 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 scheduled-query

Commands to manage scheduled queries.

az monitor scheduled-query create

Create a scheduled query.

az monitor scheduled-query delete

Delete a scheduled query.

az monitor scheduled-query list

List all scheduled queries.

az monitor scheduled-query show

Show detail of a scheduled query.

az monitor scheduled-query update

Update a scheduled query.

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']