PrepAway - Latest Free Exam Questions & Answers

Which Azure Command-Line Interface (CLI) command or Azu…

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?

PrepAway - Latest Free Exam Questions & Answers

A.
New-AzureRmAlertRuleEmail

B.
azure insights logprofile add

C.
New-AzureRmAlertRuleWebhook

D.
New-AzureRmAutoscaleRule

Explanation:
The New-AzureRmAlertRuleWebhook cmdlet creates an alert rule webhook.Syntax:
New-AzureRmAlertRuleWebhook
[-ServiceUri] <String>
[[-Properties] <Hashtable>]
[<CommonParameters>]
Example: Create an alert rule webhook
New-AzureRmAlertRuleWebhook-ServiceUri “http://contoso.com”
This command creates an alert rule webhook by specifying only the service URI.
IncorrectAnswers:
A: The New-AzureRmAlertRuleEmail cmdlet creates an e-mail action for an alert rule.
Syntax: New-AzureRmAlertRuleEmail
[[-CustomEmails] <String[]>]
[-SendToServiceOwners]
[<CommonParameters>]
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-b2bca912ec8986a6/resourceGroups/insights-integration/providers/Microsoft.Storage/storageAccounts/
insightsintegration7777 –locations global,westus,eastus,northeurope,westeurope
D: The New-AzureRmAutoscaleRule cmdlet creates an Autoscale rule.
https://docs.microsoft.com/en-us/powershell/module/azurerm.insights/newazurermalertrulewebhook?view=azurermps-4.3.1


Leave a Reply