diff --git a/CHANGELOG.md b/CHANGELOG.md index 986cbd1f48..c4864ccc14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ # UNRELEASED +* MISC + * Fixed the Fabric web request to use basic parsing. * M365DSCUtil * Update `Get-M365DSCWorkloadsListFromResourceNames` function for more input types. FIXES [#5525](https://github.com/microsoft/Microsoft365DSC/issues/5525) diff --git a/Modules/Microsoft365DSC/Modules/WorkloadHelpers/M365DSCFabricHelper.psm1 b/Modules/Microsoft365DSC/Modules/WorkloadHelpers/M365DSCFabricHelper.psm1 index b365be031a..6d58407ac0 100644 --- a/Modules/Microsoft365DSC/Modules/WorkloadHelpers/M365DSCFabricHelper.psm1 +++ b/Modules/Microsoft365DSC/Modules/WorkloadHelpers/M365DSCFabricHelper.psm1 @@ -20,7 +20,11 @@ function Invoke-M365DSCFabricWebRequest Authorization = (Get-MSCloudLoginConnectionProfile -Workload 'Fabric').AccessToken } - $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $Body + $response = Invoke-WebRequest -Method $Method ` + -Uri $Uri ` + -Headers $headers ` + -Body $Body ` + -UseBasicParsing $result = ConvertFrom-Json $response.Content return $result }