Skip to content

Commit 65de8ab

Browse files
authored
Merge pull request #267191 from AlizaBernstein/WI-215040-api-enablement-plan
WI-215040 api entitlement plan
2 parents 41f080e + aa6f42a commit 65de8ab

File tree

7 files changed

+62
-13
lines changed

7 files changed

+62
-13
lines changed

articles/defender-for-cloud/defender-for-apis-deploy.md

Lines changed: 58 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Protect your APIs with Defender for APIs
3-
description: Learn about deploying the Defender for APIs plan in Defender for Cloud
3+
description: Learn about deploying the Defender for APIs plan in Defender for Cloud.
44
author: dcurwin
55
ms.author: dacurwin
66
ms.service: defender-for-cloud
77
ms.topic: conceptual
8-
ms.date: 12/03/2023
8+
ms.date: 03/03/2024
99
---
1010

1111
# Protect your APIs with Defender for APIs
@@ -14,6 +14,9 @@ Defender for APIs in Microsoft Defender for Cloud offers full lifecycle protecti
1414

1515
Defender for APIs helps you to gain visibility into business-critical APIs. You can investigate and improve your API security posture, prioritize vulnerability fixes, and quickly detect active real-time threats.
1616

17+
This article describes how to enable and onboard the Defender for APIs plan in the Defender for Cloud portal. Alternately, you can [enable Defender for APIs within an API Management instance](../api-management/protect-with-defender-for-apis.md) in the Azure portal.
18+
19+
Learn more about the [Microsoft Defender for APIs](defender-for-apis-introduction.md) plan in the Microsoft Defender for Cloud.
1720
Learn more about [Defender for APIs](defender-for-apis-introduction.md).
1821

1922
## Prerequisites
@@ -28,20 +31,62 @@ Learn more about [Defender for APIs](defender-for-apis-introduction.md).
2831

2932
- Ensure that APIs you want to secure are published in [Azure API management](/azure/api-management/api-management-key-concepts). Follow [these instructions](/azure/api-management/get-started-create-service-instance) to set up Azure API Management.
3033

31-
> [!NOTE]
32-
> This article describes how to enable and onboard the Defender for APIs plan in the Defender for Cloud portal. Alternately, you can [enable Defender for APIs within an API Management instance](../api-management/protect-with-defender-for-apis.md) in the Azure portal.
34+
- You must select a plan that grants entitlement appropriate for the API traffic volume in your subscription to receive the most optimal pricing. By default, subscriptions are opted into "Plan 1", which can lead to unexpected overages if your subscription has API traffic higher than the [one million API calls entitlement](https://ms.portal.azure.com/#view/Microsoft_Azure_Security/SecurityMenuBlade/~/18).
3335

3436
## Enable the Defender for APIs plan
3537

38+
When selecting a plan, consider these points:
39+
40+
- Defender for APIs protects only those APIs that are onboarded to Defender for APIs. This means you can activate the plan at the subscription level, and complete the second step of onboarding by fixing the onboarding recommendation. For more information about onboarding, see the [onboarding guide](defender-for-apis-deploy.md#enable-the-defender-for-apis-plan).
41+
- Defender for APIs has five pricing plans, each with a different entitlement limit and monthly fee. The billing is done at the subscription level.
42+
- Billing is applied to the entire subscription based on the total amount of API traffic monitored over the month for the subscription.
43+
- The API traffic counted towards the billing is reset to 0 at the start of each month (every billing cycle).
44+
- The overages are computed on API traffic exceeding the entitlement limit per plan selection during the month for your entire subscription.
45+
46+
To select the best plan for your subscription from the Microsoft Defender for Cloud [pricing page](https://azure.microsoft.com/pricing/details/defender-for-cloud/), follow these steps and choose the plan that matches your subscriptions’ API traffic requirements:
47+
48+
> [!NOTE]
49+
> The Defender for Cloud pricing page will be updated with the pricing information and pricing calculators by end of March 2024. In the meantime, use this document to select the correct Defender for APIs entitlements and enable the plan.
50+
3651
1. Sign into the [portal](https://portal.azure.com/), and in Defender for Cloud, select **Environment settings**.
3752

3853
1. Select the subscription that contains the managed APIs that you want to protect.
3954

40-
1. In the **APIs** plan, select **On**. Then select **Save**:
55+
:::image type="content" source="media/defender-for-apis-entitlement-plans/select-environment-settings.png" alt-text="Screenshot that shows where to select Environment settings." lightbox="media/defender-for-apis-entitlement-plans/select-environment-settings.png":::
56+
57+
1. Select **Details** under the pricing column for the APIs plan.
58+
59+
:::image type="content" source="media/defender-for-apis-entitlement-plans/select-api-details.png" alt-text="Screenshot that shows where to select API details." lightbox="media/defender-for-apis-entitlement-plans/select-api-details.png":::
60+
61+
1. Select the plan that is suitable for your subscription.
62+
1. Select **Save**.
63+
64+
## Selecting the optimal plan based on historical Azure API Management API traffic usage
65+
66+
You must select a plan that grants entitlement appropriate for the API traffic volume in your subscription to receive the most optimal pricing. By default, subscriptions are opted into **Plan 1**, which can lead to unexpected overages if your subscription has API traffic higher than the [one million API calls entitlement](https://ms.portal.azure.com/#view/Microsoft_Azure_Security/SecurityMenuBlade/~/18).
67+
68+
**To estimate the monthly API traffic in Azure API Management:**
69+
70+
1. Navigate to the Azure API Management portal and select **Metrics** under the Monitoring menu bar item.
71+
72+
:::image type="content" source="media/defender-for-apis-entitlement-plans/select-metrics.png" alt-text="Screenshot that shows where to select metrics." lightbox="media/defender-for-apis-entitlement-plans/select-metrics.png":::
73+
74+
1. Select the time range as **Last 30 days**.
75+
1. Select and set the following parameters:
76+
77+
1. Scope: **Azure API Management Service Name**
78+
1. Metric Namespace: **API Management service standard metrics**
79+
1. Metric = **Requests**
80+
1. Aggregation = **Sum**
81+
82+
1. After setting the above parameters, the query will automatically run, and the total number of requests for the past 30 days appears at the bottom of the screen. In the screenshot example, the query results in 414 total number of requests.
83+
84+
:::image type="content" source="media/defender-for-apis-entitlement-plans/metrics-results.png" alt-text="Screenshot that shows metrics results." lightbox="media/defender-for-apis-entitlement-plans/metrics-results.png":::
4185

42-
:::image type="content" source="media/defender-for-apis-deploy/enable-plan.png" alt-text="Screenshot that shows how to turn on the Defender for APIs plan in the portal." lightbox="media/defender-for-apis-deploy/enable-plan.png":::
86+
> [!NOTE]
87+
> These instructions are for calculating the usage per Azure API management service. To calculate the estimated traffic usage for *all* API management services within the Azure subscription, change the **Scope** parameter to each Azure API management service within the Azure subscription, re-run the query, and sum the query results.
4388
44-
1. Select **Save**.
89+
If you don't have access to run the metrics query, reach out to your internal Azure API Management administrator or your Microsoft account manager.
4590

4691
> [!NOTE]
4792
> After enabling Defender for APIs, onboarded APIs take up to 50 minutes to appear in the **Recommendations** tab. Security insights are available in the **Workload protections** > **API security** dashboard within 40 minutes of onboarding.
@@ -50,22 +95,22 @@ Learn more about [Defender for APIs](defender-for-apis-introduction.md).
5095

5196
1. In the Defender for Cloud portal, select **Recommendations**.
5297
1. Search for *Defender for APIs*.
53-
1. Under **Enable enhanced security features**, select the security recommendation **Azure API Management APIs should be onboarded to Defender for APIs**:
98+
1. Under **Enable enhanced security features** select the security recommendation **Azure API Management APIs should be onboarded to Defender for APIs**:
5499

55100
:::image type="content" source="media/defender-for-apis-deploy/api-recommendations.png" alt-text="Screenshot that shows how to turn on the Defender for APIs plan from the recommendation." lightbox="media/defender-for-apis-deploy/api-recommendations.png":::
56101

57-
1. In the recommendation page, you can review the recommendation severity, update interval, description, and remediation steps.
102+
1. In the recommendation page you can review the recommendation severity, update interval, description, and remediation steps.
58103
1. Review the resources in scope for the recommendations:
59104
- **Unhealthy resources**: Resources that aren't onboarded to Defender for APIs.
60105
- **Healthy resources**: API resources that are onboarded to Defender for APIs.
61106
- **Not applicable resources**: API resources that aren't applicable for protection.
62107

63-
1. In **Unhealthy resources**, select the APIs that you want to protect with Defender for APIs.
108+
1. In **Unhealthy resources** select the APIs that you want to protect with Defender for APIs.
64109
1. Select **Fix**:
65110

66111
:::image type="content" source="media/defender-for-apis-deploy/api-recommendation-details.png" alt-text="Screenshot that shows the recommendation details for turning on the plan." lightbox="media/defender-for-apis-deploy/api-recommendation-details.png":::
67112

68-
1. In **Fixing resources**, review the selected APIs, and select **Fix resources**:
113+
1. In **Fixing resources** review the selected APIs and select **Fix resources**:
69114

70115
:::image type="content" source="media/defender-for-apis-deploy/fix-resources.png" alt-text="Screenshot that shows how to fix unhealthy resources." lightbox="media/defender-for-apis-deploy/fix-resources.png":::
71116

@@ -85,4 +130,5 @@ You can also navigate to other collections to learn about what types of insights
85130

86131
## Next steps
87132

88-
[Review](defender-for-apis-posture.md) API threats and security posture.
133+
- [Review](defender-for-apis-posture.md) API threats and security posture.
134+
- [Investigate API findings, recommendations, and alerts](defender-for-apis-posture.md).

articles/defender-for-cloud/faq-defender-for-apis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ sections:
2929

3030
- question: Does Defender for APIs collect API traffic logs from Azure API Management?
3131
answer: Defender for APIs receives a copy of all of the HTTP request and response traffic sent to the API management service for all onboarded APIs. This includes the request URL, the response status code, and a subset of HTTP headers for the requests and responses. Also, Defender for APIs receives a copy of some of the HTTP request and response bodies. The request and response bodies received by Defender for APIs are capped at a size of 64 KB.
32-
32+
33+
- question: Why can't I select multiple resources?
34+
answer: API Management service resources don't enable multi-selection with metrics. You can let the API Management service team know this capability is important and upvote this request.
35+
3336
- name: Questions related to region/geo
3437
questions:
3538
- question: I just moved my APIs within my Azure API Management service to a new region. Why are these not updated?
100 KB
Loading
79.6 KB
Loading
96.3 KB
Loading
123 KB
Loading
74.6 KB
Loading

0 commit comments

Comments
 (0)