API Management API - Enable Application Insights using Azure CLI

n cloud 46 Reputation points


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.
2,474 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,522 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,683 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 63,506 Reputation points

    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