Azure CLI アカウントの設定

Azure

環境作り直して、久々にAzure クロスプラットフォーム CLIを使おうと思ったのですが、アカウントの登録ってどうやるんだっけ?って悩んじゃいました。

何気なくやってることって大切ですよね。

ということで、自分の戒めのためにもう一度整理します。

 

パブリッシュファイルのダウンロード

PS C:> azure account download
info: Executing command account download
info: Launching browser to http://go.microsoft.com/fwlink/?LinkId=254432
help: Save the downloaded file, then execute the command
help: account import <file>
info: account download command OK

直接、http://go.microsoft.com/fwlink/?LinkId=254432 を、叩いてもOKです。

 

パブリッシュファイルのインポート

PS C:> azure account import [ダウンロードしたパブリッシュファイル]
info: Executing command account import
info: account import command OK

これで、パブリッシュファイルのサブスクリプションに対して、CLIでアクセスできるようになります。

アカウント情報の削除

アカウントを切り替えるときとかは、一度、アカウント情報の削除をします。

PS C:> azure account clear
info: Executing command account clear
This will clear all account information. Are you sure? y
info: Account settings cleared successfully
info: account clear command OK

コメント

タイトルとURLをコピーしました