Importing openAPI file using an ARM template

Graham Allwood 306 Reputation points
2021-04-12T10:51:10.547+00:00

Hi,

I wish to automate my deployment. Does anyone know of an example of importing an openapi file via an ARM template in order to create an API?

I have seen an open source project (Creator / Extractor) that generates arm files from a swagger file, just wondered if ARM could do this natively?

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

Answer accepted by question author
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-04-12T16:48:54.417+00:00

    @Graham Allwood There is a format and value keys under API Resource Properties that can be set to import from an OpenAPI File. For example, this pair should work

       ...  
             "format": "swagger-link-json",  
             "value": "http://petstore.swagger.io/v2/swagger.json",  
       ...  
    
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Ihar Piatrou 1 Reputation point
    2022-12-28T03:24:14.39+00:00

    @Graham Allwood Please can you share your implementation?

    0 comments No comments

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.