Skip to content

Commit ed46141

Browse files
committed
Update Invoke-ListApiTest.ps1
1 parent 7d528ff commit ed46141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListApiTest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Invoke-ListApiTest {
3434
# test New-CIPPAzRestRequest KQL for resource graph
3535
$Query = 'Resources | project name, type'
3636
$Json = ConvertTo-Json -Depth 10 -Compress -InputObject @{ query = $Query }
37-
$Request = New-CIPPAzRestRequest -Method POST -Resource 'https://management.azure.com/' -Endpoint 'providers/Microsoft.ResourceGraph/resources?api-version=2022-10-01' -Body $Json
37+
$Request = New-CIPPAzRestRequest -Method POST -Resource 'https://management.azure.com/' -Uri 'https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2022-10-01' -Body $Json
3838
}
3939
$Response.AllowedTenants = $script:CippAllowedTenantsStorage.Value
4040
$Response.AllowedGroups = $script:CippAllowedGroupsStorage.Value

0 commit comments

Comments
 (0)