Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Resource Group (2.9) error: PowerShell deployment script is missing

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

like image 805
Kim Hoang Avatar asked Aug 22 '16 14:08

Kim Hoang


5 Answers

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.

like image 157
Alex KeySmith Avatar answered Nov 19 '22 19:11

Alex KeySmith


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

like image 33
Nick.McDermaid Avatar answered Nov 19 '22 19:11

Nick.McDermaid


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

like image 2
Sander Schutten Avatar answered Nov 19 '22 20:11

Sander Schutten


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

like image 1
Kim Hoang Avatar answered Nov 19 '22 21:11

Kim Hoang


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.

like image 1
Ronald Wildenberg Avatar answered Nov 19 '22 21:11

Ronald Wildenberg