Search code examples
azureload-balancingsubnetazure-application-gateway

Azure Application Gateway: Subnet must only have application gateway


I'm facing an error - "Subnet must only have application gateway" while creating an Application Gateway for in my azure network.

I'm following the steps from thid document: https://learn.microsoft.com/en-us/azure/application-gateway/create-url-route-portal

Tried to look around but could not find any solution.

enter image description here


Solution

  • Tested in my environment working fine for me , You need to create a seperate subnet for application gateway. you cannot use the subnet that is accomplished with other resources. Like wise you can see in below i selected AzureBastionSubnet ie already using with bastion.

    enter image description here

    Once i created seperate subnet for AppGtw it is working fine.

    enter image description here

    Note : If you are using the subnet that is already accomplished with other reources for that subnet you need to Select NSG None.

    enter image description here