az network vnet create command fails with an unexpected error "option values must be strings"
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
Even though the cli reports this error, the portal shows the vnet and subnet being created successfully
**Command Name**
`az network vnet create`
**Errors:**
```
The command failed with an unexpected error. Here is the traceback:
option values must be strings
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.48.1/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/homebrew/Cellar/azure-cli/2.48.1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 680, in execute
self.cli_ctx.save_local_context(parsed_args, self.commands_loader.command_table[command].arguments,
File "/opt/homebrew/Cellar/azure-cli/2.48.1/libexec/lib/python3.10/site-packages/azure/cli/core/__init__.py", line 154, in save_local_context
self.local_context.set(lca.scopes, lca.name, value)
File "/opt/homebrew/Cellar/azure-cli/2.48.1/libexec/lib/python3.10/site-packages/azure/cli/core/local_context.py", line 116, in set
self._local_context_file.set_value(scope.lower(), argument, value)
File "/opt/homebrew/Cellar/azure-cli/2.48.1/libexec/lib/python3.10/site-packages/knack/config.py", line 239, in set_value
config.set(section, option, value)
File "/opt/homebrew/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/configparser.py", line 1205, in set
self._validate_value_types(option=option, value=value)
File "/opt/homebrew/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/configparser.py", line 1190, in _validate_value_types
raise TypeError("option values must be strings")
TypeError: option values must be strings
```
## 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 network vnet create --name {} --resource-group {} --address-prefixes {} --subnet-name {} --subnet-prefixes {}`
## Expected Behavior
## Environment Summary
```
macOS-13.3.1-arm64-arm-64bit, Darwin 22.4.0
Python 3.10.11
Installer: HOMEBREW
azure-cli 2.48.1
Extensions:
init 0.1.0
interactive 0.4.6
Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0
```
## Additional Context
Contributor guide
Assessment
This issue has not been assessed yet.