LoginSignup
0
0

More than 5 years have passed since last update.

Azure CLI 01.インストール、サブスクリプションへのログイン

Last updated at Posted at 2015-08-02

これは何?

Azure CLIでAzure上のサービス/インスタンス群を構成管理する
これは引き継ぎ資料のベースとして書くドキュメント。

Management APIまわり中心に書く
基本的にAzure Resource Managerモードを使うので、アカウントベースの認証を使う

Install

CentOS 7

$ sudo yum install epel-release
$ sudo yum install nodejs npm
$ node -v
$ npm -v

$ sudo npm install azure-cli -g
$ azure help

Login

Azure CLIをARMモードで使うため、共同管理者アカウントでログインします。

$ azure login
Username: xxxxx@xxxxx.xxx
Password: ************

$ azure account list
info:    Executing command account list
data:    Name      Id                                    Tenant Id                             Current
data:    --------  ------------------------------------  ------------------------------------  -------
data:    plan  <<Subscription-Id>>  <<Tenant Id>>  true
info:    account list command OK


Current = trueになっているものが、現在ログイン中のアカウント
  • Username / Password

  CLIで操作したい対象サブスクリプションの共同管理者(Co-adminitrator)の
  Username / Password。
  サービス管理者(Service adminitrator)ではダメ。

  共同管理者は、ポータルの下記から作成できます。
    設定 > 管理者

  

参考

Azure CLI のインストール
Azure コマンド ライン インターフェイス (Azure CLI) からの Azure サブスクリプションへの接続

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0