Guy Bowerman
Guy Bowerman
@PlayNiceKids take a look at how the function is called in the unit tests: [https://github.com/gbowerman/azurerm/blob/master/test/container_test.py](https://github.com/gbowerman/azurerm/blob/master/test/container_test.py). I don't see immediately what's wrong, but you could try seeing if the unit tests...
Thanks @nickraptis. When you have a service principal, why don't you call get_access_token()? Is it to make the Python code more portable? E.g. re-use the same code in any CLI...
@nickraptis thanks the use case makes sense. I'll leave this open in case anyone wants to take on implementing it, or catching the exception and returning a meaningful message.
BTW a recent change improved get_access_token_from_cli() so it works in Azure cloud shell (getting token from MSI endpoint). May not be useful in your case, but adding it to this...
Hi @itzikorfa - interesting problem. Can you delete the resource group and then recreate it? In case not, I uploaded a new azurerm release 0.9.6 which includes a get_resource_group_resources() function....