diff --git a/BARK.ps1 b/BARK.ps1 index 0e79a19..20f84f6 100644 --- a/BARK.ps1 +++ b/BARK.ps1 @@ -3192,10 +3192,8 @@ Function Get-AllAzureRMKeyVaults { -ContentType "application/json" if ($Results.value) { $KeyVaultObjects += $Results.value - } else { - $KeyVaultObjects += $Results } - $uri = $Results.'@odata.nextlink' + $uri = $Results.nextlink } until (!($uri)) $KeyVaultObjects