AZ-400 Question 281
Single answerYou administer an Azure environment where critical application logs are ingested into a Log Analytics workspace. You want to automatically create a bug work item in Azure DevOps whenever a critical error alert is triggered in Azure Monitor. Which configuration option correctly sets up this integration?
- A
Specify an ITSM Connector in your Azure Monitor alert rule and select Azure DevOps as the ITSM provider
- B
Enable the built-in Azure DevOps extension in the Log Analytics workspace configuration blade to directly send alerts as work items
- C
Create an Action Group that uses a Webhook to invoke either a service hook in Azure DevOps or a Logic App calling the Azure DevOps REST API to create the work item
- D
Configure the Azure Monitor alert to send an email notification that contains a link to the Azure DevOps project where team members manually file the bug
Show answer and explanation
Correct answer: C
Explanation
The most reliable method to automatically create work items in Azure DevOps from Azure Monitor alerts is to configure an Action Group with a Webhook or Logic App. The webhook can point directly to an Azure DevOps service hook endpoint, or you can invoke a Logic App that calls Azure DevOps REST APIs to create or update work items. This follows best practices described in Microsoft documentation: https://learn.microsoft.com/azure/azure-monitor/alerts/action-groups and https://learn.microsoft.com/azure/devops/service-hooks/overview.
- A. Incorrect.
Option 1 is incorrect because the ITSM Connector is intended for integrating with IT service management platforms (e.g., ServiceNow), not Azure DevOps. There is no built-in option under ITSM to connect directly to Azure DevOps.
- B. Incorrect.
Option 2 is incorrect because there is no built-in extension within the Log Analytics workspace that automatically converts alerts to Azure DevOps work items. You must configure a more explicit integration mechanism.
- C. Correct.
Option 3 is correct. Creating an Action Group with a Webhook that calls a service hook in Azure DevOps or triggers a Logic App to invoke the Azure DevOps REST API is the recommended way to automate work item creation in response to alerts.
- D. Incorrect.
Option 4 is incorrect because relying on a simple email alert with a link to AzDevOps only provides a manual process for creating bugs. This does not automatically generate a new work item.