azure-dev: [Issue] azd CLI is not detected in VS Code terminal
- Make sure you’ve installed the latest version using instructions in the wiki
Output from azd version
azd version 0.5.0-beta.3 (commit 1c23678aade587d5b9685a256a3c1d2d7f4b42e0)
Output from az version
Run az version and copy and paste the output here (minimum required version is 2.38.0):
{
“azure-cli”: “2.43.0”,
“azure-cli-core”: “2.43.0”,
“azure-cli-telemetry”: “1.0.8”,
“extensions”: {}
}
Describe the bug While the azd cli can be run from the Windows terminal across different shells,
it fails when done via VS Code terminal
I presume this is the root cause for the failure of azd init when executed via VS Code Command Palette
Apparently it cannot detect azd.
To Reproduce Run the azd -h command in the VS Code terminal or Any azd command via the VS Code command palette
Expected behavior The azd init command should be run and the project files generated.
Environment Information on your environment: * Language name and version * IDE and version : [e.g. Visual Studio 16.3] VS Code Insider Version: 1.75.0-insider (user setup) Commit: 1379f0375440df946adc62f7afb8375dd45d5adf Date: 2023-01-17T05:21:07.217Z Electron: 19.1.9 Chromium: 102.0.5005.194 Node.js: 16.14.2 V8: 10.2.154.23-electron.0 OS: Windows_NT x64 10.0.22623 Sandboxed: Yes
Additional context I’m presuming the azd-cli is not being added to the path which can be detected by VS Code terminal when installation is done via MSI azure-cli-2.43.0.msi
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (9 by maintainers)
Did you completely close VS Code after installing azd?