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. New-AzureRmAlertRuleEmail
B. azure insights logprofile add
C. New-AzureRmAlertRuleWebhook
D. New-AzureRmAutoscaleRule
Correct Answer: C
Explanation/Reference:
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.
Incorrect Answers:
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-b2bc-a912ec8986a6/resourceGroups/insights-integration/providers/
Microsoft.Storage/storageAccounts/insightsintegration7777 –locations global,westus,eastus,northeurope,westeurope
D: 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