microservices-reference-implementation icon indicating copy to clipboard operation
microservices-reference-implementation copied to clipboard

Application Insights script needs more context

Open Gordonby opened this issue 3 years ago • 0 comments

There is a 3 line script snippet which doesn't make sense to me. Why is the AI_KEY variable being set when it's never subsequently referenced anywhere else in the deployment.md file?

# Acquire Instrumentation Key
export AI_NAME=$(az deployment group show -g $RESOURCE_GROUP -n workload-stamp --query properties.outputs.appInsightsName.value -o tsv)
export AI_IKEY=$(az resource show -g $RESOURCE_GROUP -n $AI_NAME --resource-type "Microsoft.Insights/components" --query properties.InstrumentationKey -o tsv)

Gordonby avatar May 15 '22 09:05 Gordonby