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

CertStreak
Menu

Configure networking settings for an App Service

A worked example

Complete the statement

You are publishing a multitenant App Service app through Azure Application Gateway. Requirements:

  • The gateway must reach the app on a private IP address in the virtual network.
  • The back-end pool uses the app's fully qualified domain name (FQDN).

You configured the back-end pool first. Later, you linked the Azure private DNS zone for the app to the gateway's virtual network. The gateway still resolves the app's old address.

Complete the statements to meet the requirements and fix the name resolution issue.

Secure the traffic from the gateway to the app by adding to the app. Because the private DNS zone link was created after the back-end pool, you must the application gateway. As an alternative to DNS, configure the pool with the app's private address and in the backend HTTP settings.

  • Blank 1: a private endpoint (correct answer)

    A private endpoint gives the app a private IP address that the gateway can resolve and use. Service endpoints only tag subnet traffic for an access restriction, and IP rules or network security groups filter traffic without giving the app a private address.

  • Blank 2: stop and then start (correct answer)

    Application Gateway caches DNS lookup results. When the DNS update or private DNS zone link happens after the back-end pool is configured, you restart the gateway by stopping and starting it so it resolves the private IP. Probes and affinity do not clear the DNS cache.

  • Blank 3: override the host name (correct answer)

    When the back-end pool targets a private IP address, the gateway must still send a host name the app accepts, so you override the host name in the HTTP settings. Affinity and connection draining control session handling. A trusted root is needed only for private-CA or self-signed certificates.

Why

Private endpoints secure the connection between Application Gateway and App Service, but the gateway must be able to resolve the app's private IP address. Because the gateway caches DNS results, a DNS change made after the back-end pool was configured requires a stop and start of the gateway. You can also skip DNS: target the private IP directly and override the host name in the backend HTTP settings so the app receives a host name it recognises.

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