Skip to content

Commit 4454e07

Browse files
authored
Merge pull request #301524 from dlepow/wkspcnet
[APIM] DNS for workspace gateway/v2 VNet
2 parents 7470f20 + 6d80ba9 commit 4454e07

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

articles/api-management/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
href: inject-vnet-v2.md
114114
- name: Virtual network integration (v2 tiers)
115115
href: integrate-vnet-outbound.md
116-
- name: Virtual network integration (workspace gateway) - requirements
116+
- name: Virtual network for workspace gateways
117117
href: virtual-network-workspaces-resources.md
118118
- name: Connect privately using private endpoint
119119
href: private-endpoint.md

articles/api-management/inject-vnet-v2.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,7 @@ When you [create](get-started-create-service-instance.md) a Premium v2 instance
103103

104104
When a Premium v2 API Management instance is injected in a virtual network, you have to manage your own DNS to enable inbound access to API Management.
105105

106-
While you have the option to use your own custom DNS server, we recommend:
107-
108-
1. Configure an Azure [DNS private zone](../dns/private-dns-overview.md).
109-
1. Link the Azure DNS private zone to the virtual network.
110-
111-
Learn how to [set up a private zone in Azure DNS](../dns/private-dns-getstarted-portal.md).
106+
[!INCLUDE [api-management-virtual-network-dns-resolver](../../includes/api-management-virtual-network-dns-resolver.md)]
112107

113108
### Endpoint access on default hostname
114109

articles/api-management/virtual-network-workspaces-resources.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Azure API Management workspace gateways - VNet integration - network resources
2+
title: Azure API Management workspace gateways - virtual network requirements
33
description: Learn about requirements for network resources when you integrate or inject your API Management workspace gateway in an Azure virtual network.
44
author: dlepow
55

66
ms.service: azure-api-management
77
ms.topic: concept-article
8-
ms.date: 06/03/2025
8+
ms.date: 06/18/2025
99
ms.author: danlep
1010
---
1111

@@ -91,13 +91,7 @@ Configure other NSG rules to meet your organization's network access requirement
9191

9292
For virtual network injection, you have to manage your own DNS to enable inbound access to your workspace gateway.
9393

94-
We recommend:
95-
96-
1. Configure an Azure [DNS private zone](../dns/private-dns-overview.md).
97-
1. Link the Azure DNS private zone to the VNet into which you've deployed your workspace gateway.
98-
99-
Learn how to [set up a private zone in Azure DNS](../dns/private-dns-getstarted-portal.md).
100-
94+
[!INCLUDE [api-management-virtual-network-dns-resolver](../../includes/api-management-virtual-network-dns-resolver.md)]
10195

10296
### Access on default hostname
10397

@@ -108,9 +102,9 @@ When you create an API Management workspace, the workspace gateway is assigned a
108102
109103
### Configure DNS record
110104

111-
Create an A record in your DNS server to access the workspace from within your VNet. Map the endpoint record to the private VIP address of your workspace gateway.
105+
Create an A record in your DNS server to access the workspace from within your virtual network. Map the endpoint record to the private VIP address of your workspace gateway.
112106

113-
For testing purposes, you might update the hosts file on a virtual machine in a subnet connected to the VNet in which API Management is deployed. Assuming the private virtual IP address for your workspace gateway is 10.1.0.5, you can map the hosts file as shown in the following example. The hosts mapping file is at `%SystemDrive%\drivers\etc\hosts` (Windows) or `/etc/hosts` (Linux, macOS).
107+
For testing purposes, you might update the hosts file on a virtual machine in a subnet connected to the virtual network in which API Management is deployed. Assuming the private virtual IP address for your workspace gateway is 10.1.0.5, you can map the hosts file as shown in the following example. The hosts mapping file is at `%SystemDrive%\drivers\etc\hosts` (Windows) or `/etc/hosts` (Linux, macOS).
114108

115109
| Internal virtual IP address | Gateway hostname |
116110
| ----- | ----- |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
author: dlepow
3+
ms.service: azure-api-management
4+
ms.topic: include
5+
ms.date: 06/20/2025
6+
ms.author: danlep
7+
---
8+
9+
While you have the option to use a private or custom DNS server, we recommend:
10+
11+
1. Configure an Azure [DNS private zone](../articles//dns/private-dns-overview.md).
12+
1. Link the Azure DNS private zone to the virtual network.
13+
14+
Learn how to [set up a private zone in Azure DNS](../articles/dns/private-dns-getstarted-portal.md).
15+
16+
> [!NOTE]
17+
> If you configure a private or custom DNS resolver in the virtual network used for injection, you must ensure name resolution for Azure Key Vault endpoints (`*.vault.azure.net`). We recommend configuring an Azure private DNS zone, which doesn't require additional configuration to enable it.

0 commit comments

Comments
 (0)