az storage account or-policy update
not working with -p @policy.json
#28356
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Storage
az storage
Milestone
Describe the bug
Updating an object replication policy with
az storage account or-policy update --account-name <name> -g <rg> -p @policy.json --policy-id <id>
fails with an error.Related command
az storage account or-policy update
Errors
I added a print statement for
properties
in the code and this prints out astr
of the file content. The JSON parsing of the file is missing.Issue script & Debug output
N/A
Expected behavior
It should work and parse the JSON.
Environment Summary
azure-cli 2.57.0
core 2.57.0
telemetry 1.1.0
Extensions:
bastion 0.3.0
ssh 2.0.2
Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2
Python location '/opt/az/bin/python3'
Extensions directory '/home/.../.azure/cliextensions'
Python (Linux) 3.11.7 (main, Jan 31 2024, 05:30:12) [GCC 9.4.0]
Additional context
No response
The text was updated successfully, but these errors were encountered: