Hi Folk,
I want some information about the Logic App's Disaster Management.
We have implemented logic app for a client and Once their business was affected due to Azure Region down. Now they wanted the logic app should be deployed on different region.
I found some discussion (link) in stackoverflow about APIM and deployed two logic apps in different region.
example:
LogicApp_UKSouth
LogicApp_UKWest
then we configured APIM and implement policies to redirect the request if one logic app is down.
We tested to disable the one logic app and trigger manually request from APIM .It is which is working fine and automatically move to another logic app.
<policies>
<inbound>
<base />
<set-backend-service id="apim-generated-policy" backend-id="LogicApp_UKSouth_personaldevenvoirmen_e327bdd19e8e463cbe500df8616afd1b" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
<choose>
<when condition="@(context.Response.StatusCode != 202)">
<send-request mode="new" response-variable-name="selectionChange" ignore-error="true">
<set-url>testapimangament.azure-api.net/LogicApp_UKWest/manual/paths/invoke</set-url>
<set-method>POST</set-method>
<set-header name="Host" exists-action="override">
<value>testapimangament.azure-api.net</value>
</set-header>
<set-header name="Content-Type" exists-action="override">
<value>application/json</value>
</set-header>
<set-header name="Ocp-Apim-Subscription-Key" exists-action="override">
<value>2b8e3db460254749b553ba45393578e1</value>
</set-header>
<set-header name="Ocp-Apim-Trace" exists-action="override">
<value>true</value>
</set-header>
<set-body />
</send-request>
</when>
</choose>
</outbound>
<on-error>
<base />
</on-error>
</policies>
But I have some question
1) APIM will trigger only those logic app which have Trigger "When Http request is received" if logic app is trigger from scheduler then APIM will not work is there anyway to trigger scheduler based Logic app through APIM?
2) APIM is also region based If the APIM region is down what will be disaster management for this?
3) We have disable the first logic app and test the APIM but how can we test the actual scenario when azure region is down?
4) What is the best practice to handle the Disaster management in Azure logic app if the region is down?