Open
Description
Description
Get-AzureRmKeyVault does not return all items (ignores "nextLink" parameter) when >1000 items
Get-AzureRMKeyVault -VaultName 'MYVAULT' also does not work because internally the cmdlet calls Get-AzureRmKeyVault first and does not fine the name.
Script/Steps for Reproduction
Create > 1000 KeyVault entries in your subscription.
Call Get-AzureRmKeyVault
Module Version
Environment Data
Debug Output
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxxxxxxxx/resources?$filter=resourceType eq 'Microsoft.KeyVault%2Fvaults'&api-version=2016-09-01
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-ratelimit-remaining-subscription-reads: 14930
x-ms-request-id : 2b89964f-2835-4677-91a4-3785a1327a73
x-ms-correlation-request-id : 2b89964f-2835-4677-91a4-3785a1327a73
x-ms-routing-request-id : CANADACENTRAL:20180313T211117Z:2b89964f-2835-4677-91a4-3785a1327a73
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Tue, 13 Mar 2018 21:11:16 GMT
Body:
{
"value": [
{
"id": "/subscriptions/xxxx/resourceGroups/xxx/providers/Microsoft.KeyVault/vaults/xxx",
"name": "xxx",
"type": "Microsoft.KeyVault/vaults",
"location": "xxxxx",
"tags": {}
},
....
],
"nextLink": "https://management.azure.com/subscriptions/xxxx/resources?%24filter=resourceType+eq+%27Microsoft.KeyVault%2fvaults%27&api-version=2016-09-01&%24skiptoken=xxxxx
DEBUG: AzureQoSEvent: CommandName - Get-AzureRmKeyVault; IsSuccess - True; Duration - 00:01:39.0193248; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 5:16:09 PM - GetAzureKeyVault end processing.
DEBUG: 5:16:09 PM - GetAzureKeyVault end processing.