LoginSignup
2
2

More than 5 years have passed since last update.

Azure Powershellと環境変数「PSModulePath」について

Posted at

Azure Powershellの配置フォルダを変更する。

Powershellコンソールを起動したときに、「Azure Powershell」がどの設定を参照して読み込まれるのかわからなかった。答えは環境変数「PSModulePath」でした。

  • 次のサイトからインストーラをダウンロード。Azure PowerShell Download

  • Windows Azure Powershellをインストール
    WS_00002.JPG

  • 既定では下記フォルダにAzure Powershellモジュールが展開されるようです。
    WS_00001.JPG

  • 環境変数「PSModulePath」を見ると、先程ダウンロードされたAzure powershellモジュールのパスが設定されています。
    WS_00003.JPG

  • Powershellコンソールを起動して、Azure Powershellが読み込まれていることを確認。
    WS_00004.JPG

まとめ

環境変数「PSModulePath」を編集すればAzure Powershellモジュールを展開するフォルダを変更することができそうです。既定のフォルダから変更したい場合は有効かもしれません。

参考サイト

2
2
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
2
2