Skip to content

Commit cc3f2ab

Browse files
committed
Update Invoke-ListApiTest.ps1
1 parent 1b34dd9 commit cc3f2ab

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@ function Invoke-ListApiTest {
1818
$EnvironmentVariables | Add-Member -NotePropertyName $_.Name -NotePropertyValue $_.Value
1919
}
2020
$Response.EnvironmentVariables = $EnvironmentVariables
21-
# test Get-AzAccessToken vs Get-CIPPAzAccessToken timing with stopwatch
22-
$Sw = [System.Diagnostics.Stopwatch]::StartNew()
23-
$null = Get-AzAccessToken
24-
$Sw.Stop()
25-
$Timings = @{}
26-
$Timings.GetAzAccessTokenMs = $Sw.Elapsed.TotalMilliseconds
27-
$Sw = [System.Diagnostics.Stopwatch]::StartNew()
28-
$Token = Get-CIPPAzIdentityToken
29-
$Sw.Stop()
30-
$Timings.GetCippAzIdentityTokenMs = $Sw.Elapsed.TotalMilliseconds
31-
$Response.Timings = $Timings
32-
$Response.Jwt = Read-JwtAccessDetails -Token $Token
3321

3422
# test New-CIPPAzRestRequest KQL for resource graph
3523
$Query = 'Resources | project name, type'

0 commit comments

Comments
 (0)