This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set variables | |
$accountName="" | |
$containerName="" | |
$accountKey="" | |
#Load blogList variable | |
$blobList = az storage blob list --account-key $accountKey --container-name $containerName --account-name $accountName --query "[].name" --output tsv | |
# Loop through each blob and remove the access policy | |
$blobList | ForEach-Object -Parallel { |