LoginSignup
0
0

More than 1 year has passed since last update.

メモ:複数テナントのAzureMLワークスペースで作業する

Last updated at Posted at 2022-11-24

複数テナントにAzureMLワークスペースがあり、切り替えて作業する際に使うAzure CLIコマンドを覚える記憶力がないため、自分用のメモを置きます。

別テナントにログインする。

az login --tenant <tenant>

アクティブなサブスクリプションを変更する。

az account set --subscription <subscription>

デフォルトリソースグループとAzureMLワークスペースを指定。

az configure --defaults group=<group> workspace=<azureml ws>

これで以降のaz mlコマンド実行時はリソースグループとAzureMLワークスペースを指定しなくて済むようになります。
もっと便利な方法をご存じでしたらコメントで教えて頂けると嬉しいです。

参考

Azure CLI を使用してサインインする — ログインと認証 | Microsoft Learn
Azure サブスクリプションを管理する方法 – Azure CLI | Microsoft Learn

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