Get-AzLogicApp returns a max of 30 Logic Apps
Description
With resource groups that have more than 30 logic apps, Get-AzLogicApp only returns 30 logic apps. I believe this has something to do with the fact that the Azure API returns Logic Apps in a paginated format (See "nextLink" value at the bottom of HTTP Response).
Script/Steps for Reproduction
- Create a Resource Group that contains more than 30 logic apps.
- Run
Get-AzLogicApp -ResourceGroupName <Resource Group>. The result set contains 30 logic apps. - Run
Get-AzResource -ResourceGroupName <Resource Group> -ResourceType 'Microsoft.Logic/workflows'. The result set will contain the full collection of Logic Apps.
Module Version
Az.LogicApp v. 1.1.0
Environment Data
Name Value
---- -----
PSVersion 5.1.17763.134
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.134
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Debug Output
4:54:16 PM - GetAzureLogicAppCommand begin processing with ParameterSet 'ListWorkflows'.
4:54:16 PM - using account id '<REDACTED>'...
[Common.Authentication]: Authenticating using Account: '<REDACTED>', environment: 'AzureCloud', tenant: '<REDACTED>'
============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/<REDACTED>/resourceGroups/<REDACTED>/providers/Microsoft.Logic/workflows?api-version=2016-06-01
Headers:
x-ms-client-request-id : 45cd0226-d452-4798-bf09-7bb5b0f379aa
accept-language : en-US
Body:
============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
Vary : Accept-Encoding
x-ms-request-id : eastus:c652ba32-65e3-48d2-bd1b-04828f48266e
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-resource-requests: 19996
x-ms-correlation-request-id : a4b94d85-48aa-4c8c-bfdc-3be762a22313
x-ms-routing-request-id : CENTRALUS:20190211T215416Z:a4b94d85-48aa-4c8c-bfdc-3be762a22313
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Mon, 11 Feb 2019 21:54:16 GMT
Body:
{
"value": [
<...30 Logic App Entries Redacted...>
],
"nextLink": "https://management.azure.com/subscriptions/<REDACTED>/resourceGroups/<REDACTED>/providers/Microsoft.Logic/workflows?api-version=2016-06-01&%24skiptoken=<TOKEN REDACTED>"
}
AzureQoSEvent: CommandName - Get-AzLogicApp; IsSuccess - True; Duration - 00:00:00.8394067; Exception - ;
Finish sending metric.
4:54:17 PM - GetAzureLogicAppCommand end processing.
4:54:17 PM - GetAzureLogicAppCommand end processing.
@refortie Is this among the fixes you are currently working on? I remember that being the case but wanted to confirm.
@maddieclayton That is correct. There is an underlying issue with how it interacts with our test regions that I am tracking down, otherwise I've got the fix almost ready to go
That's great news! Is there an estimate on when those fixes will be pushed out, either date or version number?
I resolved the issue that we were having internally and just pushed out a PR for the fix