5
votes

I followed this link (https://azure.microsoft.com/en-us/documentation/articles/vs-azure-tools-resource-groups-deployment-projects-create-deploy/) to create azure resource group. However, I got the error when deploying the Project "PowerShell deployment script is missing"

Does anyone knows what cause this error? I am using VS2013 and Azure sdk 2.9

6

6 Answers

8
votes

I burned a lot of time debugging the same problem!

Make sure in the file properties for the ps1 file are set to Build Action = "Content"

This will ensure that it's copied to the bin folder during building.

5
votes

According to this

http://blog.thingsgeeky.co.uk/visual-studio-azure-sdk-json-outline-blank/

Your ps1 file must be called Deploy-AzureResourceGroup.ps1

I had renamed mine. I renamed it back and the error went away

2
votes

In my case rebooting didn't help and the Build Action was already set to 'Content'. What did work for me is to clear the recent list of the Deploy context menu and then click 'New' to create a new deployment config.

clean recent list

1
votes

I found a very stupid solution. I just need to restart my machine and the issue is gone. It needs a reboot after installation from WebPI

1
votes

Just had the same error. You have to build your resource group project in Visual Studio before you can actually deploy from it.

I created a resource group project and immediately tried to deploy but that doesn't work because the project hadn't built yet.

0
votes

I know this is an old thread but still relevant. I had to right click-->Properties on the "Deploy-AzureResourceGroup.ps1" file and select one of the copy options "Copy always" or "Copy if newer"

Screenshot