Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Node.js Express App scaffold.xml Missing

Am following Microsoft's "Getting Started" tutorial to deploy a Node.js Express app as a Cloud Service.

After carefully installing all the tools on two machines, one Win 7 and one Win 8, I get down to the point of generating "Hello World" and the tutorial suggests running the intuitively named: New-AzureServiceProject helloworld in Windows PowerShell.

Here is what happens:

PS C:\node> New-AzureServiceProject helloworld New-AzureServiceProject : Could not find a part of the path 'C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile\Resources\Scaffolding\General\scaffold.xml'. At line:1 char:1 + New-AzureServiceProject expressapp + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzureServiceProject], DirectoryNotFoundException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding.NewAzureServiceProjectCommand

Taking a look at my system after installing Powershell and the Azure SDK as instructed, I DO have a directory:

C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile

However, that directory does NOT have a subdirectory "Resources" and hence it never finds the scaffold.xml file....

I tried creating the subdirectory Resources\Scaffolding\General inside of AzureRM.profile. That changed the error to simply "could not find scaffold.xml"

I tried setting the write positions on "General" to be wide open. No change.

The above error is on the Win 8 machine. On my Win 7 machine after digging more carefully into the install and going multiple layers deep into prereqs not mentioned in the tutorial, AzureRM.Profile ends up installed in C:\Program Files\C:\Program Files\WindowsPowerShell\Modules rather than in C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager but the behavior is identical.

I have looked all over the web and have not been able to find any information on the missing scaffold.xml that might point to a solution. Is this a template that New-AzureServiceProject needs to create the app? Or is this something that is supposed to be generated by New-AzureServiceProject?

Any suggestions would be appreciated...

Thanks!

like image 718
David Hetherington Avatar asked Dec 14 '22 07:12

David Hetherington


2 Answers

I solved this problem by copying folder
C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Resources
to
C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile

like image 74
Redman Avatar answered Dec 29 '22 15:12

Redman


Need to copy the Resources folder from:

C:\Program Files\WindowsPowerShell\Modules\Azure\3.1.0\Compute

to

C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\2.3.0\Resources\Scaffolding\General

like image 35
Bryan Jenks Avatar answered Dec 29 '22 13:12

Bryan Jenks