Created
March 6, 2018 03:10
-
-
Save chw2054/e244261bdd228cc49cde60cae6ff86ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
tasks: | |
- name: List all subscription | |
azure_cli: account list | |
register: result | |
- debug: | |
msg: "{{result.meta[0].name}}" | |
- name: List all VMs | |
azure_cli: vm list | |
register: result | |
- debug: | |
msg: "{{result.meta[0].name}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment