We are having 2 Azure APIM instance for our Production apps, one is in primary region (currently active) and one is in secondary region (currently passive). So we we may need to switch our environments to this regions as per the requirements and we are facing challenges for some Applications, which needs same subscription key assigned for their apis hosting products.
Is there any way to achieve the below using azure cli method or arm method, so that we can automate these further using our ADO pipelines.
- APIM 1- Create Subscription key within a product in APIM instance-1
- APIM 2 - use the same subscription key assigned to the same product in the API instance 2
You can always update the primary and secondary keys of a subscription using the following rest Api which means that you can achieve the desired behavior using ARM. I never tried azure CLI for this but I do not see az subscription command.