Share via

Is there to programmatically modify saved component functions in an app insights resource?

Pavlova, Lyudmila 0 Reputation points
2023-09-28T16:01:30.38+00:00

I'm looking for a way to automate the updating of some saved functions that query all our shards in our azure subscription. Is there a way to access programmatically the saved component kusto query functions that are in the app insights -> logs -> functions section? I tried by using the Azure.ResourceManager api in c# but I managed to only query a generic resource containing the whole app insights resource and not the component functions inside it...

User's image

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.


1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,566 Reputation points Moderator
    2023-10-10T03:44:09.65+00:00

    Pavlova, Lyudmila, Apologies for the delayed response. The user Function is created using the write operation with

    "/subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP/providers/microsoft.insights/components/APPINSIGHTS_RESOURCE_NAME/analyticsItems/item"

    It is documented here - microsoft.insights components/analyticsItems.

    Hope this helps.

    Was this answer helpful?

    0 comments No comments

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.