Subnets for APIM and AppGW

Santhya Rama S 115 Reputation points
2023-07-27T05:16:16.2466667+00:00

Hi,

We are planning to implement application gateway for APIM, as per Microsoft documentation, subnets for APIM and AppGW should be in same vnet.

https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-integrate-internal-vnet-appgateway#create-a-virtual-network-and-a-subnet-for-the-application-gateway

We have two vnets- say vnet 1 and vnet 2 which are peered, APIM subnet is in vnet1, as we don't have sufficient address space in vnet1, if we create new subnet for AppGW in vnet2 will it work ?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,286 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,124 questions
0 comments No comments
{count} votes

Accepted answer
  1. msrini-MSFT 9,286 Reputation points Microsoft Employee
    2023-07-27T12:12:51.7233333+00:00

    Hi, yes it will work as long as Application Gateway has line of site to the backend VM in this case APIM. You can also try considering adding a new address space in existing VNET and create new subnet with that address space.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.