az storage account or-policy create silently fails on canada-central
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
## Describe the bug
**Command Name**
`az storage account or-policy create`
**Errors:**
No error is given. The failure is silent.
## To Reproduce:
- Create a resource group in the Canada Central region: `example-rg`
- Create two StorageV2 accounts in the Canada Central region: `sourceaccount` and `destaccount`
- Create a blob storage container in both accounts: `sourcecont` and `destcont`
- `az storage account or-policy create --resource-group example-rg --account-name destaccount --source-account sourceaccount --destination-account destaccount --source-container sourcecont --destination-container destcont --min-creation-time "2021-02-01T00:00:00Z"`
The command starts executing and ends after a few seconds without printing any information.
Looking at `destaccount` shows that no object replication policy was created.
## Expected Behavior
Performing the same actions on Canada East instead of Canada Central succeeds and prints a JSON object with the created policy information.
## Environment Summary
```
Linux-5.8.0-45-generic-x86_64-with-glibc2.29
Python 3.8.5
Installer: PIP
azure-cli 2.20.0
```
## Additional Context
Contributor guide
Assessment
This issue has not been assessed yet.