0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Azure】アクセスできる全Azureサブスクリプションの全リソースを取得して一覧をCSVファイルに出力する

Last updated at Posted at 2020-12-27

アクセスできる全Azureサブスクリプションの全リソースを取得して一覧をCSVファイルに出力する

Microsoft Azure のリソース一覧が欲しくなることがあるが、Azure Portal には現在リソース一覧を出力する機能がない。(正確には、Azure Resource Explorer を使えば、JSON形式で取得することはできるかもしれない。)
CSV出力する Azure PowerShell コマンドを作ってくださっていた先人がいらっしゃったので、ありがたく拝借する。

元ネタ
https://gist.github.com/mahiya/42e39f451fb3a8cd683a

上記はAzureRMモジュール版のコマンドであったため、Azモジュール版に対応させた。
https://gist.github.com/yukit7s/b843298fec3c0b06f730b4df384cce71

動作確認済み環境
PowerShell Version: 3.2.0
Az module Version: 5.1.18362.1171

PowerShellとAzモジュールバージョン確認.ps1
$PSVersionTable
Get-InstalledModule Az

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?