From cea6565f4fbbf5a01dbb83963d3e0c999607a13e Mon Sep 17 00:00:00 2001 From: Sergei Nikalaichyk Date: Fri, 27 Dec 2024 11:11:59 -0600 Subject: [PATCH] Added UseBasicParsing to Invoke-WebRequest calls for AADVerifiedIdAuthority, AADVerifiedIdAuthorityContract, and AzureVerifiedIdFaceCheck --- .../MSFT_AADVerifiedIdAuthority.psm1 | 4 ++-- .../MSFT_AADVerifiedIdAuthorityContract.psm1 | 4 ++-- .../MSFT_AzureVerifiedIdFaceCheck.psm1 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADVerifiedIdAuthority/MSFT_AADVerifiedIdAuthority.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADVerifiedIdAuthority/MSFT_AADVerifiedIdAuthority.psm1 index 8da0f80edd..b79636d69d 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADVerifiedIdAuthority/MSFT_AADVerifiedIdAuthority.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADVerifiedIdAuthority/MSFT_AADVerifiedIdAuthority.psm1 @@ -575,11 +575,11 @@ function Invoke-M365DSCVerifiedIdWebRequest if ($Method -eq 'PATCH' -or $Method -eq 'POST') { $BodyJson = $body | ConvertTo-Json - $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $BodyJson + $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $BodyJson -UseBasicParsing } else { - $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers + $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -UseBasicParsing } if ($Method -eq 'DELETE') diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADVerifiedIdAuthorityContract/MSFT_AADVerifiedIdAuthorityContract.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADVerifiedIdAuthorityContract/MSFT_AADVerifiedIdAuthorityContract.psm1 index 0ff063c803..88225c80a0 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADVerifiedIdAuthorityContract/MSFT_AADVerifiedIdAuthorityContract.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADVerifiedIdAuthorityContract/MSFT_AADVerifiedIdAuthorityContract.psm1 @@ -922,11 +922,11 @@ function Invoke-M365DSCVerifiedIdWebRequest if ($Method -eq 'PATCH' -or $Method -eq 'POST') { $BodyJson = $body | ConvertTo-Json -Depth 10 - $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $BodyJson + $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $BodyJson -UseBasicParsing } else { - $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers + $response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -UseBasicParsing } if ($Method -eq 'DELETE') diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AzureVerifiedIdFaceCheck/MSFT_AzureVerifiedIdFaceCheck.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AzureVerifiedIdFaceCheck/MSFT_AzureVerifiedIdFaceCheck.psm1 index 467f46d674..c42db507fd 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AzureVerifiedIdFaceCheck/MSFT_AzureVerifiedIdFaceCheck.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AzureVerifiedIdFaceCheck/MSFT_AzureVerifiedIdFaceCheck.psm1 @@ -345,7 +345,7 @@ function Export-TargetResource Authorization = (Get-MSCloudLoginConnectionProfile -Workload AdminAPI).AccessToken } $uri = 'https://verifiedid.did.msidentity.com/v1.0/verifiableCredentials/authorities' - $response = Invoke-WebRequest -Uri $uri -Method Get -Headers $headers + $response = Invoke-WebRequest -Uri $uri -Method Get -Headers $headers -UseBasicParsing $authorities = ConvertFrom-Json $response.Content $resourceGroups = Get-AzResourceGroup -ErrorAction Stop