Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 我可以在Visual Studio代码中使用cmd而不是PowerShell启动az登录吗?_Azure_Powershell_Ubuntu_Visual Studio Code_Windows Subsystem For Linux - Fatal编程技术网

Azure 我可以在Visual Studio代码中使用cmd而不是PowerShell启动az登录吗?

Azure 我可以在Visual Studio代码中使用cmd而不是PowerShell启动az登录吗?,azure,powershell,ubuntu,visual-studio-code,windows-subsystem-for-linux,Azure,Powershell,Ubuntu,Visual Studio Code,Windows Subsystem For Linux,我有什么问题? 在Visual Studio代码中从终端运行“az login”时,我遇到以下错误: /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe:无效 论据 什么是环境? 我在Windows10中运行VisualStudio代码(版本1809,操作系统构建17763.1158)。我在WSL1上使用Ubuntu18.04,我已经将终端设置为使用“C:\Windows\System32\bash.exe” 从VS代码启动

我有什么问题? 在Visual Studio代码中从终端运行“az login”时,我遇到以下错误:

/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe:无效 论据

什么是环境? 我在Windows10中运行VisualStudio代码(版本1809,操作系统构建17763.1158)。我在WSL1上使用Ubuntu18.04,我已经将终端设置为使用“C:\Windows\System32\bash.exe”


从VS代码启动PowerShell时,我似乎遇到了问题。有人知道在进行az登录时,是否可以将VS代码配置为使用cmd而不是PowerShell?欢迎提出任何其他建议。谢谢。

对于可视化代码,如果需要终端时要使用cmd,可以将默认shell设置为cmd。看起来是这样的:

1.

2.


当您完成这两个操作时,您可以在需要新的命令时获得cmd终端。这样,cmd就是默认值。

对于可视代码,如果需要终端时要使用cmd,可以将默认shell设置为cmd。看起来是这样的:

1.

2.


当您完成这两个操作时,您可以在需要新的命令时获得cmd终端。这样,cmd是默认值。

该问题有任何更新吗?这能解决你的问题吗?谢谢查尔斯,这肯定回答了我的问题。我遇到的具体问题(这不是我问的问题)是,在这种情况下,我的az登录会抛出一个无效参数错误,我必须使用Ctrl+Z返回到命令,这通过运行sudo az登录来解决,以便成功登录。该问题有任何更新吗?这能解决你的问题吗?谢谢查尔斯,这肯定回答了我的问题。我遇到的具体问题(这不是我问的问题)是,在这种情况下,我的az登录会抛出一个无效参数错误,我必须使用Ctrl+Z返回命令,这通过运行sudo az登录来解决,以便成功登录。