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?The New-AzureRmAlertRuleWebhook cmdlet creates an alert rule webhook.Syntax:New-AzureRmAlertRuleWebhook[-ServiceUri] [[-Properties] ][]Example: Create an alert rule webhookNew-AzureRmAlertRuleWebhook -ServiceUri “http://contoso.com”This command creates an alert rule webhook by specifying only the service URI.Incorrect Answers:A: The New-AzureRmAlertRuleEmail cmdlet creates an e-mail action for an alert rule.Syntax:New-AzureRmAlertRuleEmail[[-CustomEmails] ][-SendToServiceOwners][]B: The azure insights logprofile add command adds a log profile.Example: Add a log profile without retention azure insights logprofile add –name default –storageId /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/insights-integration/providers/Microsoft.Storage/storageAccounts/insightsintegration7777 –locations global,westus,eastus,northeurope,westeuropeD: The New-AzureRmAutoscaleRule cmdlet creates an Autoscale rule.References: https://docs.microsoft.com/en-us/powershell/module/azurerm.insights/new-azurermalertrulewebhook?view=azurermps-4.3.1
Question:
Which Azure Command-Line Interface (CLI) command or Azure PowerShell cmdlet should you run?
Options:
New-AzureRmAlertRuleEmail
azure insights logprofile add
New-AzureRmAlertRuleWebhook
New-AzureRmAutoscaleRule
Correct Answer
The Correct Answer for this Question is
New-AzureRmAlertRuleWebhook