I need to build a series of Automated Tests using Python language. The tests need a query a series of Azure resources, get results (probably JSON format) and check a few conditions.
I can think of two options:
Call Azure CLI in my Python code using Python's subprocess to get JSON output
Use Azure SDK for Python
Which of the above options is easier to query Azure resources? Do I have an easier option?