Azure cli/armtemplate create api managment api from azure resource, like: app service

kain wei 1 Reputation point
2022-03-14T07:24:00.1+00:00

azure api management can create api from azure resource like a app service, I want to know how to use command line to do that.182676-evidence-azure-create-apim-from-app-service.jpg

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,446 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-03-28T12:19:38.347+00:00

    @kain wei Apology for the delay. Unfortunately as of now, there is no CLI/ARM template that can help you to achieve the same functionality as the portal does for the "Create from Azure Resource" option. The portal does make multiple REST calls and internal logic to get the APIs from the App service and then call individual APIs to create the API and operation on your APIM instance. You can always take the F12/fiddler traces to know what is REST call that portal makes if you want to achieve the same functionality.
    Feel free to create the feature request here and for CLI here if this is something you want to achieve using CLI/ARM template.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.