Azure CLI update Log Profiles Error.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
Hello Everyone
i'm Trying to update the log-profiles from az-cli but when i want update the locations value i receive a error related with the type of values, the object i'm try to send is an array but the az-cli show an error about this object isn't iterable.
we try this two commands but receive the same error
-- az monitor log-profiles update --name default --set location="eastus" **--set locations="global","eastasia"**
-- az monitor log-profiles update --name default --set location="eastus" **--set locations=["global","eastasia"]**
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az monitor log-profiles update`
**Errors:**
```
Refuse str type as a valid iter type.
Traceback (most recent call last):
Temp\pip-unpacked-wheel-mtleih48\knack\cli.py, ln 215, in invoke
cli\core\commands\__init__.py, ln 654, in execute
cli\core\commands\__init__.py, ln 718, in _run_jobs_serially
cli\core\commands\__init__.py, ln 709, in _run_job
cli\command_modules\monitor\_exception_handler.py, ln 42, in monitor_exception_handler
Local\Temp\pip-unpacked-wheel-qqxn1krb\six.py, ln 703, in reraise
cli\core\commands\__init__.py, ln 688, in _run_job
...
Temp\pip-unpacked-wheel-yzud0ihl\msrest\serialization.py, ln 523, in _serialize
Temp\pip-unpacked-wheel-yzud0ihl\msrest\serialization.py, ln 776, in serialize_data
Temp\pip-unpacked-wheel-yzud0ihl\msrest\serialization.py, ln 852, in serialize_iter
msrest.exceptions.SerializationError: Refuse str type as a valid iter type.
```
## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- _Put any pre-requisite steps here..._
- `az monitor log-profiles update --name {} --set {} --set {} {}`
## Expected Behavior
## Environment Summary
```
Windows-10-10.0.18362-SP0
Python 3.6.8
Installer: MSI
azure-cli 2.11.1
```
## Additional Context
Contributor guide
Assessment
This issue has not been assessed yet.