-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
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