Skip to content

Commit d612dc6

Browse files
committed
Update Get-ApplicationInsightsQuery.ps1
1 parent 612ae8a commit d612dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Get-ApplicationInsightsQuery.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-ApplicationInsightsQuery {
55
[string]$Query
66
)
77

8-
if (!$global:TelemetryClient) {
8+
if (-not $env:APPLICATIONINSIGHTS_CONNECTION_STRING -and -not $env:APPINSIGHTS_INSTRUMENTATIONKEY) {
99
throw 'Application Insights is not enabled for this instance.'
1010
}
1111

0 commit comments

Comments
 (0)