> azure login
info: Executing command login
warn: Please note that currently you can login only via Microsoft organizational account or service principal. For instructions on how to set them up, please read http://aka.ms/Dhf67j.
Username: hoge@hoge.com
Password:
-info: Added subscription Plan XXX
info: Added subscription Plan YYYinfo: Added subscription Plan ZZZ
info: Setting subscription "Plan YYY" as default
+
info: login command OK
>azure account list
info: Executing command account list
data: Name Id Tenant Id Current
data: ------------------------------------ ------------------------------------ ------------------------------------ -------
data: Plan XXX XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX XaXaXaXa-XaXa-XaXa-XaXa-XaXaXaXaXaXa false
data: Plan YYY YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY YaYaYaYa-YaYa-YaYa-YaYa-YaYaYaYaYaYa true
data: Plan ZZZ ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ ZaZaZaZa-ZaZa-ZaZa-ZaZa-ZaZaZaZaZaZa false
info: account list command OK
上記で、
Current 列が true
となっているサブスクリプション(Plan YYY)が、現在コンソールで操作対象になっているサブスクリプション。
■操作対象にするサブスクリプションを変更
たとえば、Plan ZZZ に変更する場合、
>azure account set ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ
info: Executing command account setinfo: Setting subscription to "Plan ZZZ" with id "ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ".
info: Changes saved
info: account set command OK
# subscription