ShambhaviRai-8086 avatar image
0 Votes"
ShambhaviRai-8086 asked ShambhaviRai-8086 commented

Azure SDK behaviour in case of list()

Regarding the call listed below, I have an Azure object, I am trying to fetch network watcher. I am not sure about the behaviour for Azure SDK, if in case I do not have a network watcher, will this call return an empty list or null. I believe it should return an empty list, but in some cases, I have seen it return null. Couldn't find anything in the documentation for the same, Some clarification is needed here.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @ShambhaviRai-8086, Thank you for reaching out. Can you please tell us which Azure SDK(which language) are you referring to? and can you share a sample of the code you are running? It will help us better debug the issue.

0 Votes 0 ·
ShambhaviRai-8086 avatar image ShambhaviRai-8086 ChaitanyaNaykodiMSFT-9638 ·

I am using JAVA

private final Azure azure;
public NetworkWatcherClass(
Azure azure) { = azure;
NetworkWatchers networkWatchersCache = azure.networkWatchers();
List<NetworkWatcher> networkWatcherList = networkWatchersCache.list();

0 Votes 0 ·

0 Answers