Skip to content

PagedResult doesn't return full response #43723

@meshibiton

Description

@meshibiton

Library name and version

azure-resourcemanager-network:2.38

Describe the bug

Hi,

I'm using azure sdk , and I have found out that few methods don't return the full response.

They returned only one resource group , for example using this ->

networkManager.localNetworkGateways.list().stream().collect(Collectors.toList());

(tried different approaches like block and etc) return only gws from one resource group
, but when I am going through all the resources groups I am getting the full response.

networkManager.resourceManager().resourceGroups().list().forEach(resourceGroup -> {
    List<LocalNetworkGateway> virtualNetworkGateways =
            networkManager.localNetworkGateways().listByResourceGroup(resourceGroup.name()).stream().collect(Collectors.toList());
    gws.addAll(virtualNetworkGateways);
});

same goes for

networkManager.virtualNetworkGateways()
I saw the code in the SDK(.list()) is going through all the resource groups so maybe there is a problem with the reactive code?

I am waiting for your response,

meshi

Expected behavior

return the full response

Actual behavior

partial response

Reproduction Steps

`networkManager.localNetworkGateways.list().stream().collect(Collectors.toList());

Environment

No response

Metadata

Metadata

Labels

MgmtThis issue is related to a management-plane library.Networkcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions