2017-12-13 8 views
0

これは奇妙です。 AzureアカウントでAzure Powershell 5.0.1を実行していて、this tutorialをサポートするAppサービスプランを作成しようとしています。ステップAzure Powershellの「File not found」pscloudshellエラー

az appservice plan create --name myAppServicePlan --resource-group myResourceGroup --sku FREE 

以下のエラーメッセージは、「pscloudshell」ファイル(私のAzureアカウントには存在しないことが確認済み)を参照しています。

私は を試してみた - (それはない)ファイルが存在することを確認する - 文字列「pscloudshell」と上のウェブ検索「FileNotFoundError:[WinError 3] pscloudshell」(それはかなりまばらなのです)と

  • 文字列 'pscloudshell'でStackoverflowを検索したところ、 'あなたの検索結果は一致しませんでした。'が見つかりました。私はこれを経験する最初の人でなければなりません!

私が話しているのエラーが与える

PS Azure:\> az appservice plan create --name myAppServicePlan2 --resource-group myResourceGroup2 --sku FREE 
Traceback (most recent call last): 
    File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\runpy.py", line 193, in _run_module_as_main 
    "__main__", mod_spec) 
    File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\runpy.py", line 85, in _run_code 
    exec(code, run_globals) 
    File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\__main__.py", line 23, in <module> 
    exit_code = azure.cli.main.main(args) 
    File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\main.py", line 28, in main 
    os.makedirs(azure_folder) 
    File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\os.py", line 210, in makedirs 
    makedirs(head, mode, exist_ok) 
    File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\os.py", line 220, in makedirs 
    mkdir(name, mode) 
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\ContainerAdministrator\\CloudDrive\\.pscloudshell' 

AZ -vです:

azure-cli (2.0.22) 

acr (2.0.16) 
acs (2.0.21) 
advisor (0.1.0) 
appservice (0.1.21) 
backup (1.0.3) 
batch (3.1.7) 
batchai (0.1.3) 
billing (0.1.6) 
cdn (0.0.10) 
cloud (2.0.10) 
cognitiveservices (0.1.9) 
command-modules-nspkg (2.0.1) 
configure (2.0.12) 
consumption (0.2.0) 
container (0.1.14) 
core (2.0.22) 
cosmosdb (0.1.15) 
dla (0.0.15) 
dls (0.0.18) 
eventgrid (0.1.5) 
extension (0.0.6) 
feedback (2.0.6) 
find (0.2.7) 
interactive (0.3.11) 
iot (0.1.14) 
keyvault (2.0.14) 
lab (0.0.13) 
monitor (0.0.13) 
network (2.0.18) 
nspkg (3.0.1) 
profile (2.0.15) 
rdbms (0.0.9) 
redis (0.2.10) 
reservations (0.1.0) 
resource (2.0.19) 
role (2.0.15) 
servicefabric (0.0.6) 
sql (2.0.16) 
storage (2.0.20) 
vm (2.0.19) 

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe' 
Extensions directory 'C:\Users\ContainerAdministrator\CloudDrive\.pscloudshell\.azure\cliextensions' 

Python (Windows) 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] 

Legal docs and information: aka.ms/AzureCliLegal 
+0

あなたの紺碧の雲のシェルで 'az -v'コマンドを実行できますか? –

答えて

1

Azure CLIコマンドをCloudシェルのPowerShellコンソールで実行しようとしていますが、Azure CLIコマンドをクラウドシェルのBashシェルで実行する必要があります。 enter image description here

+0

ルーキーエラー...ありがとう – Nimbocrux

2

I've tried - verifying that the file exists (it doesn't)

を私は古いクラウドシェルを使用してエラーを再現、私は見つけることができませんそのディレクトリの.pscloudshell

それから私は、Azureのリソースグループからそれを削除し、新しいクラウドシェルを作成し、それが正常に動作します:

PS C:\Users\ContainerAdministrator\CloudDrive> pwd 

Path 
---- 
C:\Users\ContainerAdministrator\CloudDrive 


PS C:\Users\ContainerAdministrator\CloudDrive> ls 


    Directory: C:\Users\ContainerAdministrator\CloudDrive 


Mode    LastWriteTime   Length Name 
----    -------------   ------ ---- 
d-----  12/13/2017 4:30 AM    .pscloudshell 

Azureのクラウドシェルといくつかの更新があるようで、あなたのオリジナルのクラウドシェルと再を削除してください。新しいものを作成します

関連する問題