Share via

How to fix file path error in azd deploy script

Samir Talic 0 Reputation points
2024-05-21T09:04:38.8166667+00:00

I'm running an azd-deploy script on Windows 11 in VSCode, but it's not able to find the azd-prepackage script because it's looking for it in the shortened path "User/MyName~1" instead of the full path "User/My Name". How can I change the file path to fix this problem?

Community Center | Not monitored
0 comments No comments

1 answer

Sort by: Most helpful
  1. Chrysostomos Lefteratos 370 Reputation points
    2024-05-21T09:33:25.46+00:00

    does it help?

    $path = "C:\Users\My Name\path\to\azd-prepackage"

    $shortPath = (Get-Item $path).FullName

    Write-Output $shortPath

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.