Home » Microsoft » 70-533 v.2 » Which Azure Command-Line Interface (CLI) command or Azure PowerShell cmdlet should you run?
You plan to use Azure Monitor with AutoScale Services. You create a URI to be used with the monitoring service.
You need to configure an alert that specifies the URI.
Which Azure Command-Line Interface (CLI) command or Azure PowerShell cmdlet should you run?
A. azure insights alerts actions webhook create
B. New-AzureRmAutoscaleRule
C. azure insights alerts rule log set
D. azure insights logprofile add
Correct Answer: A
Explanation/Reference:
Explanation:
To create webhook or send email when a classic metric alert fires, first create the email and/or webhooks. Then create the rule immediately afterwards. You cannot associate webhook or emails with already created rules using the CLI. azure insights alerts actions email create –customEmails [email protected] azure insights alerts actions webhook create https://www.contoso.com
References: https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/insights-alerts-command-line-interface