An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hello Ali Ashraf Mohammad,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having "Unable to activate API service at this time" error.
The activation failure is caused by deploying Azure API Management Consumption tier in Azure Government, which is not supported. - https://learn.microsoft.com/en-us/azure/api-management/api-management-features
What you can do is to:
- Stop using the Consumption SKU in Azure Government.
- Redeploy the API Management instance using a supported non-Consumption tier.
- Use Developer only for non-production because it does not provide an SLA.
- Use an available production tier such as Basic, Standard, Premium, or a supported v2 tier, depending on regional availability and required features.
- If the same APIM name was previously deleted, check for a soft-deleted APIM instance and purge or recover it before recreating the service, because APIM soft-delete can block name reuse. - https://learn.microsoft.com/en-us/azure/api-management/api-management-features, https://learn.microsoft.com/en-us/azure/api-management/soft-delete, and https://learn.microsoft.com/en-us/cli/azure/apim/deletedservice?view=azure-cli-latest gives more insights.
After changing the SKU from Consumption to a supported APIM tier and confirming the target Azure Government region supports the selected tier, the deployment should proceed through activation. Azure Support is only required if a supported SKU still fails after validating region availability, subscription quota, provider registration, and soft-deleted name conflicts.
I hope this is helpful. Please! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please do not close the thread by upvoting and accepting the answer if any part of it is helpful.