No way to turn on App Insights in a Web App through Azure CLI #30030
Labels
app-service-general
Auto-Assign
Auto assign by bot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor
az monitor
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Similar-Issue
Web Apps
az webapp
Describe the bug
az monitor app-insights component connect-webapp
is used to link a web app to an app insights instance. However, as far as I have been able to find, there is not an automated way of turning on app insights in the web app as you can on the Azure Portal:Related command
az monitor app-insights component connect-webapp
Errors
There are no errors associated, just missing functionality.
Issue script & Debug output
Currently configuring Azure Monitor as follows:
I have tried using
az webapp config appsettings
to compare the webapp configuration before and after turning on Application Insights.Adjusting the following configuration values seemed to turn on app insights, but it was not actually receiving telemetry data from my deployed web app:
Expected behavior
One of the following two scenarios:
When executing
az monitor app-insights component connect-webapp
, this should subsequently turn on Application Insights if it is not currently.An
az webapp
sub-command should allow you to explicitly turn on / off application insights.Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: