Using Console
Using CLI
az monitor metrics alert create
to create a new alert rule.
--enabled
parameter to enable the alert rule.
--description
parameter to provide a description for the alert rule.
--tags
parameter to add any tags you want to the alert rule.
az monitor metrics alert show
to verify that the alert rule was created successfully.
az monitor metrics alert update
command to modify the alert rule if necessary.
az monitor metrics alert delete
command to delete the alert rule if it is no longer needed.
Using Python
ClientSecretCredential
class:MonitorManagementClient
using the credential
object:monitor_client
object: