So I am in a project where we have a dotnet MVC app inside a React application. We are hosting everything in Azure. The MVC and the React applications are linked to Azure Application Insights resources for monitoring.
I was wondering how I could unify both application insights for my queries in Log Analytics. I went through this documentation. The problem being that I always get an error saying: "unknown function app" when I try to do the following:
Both resources exist and are in the same resources group. I feel like I am not executing the query from the right scope. I tried executing this same query from the scope of the entire subscription, the complete resource group and from the application's scope.
I was wondering if someone would know how to execute such a query and use the app function.
The linked documentation refers to a "workspace". I think this is the source of my scope problem, since I only tried to run the query from the Azure Monitor page and from the scopes I mentionned previously.
UPDATE
IntelliSense is now aware of the app function, but I get the following error:
Thank you very much for reading my question! I am new to Azure Monitoring!
app('your_application_insights').requests
– Ivan Yang