SKLAK
SKLAK

Reputation: 3965

How to access code of my Azure website?

I dropped my hard drive which contained all my code and now it won't plug in to my computer. I need the code to my Azure website which I deployed earlier asap. Is there a way for me to access this code?

Upvotes: 1

Views: 1200

Answers (3)

Rex Charles
Rex Charles

Reputation: 1369

Bringing this answer up to date, you can also clone the instance of your application to a local git repository by doing the following:

  1. From the Azure Web Portal, click "Deployment"
  2. Click "Source" as "Local Git"
  3. Click "Save"
  4. A clone repository will generate with your source code
  5. From VS Code, Eclipse, or whatever editor or IDE that supports GIT:
    • Copy the Git URI
    • Clone the URI into your project

Upvotes: 0

Zain Rizvi
Zain Rizvi

Reputation: 24636

It's not going to be pretty but once you get your binaries via FTP you can use a Reflector library to decompile your binaries and generate source code from them.

It won't be as good as the original source code, but it'll be functionally equivalent and will make it easier for you get back to where you were.

Upvotes: 0

Joe Raio
Joe Raio

Reputation: 1805

Yes, there are multiple ways.

  • Using the deployment credentials you can connect via FTP and download the files.
  • Using Git source control you can add your azure web app as a remote reference and clone it locally.

Upvotes: 2

Related Questions