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









up vote
6
down vote

favorite












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?










share|improve this question

























    up vote
    6
    down vote

    favorite












    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?










    share|improve this question























      up vote
      6
      down vote

      favorite









      up vote
      6
      down vote

      favorite











      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?










      share|improve this question













      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?







      azure service download cloud






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 4 '13 at 22:58









      Voidsbane

      146129




      146129






















          5 Answers
          5






          active

          oldest

          votes

















          up vote
          2
          down vote













          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.






          share|improve this answer




















          • Dennis, what you mean by git deployment of the cloud service? I'm not aware of support for that. There's a voting to have that feature. Did you mean TFS deployment?
            – Fernando Correia
            Jul 5 '13 at 18:17











          • @FernandoCorreia you are right about git deployment on cloud services. I thought git deployment was in this last rev. I don't know if TFS deployment works in a similar way to git deployment with the remotes.
            – Dennis Burton
            Jul 5 '13 at 18:48

















          up vote
          1
          down vote













          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.






          share|improve this answer





























            up vote
            1
            down vote













            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.






            share|improve this answer



























              up vote
              1
              down vote













              Well, Azure now had a new portal and things are bit different. I had to retrieve the code for one of my websites.



              To download the code,



              1. go to App Service. In Overview panel, download publisher profile.

              2. Now go to Deployment credentials panel. Enter the username for FTP and choose a password.

              3. To connect to ftp, you need the URL from publishing profile (example.PublishSettings).

              4. Now fire up your FTP client (FileZilla in my case) and put the FTP address and put the username like sitenameftpusername (exampleftp-exmaple-user for me) and put in the password you choose in Deployment credentials panel.

              wwwroot contains your code!






              share|improve this answer



























                up vote
                0
                down vote













                I realize it's an old question, in case anyone else needs it... I use the Cloud Explorer in Visual Studio 2017. In the Cloud explorer, you can drill down Subscription -> Resource Group -> App Service -> Files. Then, at the bottom of the Cloud Explorer, click "Download Files as a Zip."






                share|improve this answer




















                  Your Answer






                  StackExchange.ifUsing("editor", function ()
                  StackExchange.using("externalEditor", function ()
                  StackExchange.using("snippets", function ()
                  StackExchange.snippets.init();
                  );
                  );
                  , "code-snippets");

                  StackExchange.ready(function()
                  var channelOptions =
                  tags: "".split(" "),
                  id: "1"
                  ;
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function()
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled)
                  StackExchange.using("snippets", function()
                  createEditor();
                  );

                  else
                  createEditor();

                  );

                  function createEditor()
                  StackExchange.prepareEditor(
                  heartbeatType: 'answer',
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader:
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  ,
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  );



                  );













                   

                  draft saved


                  draft discarded


















                  StackExchange.ready(
                  function ()
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f17479045%2fis-there-any-way-download-source-code-from-cloud-services-in-windows-azure%23new-answer', 'question_page');

                  );

                  Post as a guest















                  Required, but never shown

























                  5 Answers
                  5






                  active

                  oldest

                  votes








                  5 Answers
                  5






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes








                  up vote
                  2
                  down vote













                  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.






                  share|improve this answer




















                  • Dennis, what you mean by git deployment of the cloud service? I'm not aware of support for that. There's a voting to have that feature. Did you mean TFS deployment?
                    – Fernando Correia
                    Jul 5 '13 at 18:17











                  • @FernandoCorreia you are right about git deployment on cloud services. I thought git deployment was in this last rev. I don't know if TFS deployment works in a similar way to git deployment with the remotes.
                    – Dennis Burton
                    Jul 5 '13 at 18:48














                  up vote
                  2
                  down vote













                  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.






                  share|improve this answer




















                  • Dennis, what you mean by git deployment of the cloud service? I'm not aware of support for that. There's a voting to have that feature. Did you mean TFS deployment?
                    – Fernando Correia
                    Jul 5 '13 at 18:17











                  • @FernandoCorreia you are right about git deployment on cloud services. I thought git deployment was in this last rev. I don't know if TFS deployment works in a similar way to git deployment with the remotes.
                    – Dennis Burton
                    Jul 5 '13 at 18:48












                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  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.






                  share|improve this answer












                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 4 '13 at 23:25









                  Dennis Burton

                  2,75731830




                  2,75731830











                  • Dennis, what you mean by git deployment of the cloud service? I'm not aware of support for that. There's a voting to have that feature. Did you mean TFS deployment?
                    – Fernando Correia
                    Jul 5 '13 at 18:17











                  • @FernandoCorreia you are right about git deployment on cloud services. I thought git deployment was in this last rev. I don't know if TFS deployment works in a similar way to git deployment with the remotes.
                    – Dennis Burton
                    Jul 5 '13 at 18:48
















                  • Dennis, what you mean by git deployment of the cloud service? I'm not aware of support for that. There's a voting to have that feature. Did you mean TFS deployment?
                    – Fernando Correia
                    Jul 5 '13 at 18:17











                  • @FernandoCorreia you are right about git deployment on cloud services. I thought git deployment was in this last rev. I don't know if TFS deployment works in a similar way to git deployment with the remotes.
                    – Dennis Burton
                    Jul 5 '13 at 18:48















                  Dennis, what you mean by git deployment of the cloud service? I'm not aware of support for that. There's a voting to have that feature. Did you mean TFS deployment?
                  – Fernando Correia
                  Jul 5 '13 at 18:17





                  Dennis, what you mean by git deployment of the cloud service? I'm not aware of support for that. There's a voting to have that feature. Did you mean TFS deployment?
                  – Fernando Correia
                  Jul 5 '13 at 18:17













                  @FernandoCorreia you are right about git deployment on cloud services. I thought git deployment was in this last rev. I don't know if TFS deployment works in a similar way to git deployment with the remotes.
                  – Dennis Burton
                  Jul 5 '13 at 18:48




                  @FernandoCorreia you are right about git deployment on cloud services. I thought git deployment was in this last rev. I don't know if TFS deployment works in a similar way to git deployment with the remotes.
                  – Dennis Burton
                  Jul 5 '13 at 18:48












                  up vote
                  1
                  down vote













                  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.






                  share|improve this answer


























                    up vote
                    1
                    down vote













                    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.






                    share|improve this answer
























                      up vote
                      1
                      down vote










                      up vote
                      1
                      down vote









                      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.






                      share|improve this answer














                      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.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited May 23 '17 at 11:45









                      Community

                      11




                      11










                      answered Jul 5 '13 at 18:32









                      Fernando Correia

                      14.2k1069104




                      14.2k1069104




















                          up vote
                          1
                          down vote













                          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.






                          share|improve this answer
























                            up vote
                            1
                            down vote













                            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.






                            share|improve this answer






















                              up vote
                              1
                              down vote










                              up vote
                              1
                              down vote









                              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.






                              share|improve this answer












                              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.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Feb 28 '15 at 14:52









                              user3394095

                              212




                              212




















                                  up vote
                                  1
                                  down vote













                                  Well, Azure now had a new portal and things are bit different. I had to retrieve the code for one of my websites.



                                  To download the code,



                                  1. go to App Service. In Overview panel, download publisher profile.

                                  2. Now go to Deployment credentials panel. Enter the username for FTP and choose a password.

                                  3. To connect to ftp, you need the URL from publishing profile (example.PublishSettings).

                                  4. Now fire up your FTP client (FileZilla in my case) and put the FTP address and put the username like sitenameftpusername (exampleftp-exmaple-user for me) and put in the password you choose in Deployment credentials panel.

                                  wwwroot contains your code!






                                  share|improve this answer
























                                    up vote
                                    1
                                    down vote













                                    Well, Azure now had a new portal and things are bit different. I had to retrieve the code for one of my websites.



                                    To download the code,



                                    1. go to App Service. In Overview panel, download publisher profile.

                                    2. Now go to Deployment credentials panel. Enter the username for FTP and choose a password.

                                    3. To connect to ftp, you need the URL from publishing profile (example.PublishSettings).

                                    4. Now fire up your FTP client (FileZilla in my case) and put the FTP address and put the username like sitenameftpusername (exampleftp-exmaple-user for me) and put in the password you choose in Deployment credentials panel.

                                    wwwroot contains your code!






                                    share|improve this answer






















                                      up vote
                                      1
                                      down vote










                                      up vote
                                      1
                                      down vote









                                      Well, Azure now had a new portal and things are bit different. I had to retrieve the code for one of my websites.



                                      To download the code,



                                      1. go to App Service. In Overview panel, download publisher profile.

                                      2. Now go to Deployment credentials panel. Enter the username for FTP and choose a password.

                                      3. To connect to ftp, you need the URL from publishing profile (example.PublishSettings).

                                      4. Now fire up your FTP client (FileZilla in my case) and put the FTP address and put the username like sitenameftpusername (exampleftp-exmaple-user for me) and put in the password you choose in Deployment credentials panel.

                                      wwwroot contains your code!






                                      share|improve this answer












                                      Well, Azure now had a new portal and things are bit different. I had to retrieve the code for one of my websites.



                                      To download the code,



                                      1. go to App Service. In Overview panel, download publisher profile.

                                      2. Now go to Deployment credentials panel. Enter the username for FTP and choose a password.

                                      3. To connect to ftp, you need the URL from publishing profile (example.PublishSettings).

                                      4. Now fire up your FTP client (FileZilla in my case) and put the FTP address and put the username like sitenameftpusername (exampleftp-exmaple-user for me) and put in the password you choose in Deployment credentials panel.

                                      wwwroot contains your code!







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Oct 27 '17 at 12:09









                                      TheVillageIdiot

                                      32.2k14107169




                                      32.2k14107169




















                                          up vote
                                          0
                                          down vote













                                          I realize it's an old question, in case anyone else needs it... I use the Cloud Explorer in Visual Studio 2017. In the Cloud explorer, you can drill down Subscription -> Resource Group -> App Service -> Files. Then, at the bottom of the Cloud Explorer, click "Download Files as a Zip."






                                          share|improve this answer
























                                            up vote
                                            0
                                            down vote













                                            I realize it's an old question, in case anyone else needs it... I use the Cloud Explorer in Visual Studio 2017. In the Cloud explorer, you can drill down Subscription -> Resource Group -> App Service -> Files. Then, at the bottom of the Cloud Explorer, click "Download Files as a Zip."






                                            share|improve this answer






















                                              up vote
                                              0
                                              down vote










                                              up vote
                                              0
                                              down vote









                                              I realize it's an old question, in case anyone else needs it... I use the Cloud Explorer in Visual Studio 2017. In the Cloud explorer, you can drill down Subscription -> Resource Group -> App Service -> Files. Then, at the bottom of the Cloud Explorer, click "Download Files as a Zip."






                                              share|improve this answer












                                              I realize it's an old question, in case anyone else needs it... I use the Cloud Explorer in Visual Studio 2017. In the Cloud explorer, you can drill down Subscription -> Resource Group -> App Service -> Files. Then, at the bottom of the Cloud Explorer, click "Download Files as a Zip."







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Nov 8 at 17:19









                                              tallman

                                              305




                                              305



























                                                   

                                                  draft saved


                                                  draft discarded















































                                                   


                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function ()
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f17479045%2fis-there-any-way-download-source-code-from-cloud-services-in-windows-azure%23new-answer', 'question_page');

                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

                                                  Edmonton

                                                  Crossroads (UK TV series)