CmdID / az / az monitor / az monitor app-insights / az monitor app-insights component
az monitor app-insights component connect-webapp
Connect AI to a web app. Azure CLI extensions reference
3 options Its page in the Azure CLI extensions reference
Options
--enable-profilerEnable collecting profiling traces that help you see where time is spent in code.--enable-snapshot-debugger, --enable-debuggerEnable snapshot debugger when an exception is thrown.--web-appName or resource id of the web app.