I am writing some functions to extract data from Azure. I am using the Python subprocess library with the Azure CLI commands as they are easier and better documented thank the Python SDK. My question comes whether it is possible to combine the Azure CLI commands with the Python SDK to make the authentication as the CLI uses interactive login and don't have many choices.
The goal of this is to incorporate those functions into a bigger script that authenticates and gets all the information we need.
Any ideas or ways of doing this would be appreciate it.
Thank you