0
votes

I want to setup an Azure API Management service in 1 active and 1 passive regions - Eg: Active : West & Passive : East. However both the regions should be in sync always though the secondary location will be disabled.

I have provisioned the Azure API Management service with Premium SKU and configured two regions

enter image description here

as per this article we can now use the disableGateway property to disable API traffic in regional API gateways.

enter image description here

I have used REST API and updated the disableGateway property

enter image description here

however still I could access the regional URL.

How do I set the disableGateway to disable the East regional API gateway?

1

1 Answers

1
votes

disableGateway property indicates that the API management's gateway (with URL https://myapim.azure-api.net for example) would not route traffic to the disabled region of the APIM instance. However if you use the regional URL directly (for example, https://myapim-eastus-01.regional.azure-api.net), it is still up and running like a passive instance and continue to have billing. True disabling would need you to delete the location from the APIM instance.

The article you referred, mentions:

You can now use the disableGateway property to disable API traffic in regional API gateways. After adding a new region, you can initially keep it disabled to first configure and test the regional backend service.

It implies that only the traffic to it is disabled from the APIM gateway, you can still test with the direct URL of the regional endpoint.