This script will get the storage account keys for each storage account in the sa_accounts.txt file and export them to a CSV file.
This script will get the storage account keys for each storage account in the sa_accounts.txt
file and export them to a CSV file sa_keys.csv
.
- PowerShell 5.1 or higher
- Azure PowerShell module
- Create a text file named sa_accounts.txt in the same directory as the script
- Populate the sa_accounts.txt file with the storage account names with one per line
- Run the script
./getAzureSaKeys.ps1
- 3/29/2024 Output now strips out the double quotes surrounding the variables which makes it easier to use. Also change instructions to reference the correct script name