# Add App Insights extension to Azure CLI az extension add -n application-insights # Create an App Insights resource az monitor app-insights component create \ --app \ --location \ --resource-group # Copy the value of the instrumentationKey, we will need it later