https://pulumi.com logo
Title
h

handsome-optician-50551

03/19/2020, 4:17 PM
Hi everyone, I have an C# api app that I've registered in my api management service and after deploying I can see my application in the api management on azure portal. What I don't see are the available operations of my api. I've defined these in a swagger file and I'm wondering how I tell my api management service to read or consumer this file so that my operations show up? Or do I need to do this with an azure script?
t

tall-librarian-49374

03/19/2020, 4:45 PM
contentFormat - (Required) The format of the content from which the API Definition should be imported. Possible values are: swagger-json, swagger-link-json, wadl-link-json, wadl-xml, wsdl and wsdl-link.

contentValue - (Required) The Content from which the API Definition should be imported. When a content_format of *-link-* is specified this must be a URL, otherwise this must be defined inline.
h

handsome-optician-50551

03/20/2020, 8:13 AM
Thank you very much 😄
I haven't managed to figure out how to do this, the issue is that the swagger file is exposed by an app service that is registered to the api management service, so I need to have the api management load the swagger after the app service is deployed, is this possible? Can I run pulumi scripts post deploy?
And where did you find that text?
And the point of the swagger was too not have to define operations myself but have the api management service register them from a swagger file.
t

tall-librarian-49374

03/20/2020, 3:26 PM
If you could get the swagger file from the app service inside the Pulumi program, you could pass it to API Management and Pulumi would do those in the right sequence.
Honestly, I haven’t done much with API Management, so all this is theory.
h

handsome-optician-50551

03/20/2020, 3:27 PM
Ok thank you