Skip to content

Commit

Permalink
Fixing Fabric API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Dec 13, 2024
1 parent f2c3eea commit f1577d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f1577d2

Please sign in to comment.