Skip to content

Commit 448994e

Browse files
committed
test az query
1 parent f035280 commit 448994e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ function Invoke-ListApiTest {
3030
$Timings.GetCippAzIdentityTokenMs = $Sw.Elapsed.TotalMilliseconds
3131
$Response.Timings = $Timings
3232
$Response.Jwt = Read-JwtAccessDetails -Token $Token
33+
34+
# test New-CIPPAzRestRequest KQL for resource graph
35+
$Query = 'Resources | project name, type'
36+
$Request = New-CIPPAzRestRequest -Method GET -Resource 'https://management.azure.com/' -ApiVersion '2021-03-01' -Endpoint 'providers/Microsoft.ResourceGraph/resources' -QueryParameters @{ 'query' = $Query }
3337
}
3438
$Response.AllowedTenants = $script:CippAllowedTenantsStorage.Value
3539
$Response.AllowedGroups = $script:CippAllowedGroupsStorage.Value

0 commit comments

Comments
 (0)