API Management API - Enable Application Insights using Azure CLI

n cloud 46 Reputation points
2021-02-16T07:26:09.247+00:00

Hi,

I have a function app with Application Insights created. I have registered this app under APIM through "az apim api create" command. With this, I am also trying to enable the application insights for this specific api in apim using azure cli. I do not see any suitable command which does this job. However PowerShell command "New-AzApiManagementLogger" might work for this, but I would like stay with cli side.
Please help me out with the cli option(s) or a work around that can enable the application insights for a specific API in APIM.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,320 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,175 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,107 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,536 Reputation points
    2021-02-16T10:20:05.15+00:00

    Hi @n cloud

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Currently, az CLI doesn't support this yet, you could use Az.ApiManagement PowerShell Module instead.
    Also, feel free to create a feature request to add support it using the az cli.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.