Question

Difficulty: HardProvision and Configure Azure API Management

You are deploying an Azure API Management (APIM) self-hosted gateway to an on-premises Kubernetes cluster to manage local microservices. You have created the gateway resource within your APIM instance in the Azure portal. You need to configure the self-hosted gateway container deployment so that it can successfully register and retrieve its configuration from the parent APIM instance. Which two environment variables must you configure on the container to enable this connection? (Select two.)

  1. config.service.endpointAnswer
  2. gateway.auth.tokenAnswer
  3. C
    gateway.auth.key
  4. D
    telemetry.config.connectionstring

Answer

To enable the self-hosted gateway to retrieve its configuration, you must configure the config.service.endpoint variable to point to the configuration endpoint URL and the gateway.auth.token variable to contain a valid access token.
The self-hosted gateway container connects to the Azure API Management control plane using the configuration service endpoint and authenticates via a gateway-specific access token. Therefore, the variables config.service.endpoint and gateway.auth.token must be set.

Step-by-Step Solution

1
Access the Azure API Management gateway resource in the portal and generate an access token using one of the gateway keys.
A time-bound access token is generated.
This token is required by the container to authenticate and download configurations from Azure.
2
Apply the config.service.endpoint environment variable to the gateway container specification, setting it to the API Management configuration service URL.
The container is configured to query the correct control plane address.
This establishes the endpoint location for configuration updates.
3
Apply the gateway.auth.token environment variable to the container specification, setting it to the generated access token.
The container successfully authenticates and downloads the API routing policies.
This completes the handshake and secure registration.

Key Concept

Self-hosted gateway deployment configuration parameters
Rate this question