How to export an API from one APIM to another along with its policies?

Smruti Ranjan Nayak 81 Reputation points Microsoft Employee
2023-12-08T10:19:43.5833333+00:00

Hi,
I would like to export an API from my APIM with all of its configured policies which for some reason don't get exported. Could you please send the steps to achieve the above.

Thanks,

Smruti

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,294 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,211 Reputation points
    2023-12-08T13:18:03.6366667+00:00

    @Smruti Ranjan Nayak Thanks for reaching out, Use Extractor tool in Azure API Management DevOps Resource Kit

    https://github.com/Azure/azure-api-management-devops-resource-kit/blob/main/README.mdto generate ARM templates for multiple APIs, Policy, Named Values etc. and deploy based on your need. Also, you can create custom scripts with PowerShell or Rest API and copy configurations such as Users, Products, APIs etc. from one environment to another.

    Reference:

    https://stackoverflow.com/questions/65948588/powershell-script-to-extract-all-apis-their-operations-and-inbound-policies

    https://stackoverflow.com/questions/75716318/how-to-move-azure-apim-apis-from-one-apim-to-another

    do let me know if you have any queries.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.