Share via

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.

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

Answer accepted by question author

MayankBargali-MSFT 71,016 Reputation points Moderator
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.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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