Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way download source code from "cloud services" in Windows Azure?

I don't have the latest version of the code deployed in the company's Windows Azure account, and I need to provide a fix to it. I know this can be done with "Azure Web Sites", but I'm not sure it's possible with "Azure Cloud Services".

Can anyone help?

like image 1000
Voidsbane Avatar asked Jul 04 '13 22:07

Voidsbane


3 Answers

If you did git deployment of the cloud service, you could fetch from the remote the same way you could with Windows Azure Web Sites. You may have updated the cloud service by uploading the package to blob storage first, in which case you could get the package. But, the package is not source code.

From a process perspective, you should label your deployments with a tag that can be matched in source control. You never know when a "hotfix" needs to be added to a branch off of the current production code.

like image 61
Dennis Burton Avatar answered Oct 17 '22 06:10

Dennis Burton


In Windows Azure Cloud Services, instances are uploaded in the form of .cspkg packages.

According to the documentation, the Get Package operation retrieves a cloud service package for a deployment and stores the package files in Windows Azure Blob storage.

You could then download and extract this package (it is in ZIP file format) to retrieve its content. See this answer for more details.

In the case of ASP.NET applications, that will be a mixture of text files and binary assemblies (.DLLs). In the case of Java, it will be .jar files. You could use the appropriate decompiler to retrieve an approximation of the original source code. But it probably wouldn't be safe to change this reverse-engineered source code and upload it back into production, at least not without extensive testing.

like image 36
Fernando Correia Avatar answered Oct 17 '22 07:10

Fernando Correia


yes. you can download it with an ftp client.

Ggo to dashboard of your site on https://manage.windowsazure.com. Get credentials (username , password, host) and connect with you preferred ftp client.

like image 1
user3394095 Avatar answered Oct 17 '22 05:10

user3394095