File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,24 +76,24 @@ function New-CippCoreRequest {
7676 Method = $Request.Method
7777 TriggerType = ' HTTP'
7878 }
79-
79+
8080 # Add tenant filter if present
8181 if ($Request.Query.TenantFilter ) {
8282 $metadata [' Tenant' ] = $Request.Query.TenantFilter
8383 } elseif ($Request.Body.TenantFilter ) {
8484 $metadata [' Tenant' ] = $Request.Body.TenantFilter
8585 }
86-
86+
8787 # Add user info if available
8888 if ($Request.Headers .' x-ms-client-principal-name' ) {
8989 $metadata [' User' ] = $Request.Headers .' x-ms-client-principal-name'
9090 }
91-
91+
9292 # Wrap the API call execution with telemetry
9393 $Response = Measure-CippTask - TaskName $Request.Params.CIPPEndpoint - Metadata $metadata - Script {
9494 & $FunctionName @HttpTrigger
9595 }
96-
96+
9797 # Filter to only return HttpResponseContext objects
9898 $HttpResponse = $Response | Where-Object { $_.PSObject.TypeNames -eq ' Microsoft.Azure.Functions.PowerShellWorker.HttpResponseContext' }
9999 if ($HttpResponse ) {
You can’t perform that action at this time.
0 commit comments