Get OpenAPI definition for Logic App

Needed this in a pinch today. We wanted to add a Logic App to a Power App and for that you need to create a custom connector. This requires the Logic App as an OpenAPI definition. Turns out the Azure REST API supports this. You have to do a POST request to:

Do this via the Az command:

Or PowerShell (notice the Url doesn’t include the base):