Skip to content

Commit

Permalink
Skip missing blob container properties
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp authored and azure-sdk committed Nov 5, 2024
1 parent f435610 commit be87797
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eng/common/scripts/Helpers/Resource-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ function RemoveStorageAccount($Account) {
}

foreach ($container in $containers) {
if (!($container | Get-Member 'ListBlobProperties')) {
continue
}
if ($container.BlobContainerProperties.HasImmutableStorageWithVersioning) {
try {
# Use AzRm cmdlet as deletion will only work through ARM with the immutability policies defined on the blobs
Expand Down

0 comments on commit be87797

Please sign in to comment.