The App Service app app-portal is published through agw-portal. Service endpoints on the gateway subnet and an app access restriction currently limit inbound traffic to the gateway. A private endpoint for app-portal has now been deployed in the gateway's virtual network.
The security team requires gateway-to-app traffic to use that private endpoint. The app's FQDN currently resolves to its public endpoint from the gateway's network. A change freeze prohibits DNS changes, including private DNS zone links. Change control also requires every request sent to the private IP address to carry the correct app host name.
| agw-portal setting | Current value |
|---|---|
| Back-end pool target | app-portal FQDN |
| HTTP settings host name override | Not configured |
| DNS changes | Not permitted |
Which three actions should you perform in sequence to meet the requirements?
You didn't answer this one.
Application Gateway can target an App Service private endpoint by IP when its HTTP settings supply the correct app host name. The existing public DNS resolution cannot be changed during the freeze. Configuring the override before switching the pool to the private IP satisfies the request-order constraint.
- Step 1: Configure the agw-portal HTTP settings to override the host name with the app-portal host name. The override must be in place before the gateway begins targeting the private IP address.
- Step 2: Replace the FQDN in the back-end pool with the app-portal private endpoint's IP address. The FQDN currently resolves publicly and DNS changes are prohibited, so the gateway must target the private IP directly.
- Step 3: Verify that the back-end pool targets the private endpoint IP, then browse through agw-portal and confirm that app-portal responds. Verification follows the configuration changes and checks both the selected destination and successful application access.
- Not needed: Link the app's private DNS zone to the gateway's virtual network. The change freeze prohibits this DNS change.
- Not needed: Stop and start agw-portal to refresh its DNS cache. The configured back-end target will be an IP address, so refreshing cached FQDN resolution is unnecessary.
- Not needed: Add another service endpoint access restriction allowing the gateway subnet. This repeats the existing approach and does not move gateway-to-app traffic onto the private endpoint.
- What Is Application Gateway Integration? - Azure App ServiceMicrosoft Learn