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

Manage alert processing rule with alertsmanagement.

az monitor alert-processing-rule create

Create an alert processing rule.

az monitor alert-processing-rule delete

Delete an alert processing rule.

az monitor alert-processing-rule list

List all alert processing rules in a subscription or resource group.

az monitor alert-processing-rule show

Get an alert processing rule.

az monitor alert-processing-rule update

Enable, disable, or update tags for an alert processing 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-function

Connect AI to an Azure function.

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

Manage web test with application insights.

az monitor app-insights web-test create

Create an Application Insights web test definition.

az monitor app-insights web-test delete

Delete an Application Insights web test.

az monitor app-insights web-test list

Get all Application Insights web tests defined for the specified component. And Get all Application Insights web tests defined within a specified resource group. And Get all Application Insights web test alerts definitions within a subscription.

az monitor app-insights web-test show

Get a specific Application Insights web test definition.

az monitor app-insights web-test update

Update an Application Insights web test definition.

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 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 endpoint

Manage data collection endpoint for monitor control service.

az monitor data-collection endpoint create

Create a data collection endpoint.

az monitor data-collection endpoint delete

Delete a data collection endpoint.

az monitor data-collection endpoint list

List all data collection endpoints.

az monitor data-collection endpoint show

Show the specified data collection endpoint.

az monitor data-collection endpoint update

Update a data collection endpoint.

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

Deletes a cluster instance.

az monitor log-analytics cluster list

List 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

Create or update a Log Analytics cluster.

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 query-pack

Manage Azure log analytics query pack.

az monitor log-analytics query-pack create

Create a log analytics query pack.

az monitor log-analytics query-pack delete

Delete a log analytics query pack.

az monitor log-analytics query-pack list

List of all log analytics query packs.

az monitor log-analytics query-pack query

Manage the query of log analytics query pack.

az monitor log-analytics query-pack query create

Create a specific query within a log analytics query pack.

az monitor log-analytics query-pack query delete

Delete a specific query defined within a log analytics query pack.

az monitor log-analytics query-pack query list

List queries defined within a log analytics query pack.

az monitor log-analytics query-pack query search

Search a list of queries defined within a log analytics query pack according to given search properties.

az monitor log-analytics query-pack query show

Show a specific query defined within a log analytics query pack.

az monitor log-analytics query-pack query update

Update a specific query within a log analytics query pack.

az monitor log-analytics query-pack show

Show a log analytics query pack.

az monitor log-analytics query-pack update

Update a log analytics query pack.

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 create

Create a Log Analytics workspace microsoft/custom log table. The table name needs to end with '_CL'.

az monitor log-analytics workspace table delete

Delete a Log Analytics workspace table.

az monitor log-analytics workspace table list

List all the tables for the given Log Analytics workspace.

az monitor log-analytics workspace table migrate

Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to support of Data Collection Rule-based Custom Logs.

az monitor log-analytics workspace table restore

Manage tables for log analytics workspace restore logs table.

az monitor log-analytics workspace table restore create

Create a Log Analytics workspace restore logs table. The table name needs to end with '_RST'.

az monitor log-analytics workspace table search-job

Manage tables for log analytics workspace search results table.

az monitor log-analytics workspace table search-job create

Create a Log Analytics workspace search results table. The table name needs to end with '_SRCH'.

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.

az monitor log-analytics workspace table wait

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

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]
                 [--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.

--types -t

List of types of monitor settings which would be cloned.

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