Azure-docs: Azure Cloud Shell (Powershell) can't find path 'path'

Created on 11 Feb 2019  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

I had no issues following the QuickStart using bash as my CLI but for some reason Powershell can't find my template file or any other file even when clearly the file exists. Even creating a directory and cd to it trigger the issue.

Cannot retrieve the dynamic parameters for the cmdlet. Cannot find path 'Azure:/azuredeploy.json' because it does not exist.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azure-resource-managesvc cxp product-issue triaged

Most helpful comment

In addition to the workaround given in Note for Deploy the template
there is one much simpler workaround:
Use "$HOME/azuredeploy.json" instead of "azuredeploy.json" in a command-line

All 7 comments

@sabdiel Thanks for the question! Did you upload the file to CLI/PowerShell? If yes, logout from Cloud Shell and re-login. If this doesn't work, logout from the Azure portal and re-login.

@sabdiel - Thank you for reporting the issue. It seems an issue with the Cloud shell. The issue is under investigation. Until the problem is resolved, you can deploy the template from your local computer. For the instructions, see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy#deploy-a-template-from-your-local-machine.

Thanks @SadiqhAhmed-MSFT @mumian

I did as instructed by @SadiqhAhmed-MSFT but the issue still persists and as I am able to complete the QuickStart using Bash I also believe is a Cloud Shell (Powershell) issue as indicated by @mumian.

Thanks again.

In addition to the workaround given in Note for Deploy the template
there is one much simpler workaround:
Use "$HOME/azuredeploy.json" instead of "azuredeploy.json" in a command-line

This unfortunately is still an issue in March; the $HOME workaround is helpful.

I don't know why is this issue closed, I´m still it experiencing it, and using $HOME is the only workaround working.

It is by design. Using $HOME is required.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianpowell2017 picture ianpowell2017  Â·  3Comments

varma31 picture varma31  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments