Pratik Mehta
Pratik Mehta

Reputation: 1352

Azure API Managment - Configure operations through Code

In Azure API Management, we can create operations through the Portal. See below link. https://azure.microsoft.com/en-in/documentation/articles/api-management-howto-add-operations/

Is there anyway to configure the Operations through C#/Code instead of portal?

Regards, Pratik

Upvotes: 2

Views: 182

Answers (2)

Andre van den Berg
Andre van den Berg

Reputation: 1

Yes it's possible

when you export it to yaml and then you can import with bicep.

so you can create a variable like the following:

var operation = loadTextContent('openapi.yaml')

as format you have to use openapi when you using this variable

APIM - Deploy APIs using Bicep

I can confirm that the serviceUrl needs to be filled.

Upvotes: 0

Miao Jiang
Miao Jiang

Reputation: 633

We have REST APIs as well as PowerShell cmdlets.

https://msdn.microsoft.com/library/azure/dn894081.aspx?f=255&MSPPError=-2147217396

Upvotes: 2

Related Questions