2
votes

I've defined an API containing multiple operations. I've split and defined the operations in two separate ARM template, with its related schema definition. When deploying each template, the schema definitions cannot coexist, and only the latest one are visible in the portal.

Does anyone have a solution to split the operations in multiple templates and supporting update of the API schema? The API does not support multiple schemas, since that would generate an error.

Any ideas? Thanks Fabrizio

1

1 Answers

0
votes

I don't think you can split operations of a single API into multiple ARM templates. Operations under an API is a collection of "Microsoft.ApiManagement/service/apis/operations" type resources. So, if you split into multiple, last deployed template will win.

On a separate note, you can refer Azure API Management DevOps Resource Kit in case it helps to make your deployment easier otherwise in general.