az commands fail when run in VSCode terminal
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
az commands fail when run in VSCode terminal, also breaks **terraform init** etc.
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az version`
**Errors:**
```
DLL load failed: The specified procedure could not be found.
Traceback (most recent call last):
cli\Lib\site-packages\knack\cli.py, ln 231, in invoke
azure\cli\core\commands\__init__.py, ln 657, in execute
azure\cli\core\commands\__init__.py, ln 720, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 691, in _run_job
azure\cli\core\commands\__init__.py, ln 328, in __call__
site-packages\azure\cli\core\__init__.py, ln 807, in default_command_handler
azure\cli\command_modules\util\custom.py, ln 30, in show_version
site-packages\azure\cli\core\util.py, ln 409, in get_az_version_json
site-packages\azure\cli\core\util.py, ln 256, in get_installed_cli_distributions
site-packages\azure\cli\telemetry\__init__.py, ln 9, in
cli\Lib\site-packages\portalocker\__init__.py, ln 4, in
cli\Lib\site-packages\portalocker\portalocker.py, ln 9, in
ImportError: DLL load failed: The specified procedure could not be found.
```
## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- open terminal inside VSCode terminal (the same error for pwsh, cmd, git bash)
- please note it works when run in standalone terminal
- `az version -o={}`
## Expected Behavior
## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI
azure-cli 2.22.1
```
## Additional Context
Contributor guide
Assessment
This issue has not been assessed yet.