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?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,717 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Chrysostomos Lefteratos 285 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

    1 person found this answer helpful.