Search code examples
gitazuredeploymentbitbucketazure-deployment

Azure git deployment failure


I have a couple of azure web apps deployed from bitbucket. It was all working fine and never had any problems at all. Since my last commit the azure deployment now fails with the following error:

Command: deploy.cmd

Installing Kudu Sync

D:\local\AppData\npm\kudusync -> D:\local\AppData\npm\node_modules\kudusync\bin\kudusync

[email protected] D:\local\AppData\npm\node_modules\kudusync

├── [email protected]

├── [email protected]

└── [email protected] ([email protected])

Test

'D:\Program' is not recognized as an internal or external command,

Handling .NET Web Application deployment.

operable program or batch file.

An error has occured during web site deployment.

Usually when there's a deployment error caused by the code I can get to the root cause by examining the error but this time it seems quite unrelated.

Anyone had a similar problem before?

Thanks


Solution

  • Found the problem. Going through the deploy.cmd script I added a few "echo" to check the variables values and I noticed that the MSBUILD_PATH variable value was D:\Program Files\etc.... and when the script runs there are no quotes around it, hence why the D:\Program error. I added the quotes around it ("%MSBUILD_PATH%") and it's now working fine again.