souser
souser

Reputation: 6120

How to obtain Azure subscription details via Ansible module?

I am getting started with Ansible + Azure. While I see Ansible modules for quite a few tasks, I am kinda stuck at the basic task of obtaining the subscription_id and subscription_name

To work around this I am using the az account show --subscription <subscription_name> command instead. I pull the output of that command into ansible and extract subscription_id and subscription_name

Is there a way to perform this task via an Ansible module instead ?

Upvotes: 0

Views: 261

Answers (1)

Joy Wang
Joy Wang

Reputation: 42063

Looks it is not possible to perform this task via the Ansible module, all the Ansible module on Azure here, there is no one can do this.

Upvotes: 1

Related Questions