Set-AzStorageObjectReplicationPolicy fails when setting a date based policy while having Dutch (Netherlands) regional settings #24434
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Service Attention
This issue is responsible by Azure service team.
Storage
Description
We are trying to setup object replication between two blob containers in two storage accounts.
This is not working when the (system) regional settings are set to for instance Dutch (Netherlands).
When we change the regional settings to English the script to setup object replication will work.
But when we try to run it on a machine which uses Dutch regional settings this fails. It seems to have something to do with the difference between English (MMddyyyy) and Dutch date formats (ddMMyyyy).
But I would assume when you create a policy rule based on a date object that the powershell functions internally do not mess up dates in string formats.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: