Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @DataCarniv0r,
Thank you for reaching us regarding try to access your Azure app's source code after your developer's departure. Since the application is running fine but you can't get to the GitHub repository.
Since your Azure App Service (.NET 8.0) app is running properly and you can see the GitHub connection in Deployment Center (even without repo access), you can still download the deployed files directly from Azure.
Option 1: Download Files Using Kudu (Advanced Tools)
Kudu is the built-in tool in Azure App Service that lets you browse and download your deployed application files directly from the server. It’s the easiest browser-based method to access the contents of D:\home\site\wwwroot (where your app runs)
Steps:
- Go to Azure Portal > open your App Service
- In the left menu, under Development Tools, select Advanced Tools.
- Click Go to open Kudu (
https://<yourappname>.scm.azurewebsites.net). - In Kudu, select Debug Console > CMD (or PowerShell).
- Navigate to
site\wwwroot.
Here you’ll see all deployed files, such as DLL files , appsettings.json, Static files (.js, .css, etc.), Razor views (.cshtml) if not precompile
To download:
- Single file : Click the file and choose Download.
- Entire wwwroot folder : Use the Zip/Download option to download everything as a ZIP file.
This method gives you a full copy of the live deployment directly from Azure, without needing external tools.
Option 2: Use FTPS (FTP over SSL) – For Bulk Downloads
FTPS is a secure file transfer method supported by Azure App Service. It’s useful when you want to download large amounts of deployed content using an FTP client.
Steps:
- In the Azure Portal, open your App Service.
- Go to Deployment Center > FTPS credentials.
- Copy the FTPS endpoint (for example:
ftps://<your-app-name>.azurewebsites.net/site/wwwroot). - Use the Application scope credentials shown there.
- Username is usually:
<your-app-name>\$<your-app-name> - Reset the password if needed.
For better security, go to: Configuration > General settings > FTP state and set it to FTPS Only.
Use an FTPS client like FileZilla, WinSCP, or Cyberduck and connect using the FTPS protocol (port 21 explicit or 990 implicit). Enter the FTPS endpoint as the host and use the credentials from the Azure portal. After connecting, go to /site/wwwroot to download individual files or entire folders. This gives you full access to your deployed application files.
Recover Near-Original Source Code (Decompile DLLs):
If the original source code isn’t available, you can decompile the deployed .NET assemblies.
First, download your main DLL (for example, YourApp.dll) and related dependencies from wwwroot using Kudu or FTPS.
Then use a free decompilation tool such as:
- ILSpy (open source) – load the DLL and export the decompiled C# files or a full project.
- JetBrains dotPeek – open the assembly and export it as a Visual Studio solution.
You can also use Visual Studio to decompile assemblies directly by enabling the “Decompile source code” option.
The recovered code will closely match the original logic (including API integrations), but it won’t include original comments and may not preserve exact naming. After exporting, create a new .NET 8 project locally, add the files, run dotnet restore, and test the application.
Recommended Next steps:
Review the downloaded files for any hard-coded secrets (like API keys) and move them to Application Settings as environment variables. Create your own GitHub repo, upload the recovered code, and update Deployment Center to use your repo. If needed, temporarily disable WEBSITE_RUN_FROM_PACKAGE for easier edits, but re-enable it for production stability.
Reference:
https://learn.microsoft.com/en-us/azure/app-service/resources-kudu
https://learn.microsoft.com/en-us/azure/app-service/deploy-zip?tabs=cli
https://learn.microsoft.com/en-us/azure/app-service/deploy-ftp?tabs=portal
https://learn.microsoft.com/en-us/azure/app-service/deploy-configure-credentials?tabs=cli
https://learn.microsoft.com/en-us/visualstudio/debugger/decompilation?view=visualstudio
Kindly let us know if the above comment helps or you need further assistance on this issue.
Please "accept" if the information helped you. This will help us and others in the community as well.