Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Configure private endpoints for Azure PaaS

A worked example

Put in order

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 settingCurrent value
Back-end pool targetapp-portal FQDN
HTTP settings host name overrideNot configured
DNS changesNot permitted

Which three actions should you perform in sequence to meet the requirements?

Your order

You didn't answer this one.

Correct order
1Configure the agw-portal HTTP settings to override the host name with the app-portal host name.
2Replace the FQDN in the back-end pool with the app-portal private endpoint's IP address.
3Verify that the back-end pool targets the private endpoint IP, then browse through agw-portal and confirm that app-portal responds.
Why

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.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free