Hello @Adonis Briceno ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to put your migrated Cloud Service (extended support) behind your current Application gateway and want to block internet traffic to the CSES and only whitelist the Application gateway IP for inbound connectivity.
As mentioned in the How an application gateway routes a request doc,
If the backend pool:
- Is a public endpoint, the application gateway uses its frontend public IP to reach the server.
- Contains an internally resolvable FQDN or a private IP address, the application gateway routes the request to the backend server by using its instance private IP addresses.
- Contains an external endpoint or an externally resolvable FQDN, the application gateway routes the request to the backend server by using its frontend public IP address.
Application gateway allows public IP addresses as backend pool.
In your case, if the CSES has a dedicated Public IP and you configure the backend pool of your Application gateway with this Public IP, then, yes, you can whitelist the Application gateway IP using NSG on the CSES and block all other traffic.
So, the NSG on your CSES should contain the below rules:
- allow traffic from Application gateway Public IP on the configured listener port.
- allow any traffic from AzureLoadBalancer service tag (needed for probes).
- allow RDP traffic from specific IP (if required).
- deny all Internet traffic.
Refer the below doc to see how NSG is configured for Azure Cloud Services (extended support):
Additional Info:
Load balancers, network security groups and route tables need to live in the same region, resource group & virtual network as the Cloud Services (extended support).
Refer: https://learn.microsoft.com/en-us/azure/cloud-services-extended-support/faq#resources
Application Gateway is not supported for in-place migration. You need to remove the Application Gateway before beginning migration and then recreate the Application Gateway once migration is completed to Azure Resource Manager.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.