I need to add existing (deployed) API APP to API management service through Powershell command. When I am trying it using 'New-AzureRmApiManagementApi' command it will create new API but it did not import the operations. There are many ways to import API from file or URL but I need to add existing API I followed https://docs.microsoft.com/en-us/powershell/resourcemanager/apimanagement.servicemanagement/v1.1.4/new-azurermapimanagementapi link Is there any way to add existing API App to API management service?
The request is -
https://management.azure.com/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxx/providers/Microsoft.ApiManag
ement/service/xxxxxxxxxx/apis/xxxxxxxxxxxxxxxxxxxxx?api-version=2016-10-10
Headers:
Body:
{
"name": "test",
"serviceUrl": "https://test.azure-api.net/",
"path": "test",
"protocols": [
"Http",
"Https"
],
"type": "Http"
}
I am looking for command which takes API URL suffix,API APP,Name as parameters
-debugswitch (it will be somewhere in the middle of all the output) - 4c74356b41