Azure SDK behaviour in case of list()

Shambhavi Rai 96 Reputation points
2021-09-28T06:02:12.237+00:00

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.

azure.networkWatchers().list();

Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
157 questions
{count} votes