Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created February 14, 2026 16:09
Show Gist options
  • Select an option

  • Save wullemsb/1773c6d46e4ca6bc7c8d8f6e64ee0242 to your computer and use it in GitHub Desktop.

Select an option

Save wullemsb/1773c6d46e4ca6bc7c8d8f6e64ee0242 to your computer and use it in GitHub Desktop.
# Create App Insights resource (3 steps)
## Add the Application Insights extension
az extension add -n application-insights
##Select the correct subscription
az account set --subscription "Microsoft Azure Enterprise"
## Create the Application Insights resource
az monitor app-insights component create --app $applicationInsightsResourceName --location $azureRegionName --resource-group AppInsights --workspace oms-vlm
# Query connection string of App Insights
az monitor app-insights component show --app $applicationInsightsResourceName --resource-group AppInsights --query connectionString --output tsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment