Azure SDK behaviour in case of list()

Shambhavi Rai 96 Reputation points

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 Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
162 questions
{count} votes