How do I deploy an API Management API update with a new revision number , via an ARM template deployed by Azure CLI?

Robert Abraham 21 Reputation points
2020-08-11T17:18:37.447+00:00

I've successfully used ARM templates to update an API and deploy that update to an APIM tenant. I've been able to port an API to a different APIM tenant using the same process.

However, this isn't enough for my use-case. When I update an API this way, I'll need that update to be part of a brand new revision number, with that revision's CURRENT flag = false. Modifying the relevant fields in {APIName}-api.template.json ( apiRevision and isCurrent) doesn't seem to trigger the creation of a new revision. I believe revisions are their own resource type, and I'll have to create a new instance of that type that my API template will have to reference.

I'm having trouble finding documentation related to this. How can I accomplish this?

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

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2020-08-12T12:48:31.597+00:00

    The name has to include a revision suffix like ;rev=n as mentioned in the reference docs. By default, the current revision is updated.

    Here is the description that I am referring to for reference

    210689-image.png

    1 person found this answer helpful.

Your answer

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