Azure PowerShell中的CD失败

时间:2019-01-25 16:20:17

标签: azure cd azure-cloud-shell

在Powershell cd中有效,但在我的Azure Cloud Shell中无效。我想念什么?

复制的会话显示了我尝试进入quickstart目录(在powershell外壳中创建)

Welcome to Azure Cloud Shell

Type "az" to use Azure CLI 2.0
Type "help" to learn about Cloud Shell

MOTD: Switch to Bash from PowerShell: bash

VERBOSE: Authenticating to Azure ...
VERBOSE: Building your Azure drive …

Azure:/
PS Azure:\> ls -F
clouddrive@  quickstart/  test/

Azure:/
PS Azure:\> cd quickstart
cd : Cannot find path 'Azure:/quickstart' because it does not exist.
At line:1 char:1
+ cd quickstart
+ ~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Azure:/quickstart:String) 
                                           [Set-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

1 个答案:

答案 0 :(得分:3)

您可以使用“ cd $ HOME / quickstart ”来实现。

为便于说明,请检查以下屏幕截图。

enter image description here

希望这会有所帮助!!干杯!! :)