Validate Your Microsoft Defender for APIs Alerts - Microsoft Defender for Cloud | Microsoft Learn
In brief
The article received wording, capitalization, punctuation, and formatting improvements. The validation steps remain the same, including sending a suspicious `User-Agent` value, and screenshots now support lightbox viewing.
What Defender admins need to know
No action is required; administrators can continue using the existing validation procedure.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Validate yourYour Microsoft Defender for APIs alertsAlerts - Microsoft Defender for Cloud | Microsoft Learn
Microsoft Defender for APIs provides protection, detection, and response coverage for APIs published in Azure API Management. A key feature is the detection of OWASP API Top 10 vulnerabilities. It spots anomalies at runtime by using machine learning and rule-based methods. A key feature is the detection of OWASP API Top 10 vulnerabilities.
This article walks you throughIn this article, learn how to trigger a test alert for one of your API endpoints. The alert covers detection of a suspicious user agent. Before you start, make sure you meet the prerequisites, including having an API published and Defender for APIs onboarded.
Prerequisites
Before you begin, ensure that you've completed have the following prerequisites:
- Create a service instance by following Create a new Azure API Management service instance in the Azure portal.
- Check the support and prerequisites for Defender for APIs deployment.
- Import and publish your API by using Import and publish your first API.
- Deploy the feature by using Onboard Defender for APIs.
Simulate an alert
ValidateCheck that Defender for APIs is working as expected. Send a request to your endpoint with a suspicious user agent to simulate an alert.
Sign in to the Azure portal.
Search for and select API Management services.
Select the relevant API.
Select APIs.

Select Test > Get Retrieve resource (cashed).
In the Headers section, select User-Agent in the name
drop-downdropdown menu.In the value field, enter
javascript:.Select Send.
A 200 OK appears, letting you know that it succeeded.
Expected results
@@ -1,6 +1,6 @@ --- layout: Conceptual-title: Validate your Microsoft Defender for APIs alerts - Microsoft Defender for Cloud | Microsoft Learn+title: Validate Your Microsoft Defender for APIs Alerts - Microsoft Defender for Cloud | Microsoft Learn canonicalUrl: https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-apis-validation breadcrumb_path: /azure/breadcrumb/defender-for-cloud/toc.json feedback_help_link_url: https://techcommunity.microsoft.com/t5/microsoft-defender-for-cloud/bd-p/MicrosoftDefenderCloud@@ -43,29 +43,29 @@ spProducts: platformId: 1b8dfc85-ee62-5ddd-dc24-f029e52ec720 --- -# Validate your Microsoft Defender for APIs alerts - Microsoft Defender for Cloud | Microsoft Learn+# Validate Your Microsoft Defender for APIs Alerts - Microsoft Defender for Cloud | Microsoft Learn -Microsoft Defender for APIs provides protection, detection, and response coverage for APIs published in Azure API Management. A key feature is the detection of OWASP API Top 10 vulnerabilities. It spots anomalies at runtime by using machine learning and rule-based methods.
+Microsoft Defender for APIs provides protection, detection, and response coverage for APIs published in Azure API Management. It spots anomalies at runtime by using machine learning and rule-based methods. A key feature is the detection of OWASP API Top 10 vulnerabilities.
-This article walks you through how to trigger a test alert for one of your API endpoints. The alert covers detection of a suspicious user agent. Before you start, make sure you meet the prerequisites, including having an API published and Defender for APIs onboarded.
+In this article, learn how to trigger a test alert for one of your API endpoints. The alert covers detection of a suspicious user agent.
## Prerequisites
-Before you begin, ensure that you've completed the following prerequisites:
+Before you begin, ensure that you have the following prerequisites:
- Create a service instance by following [Create a new Azure API Management service instance in the Azure portal](/en-us/azure/api-management/get-started-create-service-instance).
-- Check the [support and prerequisites for Defender for APIs deployment](defender-for-apis-prepare)
+- Check the [support and prerequisites for Defender for APIs deployment](defender-for-apis-prepare).
- Import and publish your API by using [Import and publish your first API](/en-us/azure/api-management/import-and-publish).
- Deploy the feature by using [Onboard Defender for APIs](defender-for-apis-deploy).
## Simulate an alert
-Validate that Defender for APIs is working as expected. Send a request to your endpoint with a suspicious user agent to simulate an alert.
+Check that Defender for APIs is working as expected. Send a request to your endpoint with a suspicious user agent to simulate an alert.
1. Sign in to the [Azure portal](https://portal.azure.com).
2. Search for and select **API Management services**.
- [](media/defender-for-apis-validation/api-management.png#lightbox)
+ [](media/defender-for-apis-validation/api-management.png#lightbox)
3. Select the relevant API.
4. Select **APIs**.
@@ -74,15 +74,15 @@ Validate that Defender for APIs is working as expected. Send a request to your e

6. Select **Test** > **Get Retrieve resource (cashed)**.
-7. In the Headers section, select **User-Agent** in the name drop-down menu.
+7. In the **Headers** section, select **User-Agent** in the name dropdown menu.
- [](media/defender-for-apis-validation/user-agent.png#lightbox)
-8. In the value field, enter `javascript:`.
-9. Select **Send**
+ [](media/defender-for-apis-validation/user-agent.png#lightbox)
+8. In the value field, enter *javascript:*.
+9. Select **Send**.
A 200 OK appears, letting you know that it succeeded.
- 
+ [](media/defender-for-apis-validation/200-ok.png#lightbox)
## Expected results



