You are deploying a set of containerized microservices to an on-premises Docker environment. You want to use an existing Azure API Management (APIM) instance in the cloud to manage and secure these on-premises microservices. You decide to provision a self-hosted gateway.
Which of the following actions must you perform to configure and run the self-hosted gateway? (Select TWO)
- Create a Gateway resource in the Azure API Management instance and retrieve the configuration endpoint URL and an access token.Cevap
- Deploy the official self-hosted gateway Docker container, passing the configuration endpoint URL and access token as environment variables.Cevap
- CEnable a system-assigned managed identity on the local Docker host and grant it the Reader role on the Azure API Management resource.
- DConfigure a Key Vault Access Policy that allows the Docker host service principal to retrieve the gateway's communication certificate from Azure Key Vault.
Cevap
To provision and run the self-hosted gateway, you must create a Gateway resource in the API Management instance to retrieve the configuration endpoint and access token, and then deploy the official gateway container using these values as environment variables.
To deploy a self-hosted gateway, you must first register it as a Gateway resource in your Azure API Management instance. This registration provides the configuration endpoint URL and an access token. You then run the gateway container (e.g., in Docker) and pass these values as environment variables (config.service.endpoint and config.service.auth) so the gateway can pull its configuration.
Adım Adım Çözüm
Anahtar Kavram
Provisioning and deploying an Azure API Management self-hosted gateway
Alternatif Yöntem
Alternatively, you can deploy the self-hosted gateway to a Kubernetes cluster using a Helm chart or YAML manifest, but you must still provision the Gateway resource in Azure and provide the endpoint and token as configuration secrets.
Tahmini Süre:1m 30s