1
votes

In Azure API Management, I'm looking at the possibility of appending new operations to an existing API revision.

I can do it in Azure portal like below. enter image description here

I don't see this flexibility (choosing between update and append) available in the powershell command that imports API https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/import-azapimanagementapi?view=azps-4.7.0

Any help is highly appreciated. Thanks!

2

2 Answers

0
votes

You can use this command to implement it.

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
New-AzApiManagementOperation -Context $apimContext -ApiId $APIId -OperationId "Operation001" -Name "Operation" -Method "GET" -UrlTemplate "/resource" -Description "Use this operation to get resource"
0
votes