01/26/2022, 1:28 PM
Has anyone tried applying a BlobContainerImmutabilityPolicy to a a AzureNative.Storage.BlobContainer? It appears whenever a BlobContainer is created it also creates the default BlobContainerImmutabilityPolicy but puts it in a Deleted state which prevents us for trying to import it, but it also fails when trying to create a new Policy. Even following the sample in will always result in:
cannot create already existing resource '/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Storage/storageAccounts/xxx/blobServices/default/containers/container42/immutabilityPolicies/default
The only alternative I've found was to use Local Command to execute az using CLI, but that is not really an ideal solution