How do I update an API Management via an ARM template deployed by Azure CLI?

Robert Abraham 21 Reputation points
2020-08-06T14:08:02.927+00:00

I'm looking for an example of how to update an existing API Management Tenant, via an ARM template, deployed by Azure CLI? I'm interested in things like adding operations to an API, modifying operations, changing the name (the identifier) of an API, and updating its policies.

I've used the extractor to generate ARM templates of my API, and I've modified the template file {APIName}-api.template.json file to try to update the API via an ARM template deployment.

Here's Azure CLI documentation on how to deploy ARM templates.

Would I be using az deployment tenant create to deploy?

If I find a way to successfully do this before this is answered, I'll update this question.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,912 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,606 Reputation points Microsoft Employee
    2020-08-06T17:31:58.697+00:00

    The az deployment tenant create is for tenant-level resources. You would need to use the az deployment group create command instead to deploy resources into a resource group.

    As for adding/updating APIs, since they are separate (sub)resources in separate templates, you could deploy just the specific templates you need. In a version control system, you could simply detect and deploy templates that have changed as part of your CI/CD processed.

    0 comments No comments

0 additional answers

Sort by: Most helpful