You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/partner-deduce.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ With this integration, organizations can extend their Azure AD B2C capabilities
31
31
32
32
To get started, you'll need:
33
33
34
-
- An Azure subscription. If you don't have one, get a [free account](https://azure.microsoft.com/free).
34
+
- An Azure subscription. If you don't have one, get a [free account](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn).
35
35
36
36
- An [Azure AD B2C tenant](tutorial-create-tenant.md) that is linked to your Azure subscription.
Copy file name to clipboardExpand all lines: articles/api-management/cache-lookup-policy.md
+2-23Lines changed: 2 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: dlepow
6
6
7
7
ms.service: azure-api-management
8
8
ms.topic: reference
9
-
ms.date: 07/23/2024
9
+
ms.date: 11/24/2025
10
10
ms.author: danlep
11
11
ms.custom:
12
12
- build-2025
@@ -101,29 +101,8 @@ This example shows how to use the `cache-store` policy along with a `cache-looku
101
101
</policies>
102
102
```
103
103
104
-
### Example using policy expressions
105
-
This example shows how to configure API Management response caching duration that matches the response caching of the backend service as specified by the backend service's `Cache-Control` directive.
<!-- The following cache policy snippets demonstrate how to control API Management response cache duration with Cache-Control headers sent by the backend service. -->
109
-
110
-
<!-- Copy this snippet into the inbound section -->
<!-- Copy this snippet into the outbound section. Note that cache duration is set to the max-age value provided in the Cache-Control header received from the backend service or to the default value of 5 min if none is found -->
118
-
<cache-storeduration="@{
119
-
var header = context.Response.Headers.GetValueOrDefault("Cache-Control","");
120
-
var maxAge = Regex.Match(header, @"max-age=(?<maxAge>\d+)").Groups["maxAge"]?.Value;
For more information, see [Policy expressions](api-management-policy-expressions.md) and [Context variable](api-management-policy-expressions.md#ContextVariables).
Copy file name to clipboardExpand all lines: articles/api-management/cache-store-policy.md
+2-25Lines changed: 2 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: dlepow
6
6
7
7
ms.service: azure-api-management
8
8
ms.topic: reference
9
-
ms.date: 07/23/2024
9
+
ms.date: 11/24/2025
10
10
ms.author: danlep
11
11
---
12
12
@@ -76,30 +76,7 @@ This example shows how to use the `cache-store` policy along with a `cache-looku
76
76
</policies>
77
77
```
78
78
79
-
### Example using policy expressions
80
-
81
-
This example shows how to configure API Management response caching duration that matches the response caching of the backend service as specified by the backend service's `Cache-Control` directive.
82
-
83
-
```xml
84
-
<!-- The following cache policy snippets demonstrate how to control API Management response cache duration with Cache-Control headers sent by the backend service. -->
85
-
86
-
<!-- Copy this snippet into the inbound section -->
<!-- Copy this snippet into the outbound section. Note that cache duration is set to the max-age value provided in the Cache-Control header received from the backend service or to the default value of 5 min if none is found -->
94
-
<cache-storeduration="@{
95
-
var header = context.Response.Headers.GetValueOrDefault("Cache-Control","");
96
-
var maxAge = Regex.Match(header, @"max-age=(?<maxAge>\d+)").Groups["maxAge"]?.Value;
For more information, see [Policy expressions](api-management-policy-expressions.md) and [Context variable](api-management-policy-expressions.md#ContextVariables).
Copy file name to clipboardExpand all lines: articles/api-management/soft-delete.md
+62-31Lines changed: 62 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ ms.service: azure-api-management
5
5
ms.topic: how-to
6
6
author: dlepow
7
7
ms.author: danlep
8
-
ms.date: 10/13/2025
8
+
ms.date: 11/26/2025
9
9
---
10
10
11
11
# API Management soft-delete
@@ -14,18 +14,13 @@ ms.date: 10/13/2025
14
14
15
15
With API Management soft-delete, you can recover and restore a recently deleted API Management instance. This feature protects against accidental deletion of your API Management instance.
16
16
17
-
Currently, depending on how you delete an API Management instance, the instance is either soft-deleted and recoverable during a retention period, or permanently deleted:
18
-
19
-
- When you use the Azure portal or REST API version `2020-06-01-preview` or later to delete an API Management instance, it's **soft-deleted**.
20
-
- An API Management instance deleted using a REST API version before `2020-06-01-preview` is **permanently deleted**.
21
-
- An API Management instance deleted using API Management commands in Azure PowerShell or Azure CLI is **soft-deleted**.
22
-
23
17
## Supporting interfaces
24
18
25
-
Recovery and other operations on a soft-deleted instance are enabled through [REST API](/rest/api/apimanagement/current-ga/api-management-service/restore) version `2020-06-01-preview` or later, or the Azure SDK for .NET, Go, or Python.
19
+
You can recover and perform other operations on a soft-deleted instance through [REST API](/rest/api/apimanagement/current-ga/api-management-service/restore) version `2020-06-01-preview` or later, [Azure CLI](/cli/azure/apim/deletedservice), or the Azure SDK for .NET, Go, or Python.
26
20
27
21
> [!TIP]
28
-
> For more information about tips and tools for calling Azure REST APIs, see [Azure REST API Reference](/rest/api/azure/), and for information specific to API Management, see [API Management REST](/rest/api/apimanagement/).
22
+
> * For more information about tips and tools for calling Azure REST APIs, see [Azure REST API Reference](/rest/api/azure/). For information specific to API Management, see [API Management REST](/rest/api/apimanagement/).
23
+
> * To use the Azure CLI, see [Install Azure CLI](/cli/azure/install-azure-cli) if you haven't already installed it.
29
24
30
25
| Operation | Description | API Management namespace | Minimum API version |
31
26
|--|--|--|--|
@@ -38,66 +33,90 @@ Recovery and other operations on a soft-deleted instance are enabled through [RE
38
33
39
34
## Soft-delete behavior
40
35
41
-
You can use any API version to create your API Management instance. When you use the Azure portal, Azure REST API, or another Azure tool using API version `2020-06-01-preview` or later to delete an API Management instance, the instance is automatically soft-deleted.
36
+
You can use any API version to create your API Management instance. When you use the Azure portal, Azure REST API, or another Azure tool with API version `2020-06-01-preview` or later to delete an API Management instance, the instance is automatically soft-deleted.
42
37
43
-
Once an API Management instance is soft-deleted, the service exists in a deleted state, making it inaccessible to normal API Management operations.
38
+
When you soft-delete an API Management instance, the service enters a deleted state and becomes inaccessible to normal API Management operations.
44
39
45
40
In the soft-deleted state:
46
41
47
-
-The API Management instance can only be [listed](#list-deleted-api-management-instances), [recovered](#recover-a-soft-deleted-instance), or [purged](#purge-a-soft-deleted-instance) (permanently deleted).
48
-
- Azure will schedule the permanent deletion of the underlying data corresponding to the API Management instance after the predetermined (48 hour) retention period.
42
+
-You can only [list](#list-deleted-api-management-instances), [recover](#recover-a-soft-deleted-instance), or [purge](#purge-a-soft-deleted-instance) (permanently delete) the API Management instance.
43
+
- Azure schedules the permanent deletion of the underlying data for the API Management instance after the predetermined 48-hour retention period.
49
44
- You can't reuse the name of the API Management instance.
50
45
51
-
If you don't recover or purge your API Management instance within 48 hours, the instance is automatically deleted permanently.
46
+
If you don't recover or purge your API Management instance within 48 hours, the instance is permanently deleted.
52
47
53
48
## List deleted API Management instances
54
49
55
-
You can verify that a soft-deleted API Management instance is available to restore (undelete), by using either the Deleted Services [Get By Name](/rest/api/apimanagement/current-ga/deleted-services/get-by-name) operations or the[List By Subscription](/rest/api/apimanagement/current-ga/deleted-services/list-by-subscription) operation.
50
+
You can verify that a soft-deleted API Management instance is available to restore by using either the Deleted Services [Get By Name](/rest/api/apimanagement/current-ga/deleted-services/get-by-name) operations or the [List By Subscription](/rest/api/apimanagement/current-ga/deleted-services/list-by-subscription) operation.
56
51
57
52
### Get a soft-deleted instance by name
58
53
54
+
# [REST API](#tab/rest)
55
+
59
56
Use the API Management [Get By Name](/rest/api/apimanagement/current-ga/deleted-services/get-by-name) operation, substituting `{subscriptionId}`, `{location}`, and `{serviceName}` with your Azure subscription, [resource location name](/rest/api/resources/subscriptions/list-locations#location), and API Management instance name:
60
57
61
58
```rest
62
-
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}?api-version=2021-08-01
59
+
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}?api-version=2024-05-01
60
+
```
61
+
62
+
# [Azure CLI](#tab/cli)
63
+
64
+
Use the [az apim deletedservice show](/cli/azure/apim/deletedservice#az-apim-deletedservice-show) command, substituting `{location}` and `{serviceName}` with your [resource location name](/rest/api/resources/subscriptions/list-locations#location) and API Management instance name:
65
+
66
+
```azurecli
67
+
az apim deletedservice show --location {location} --service-name {serviceName}
63
68
```
64
69
65
-
If it's available for undelete, Azure returns a record of the API Management instance showing its `deletionDate` and `scheduledPurgeDate`, for example:
70
+
---
71
+
72
+
If the API Management instance is available for undelete, Azure returns a record of the instance that shows its `deletionDate` and `scheduledPurgeDate`. For example, the REST API returns output similar to this:
### List all soft-deleted instances for a given subscription
82
89
90
+
# [REST API](#tab/rest)
91
+
83
92
Use the API Management [List By Subscription](/rest/api/apimanagement/current-ga/deleted-services/list-by-subscription) operation, substituting `{subscriptionId}` with your subscription ID:
84
93
85
94
```rest
86
-
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices?api-version=2021-08-01
95
+
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices?api-version=2024-05-01
87
96
```
88
97
89
-
This command returns a list all soft-deleted services available for undelete under the given subscription, showing the `deletionDate` and `scheduledPurgeDate` for each.
98
+
# [Azure CLI](#tab/cli)
99
+
100
+
Use the [az apim deletedservice list](/cli/azure/apim/deletedservice#az-apim-deletedservice-list) command:
90
101
91
-
## Recover a soft deleted instance
102
+
```azurecli
103
+
az apim deletedservice list
104
+
```
105
+
106
+
---
107
+
108
+
This command returns a list of all soft-deleted services that you can undelete under the given subscription. It shows the `deletionDate` and `scheduledPurgeDate` for each service.
109
+
110
+
## Recover a soft-deleted instance
92
111
93
112
Use the API Management [Create Or Update](/rest/api/apimanagement/current-ga/api-management-service/create-or-update) operation, substituting `{subscriptionId}`, `{resourceGroup}`, and `{apimServiceName}` with your Azure subscription, resource group name, and API Management name:
. . . and set the `restore` property to `true` in the request body. (When this flag is specified and set to *true*, all other properties are ignored.) For example:
119
+
In the request body, set the `restore` property to `true`. (When this flag is specified and set to *true*, all other properties are ignored.) For example:
Use the API Management [Purge](/rest/api/apimanagement/current-ga/deleted-services/purge) operation, substituting `{subscriptionId}`, `{location}`, and `{serviceName}` with your Azure subscription, resource location, and API Management name.
120
-
121
138
> [!NOTE]
122
139
> To purge a soft-deleted instance, you must have the following role-based access control (RBAC) permissions at the subscription scope in addition to Contributor access to the API Management instance: Microsoft.ApiManagement/locations/deletedservices/delete, Microsoft.ApiManagement/deletedservices/read.
123
140
141
+
# [REST API](#tab/rest)
142
+
143
+
Use the API Management [Purge](/rest/api/apimanagement/current-ga/deleted-services/purge) operation, substituting `{subscriptionId}`, `{location}`, and `{serviceName}` with your Azure subscription, resource location, and API Management name.
Use the [az apim deletedservice purge](/cli/azure/apim/deletedservice#az-apim-deletedservice-purge) command, substituting `{location}` and `{serviceName}` with your resource location and API Management name.
152
+
153
+
```azurecli
154
+
az apim deletedservice purge --location {location} --service-name {serviceName}
155
+
```
156
+
157
+
---
158
+
128
159
This command permanently deletes your API Management instance from Azure.
129
160
130
161
## Reuse an API Management instance name after deletion
@@ -139,9 +170,9 @@ You **can't** reuse the name of an API Management instance in a new deployment:
139
170
140
171
- While the instance is soft-deleted.
141
172
142
-
- In a subscription other than the one used to deploy the original instance, even after the original instance is permanently deleted (purged) from Azure. This restriction applies whether the new subscription used is in the same or a different Microsoft Entra tenant. The restriction is in effect for several days or longer after deletion, depending on the subscription type.
173
+
- In a subscription other than the one used to deploy the original instance, even after the original instance is permanently deleted (purged) from Azure. This restriction applies whether the new subscription is in the same or a different Microsoft Entra tenant. The restriction is in effect for several days or longer after deletion, depending on the subscription type.
143
174
144
-
This restriction is because Azure reserves the service host name to a customer's tenant for a reservation period to prevent the threat of subdomain takeover with dangling domain name system (DNS) entries. For more information, see [Prevent dangling DNS entries and avoid subdomain takeover](/azure/security/fundamentals/subdomain-takeover). To see all dangling DNS entries for subscriptions in a Microsoft Entra tenant, see [Identify dangling DNS entries](/azure/security/fundamentals/subdomain-takeover#identify-dangling-dns-entries).
175
+
This restriction exists because Azure reserves the service host name to a customer's tenant for a reservation period to prevent the threat of subdomain takeover with dangling domain name system (DNS) entries. For more information, see [Prevent dangling DNS entries and avoid subdomain takeover](/azure/security/fundamentals/subdomain-takeover). To see all dangling DNS entries for subscriptions in a Microsoft Entra tenant, see [Identify dangling DNS entries](/azure/security/fundamentals/subdomain-takeover#identify-dangling-dns-entries).
Copy file name to clipboardExpand all lines: articles/api-management/v2-service-tiers-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ The latest capabilities of the v2 tiers are supported in API Management API vers
50
50
51
51
***Standard v2** and **Premium v2** also support inbound [private endpoint connections](private-endpoint.md) to the API Management gateway.
52
52
53
-
***Premium v2** also supports simplified **virtual network injection** for complete isolation of inbound and outbound gateway traffic without requiring network security group rules, route tables, or service endpoints. The virtual network must be in the same region and subscription as the API Management instance. [Learn more](inject-vnet-v2.md).
53
+
***Premium v2** also supports simplified **virtual network injection** for complete isolation of inbound and outbound gateway traffic without requiring route tables or service endpoints. The virtual network must be in the same region and subscription as the API Management instance. [Learn more](inject-vnet-v2.md).
0 commit comments