Change resourceID by script
hi
i have running iis (server 2016) want enable ai on 1 app pool.
i can use start-applicationinsightsmonitoring cmdlet start , can provide instrumentationkey.
but how i, script change resourceid???
i've tried update applicationinsights.config manually, ai status monitor throws error: "could not find resource group 'xxx' subscription 'guid' please choose 'configure settings' , select existing resource"
then can manually configure using status monitor, there no changes applicationinsights.config file.
so missing?
thanks
kim,
that's not supported of today. resourceid used statusmonitor ui provide user friendly representation of subscription/resource group/resource name. power shell cmdlets treated more advanced and/or tool automation when user knows ai resource instrumentation key.
if you're using cmdlets ignore resourceid in ai.config correct instrumentation key set there , resourceid doesn't affect actual monitoring, instrumentationkey does. in statusmonitor ui you'll see notification 'resource unknown' , safely ignore it.
Visual Studio Development , Visual Studio Team Foundation Server > Application Insights (AI)
Comments
Post a Comment