3
votes

I know I can create an Azure API Management instance using Azure Resource Management templates, but can I also import my API into it using the same templates?

The web app which provides the API is created in a previous step using the ARM templates, and the URL for the Swagger definition is known. It would make a lot of sense to also automate the import.

3

3 Answers

4
votes

It is available now. See Api Reference.

{
  "properties": {
    "format": "swagger-link-json",
    "value": "http://petstore.swagger.io/v2/swagger.json",
    "path": "petstore"
  }
}
2
votes

It is not supported yet, but it's in the backlog. I don't have a date to share at this point.

2
votes

I'd like to add that this way of importing doesn't support versioned API's yet. To get this working you need to first run an ARM template to create a versioned API and next the ARM template containing the import.