title: How to run Azure CLI commands using python?
body: <p>I want to use Azure CLI to get the list of all the VMs in my resource group. But I want to implement the same using a python script. </p>
  
  <p>For example, I will use the following command in Azure CLI to list the VMs in my resource group:</p>
  
  <p>" az vm list -g MyResourceGroup "</p>
  
  <p>But, I want the python script to do the same, where I just have to incorporate the CLI command in the python program.</p>