From b31822736c543f76167f3aa9773e607b0aea1060 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Damaschke Date: Sat, 25 Jun 2022 14:53:00 +0200 Subject: [PATCH] feat(microsoft-insights): Added instrumentationKey output variable --- arm/Microsoft.Insights/components/deploy.bicep | 3 +++ arm/Microsoft.Insights/components/readme.md | 1 + 2 files changed, 4 insertions(+) diff --git a/arm/Microsoft.Insights/components/deploy.bicep b/arm/Microsoft.Insights/components/deploy.bicep index df25c2a77a..3f2d73111c 100644 --- a/arm/Microsoft.Insights/components/deploy.bicep +++ b/arm/Microsoft.Insights/components/deploy.bicep @@ -111,3 +111,6 @@ output applicationId string = appInsights.properties.AppId @description('The location the resource was deployed into.') output location string = appInsights.location + +@description('Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component.') +output instrumentationKey string = appInsights.properties.InstrumentationKey diff --git a/arm/Microsoft.Insights/components/readme.md b/arm/Microsoft.Insights/components/readme.md index d5c1327138..1ba2c04e06 100644 --- a/arm/Microsoft.Insights/components/readme.md +++ b/arm/Microsoft.Insights/components/readme.md @@ -146,6 +146,7 @@ tags: { | `name` | string | The name of the application insights component. | | `resourceGroupName` | string | The resource group the application insights component was deployed into. | | `resourceId` | string | The resource ID of the application insights component. | +| `instrumentationKey` | string | Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component. | ## Deployment examples