Problem:
I want to setup a CI/CD where whenever I publish changes to my SF API, it automatically updates the endpoints of the API in the Azure API Management instance.
How do I plan on doing that?
I push changes to my GitHub repo, it is built, and it gets deployed. Second step in the release is a PowerShell script which updates an existing Azure APIM API with the Swagger doc of the newly deployed SF API.
Whats the problem?
Well, you can't pass through the gateway unless you have an endpoint defined in the Azure APIM API. I can define a Swagger endpoint there by default, but whenever the PowerShell update is run, it'll remove that endpoint because the Swagger generated does not have itself in it, which is totally logical.
If I expose the Swagger endpoint without the gateway somehow, that posses a security threat, and kind of kills the purpose of Azure APIM gateway.
My Setup?
Incoming Request -> Azure APIM -> Service Fabric App (Public/Internal)
- Internal SF Apps will ideally not be exposed through the gateway and are only used for inter app communication.
Any help in this regard is highly appreciated since I am kind of blocked on this :-)