Development Tip

Is there a way to view deployed files in Azure?

yourdevel 2020. 9. 25. 23:40
반응형

Is there a way to view deployed files in Azure?


Is there a file "view" available in Azure? When I log in to azure to look at a website I've deployed there is no obvious way I have spotted to see exactly what files Azure is hosting.

I'd love to be able to see exactly what files are there. I can see there's the Visual Studio Online option which allows you to live edit your server code but that is more than I need. I just want to be able to check that certain files are deployed and others are not.


If you're just trying to look around, and see the various directories and files in your deployment, you can enter the site's "Kudu" dashboard, using the url format http://<yoursitename>.scm.azurewebsites.net

This will give you a web-based dashboard, including a debug console (web-based) where you can explore your various directories (and the directories will show up visually as well).

More info can be found in this post from the Azure Websites team.


In Visual Studio, in the window "Server Explorer" you click and connect on "Azure".

=> App Service

=> Your site name

=> Files

Here you see all your files and you can edit them directly in Visual Studio.

Edit File on Azure


@@@@@ UPDATE 19/08/2019 @@@@@

For some time now, it hasn't worked anymore.... :(

Here is another way to do it: By FTP !

From the Azure portal, in the "App Service" section of your website, go to "Deployment Center" > FTP > Dashboard

There is the FTPS Endpoint => ftp://.....ftp.azurewebsites.windows.net/site/wwwroot

And username, password information.

Install FileZilla Client! (https://filezilla-project.org/)

Enter Host with "FTPS Endpoint" the "username" and "password" and then login quickly!


You can use App Service Editor (previously known as Visual Studio Online). It can be found under your webapp -> Development Tools section in the Azure Portal.


I know this is old, but I just found it, and got some useful tips from it. If you are using an App Service, there is now a browser option to do this as well:

https://YourAppService.scm.azurewebsites.net/dev/wwwroot/

You can get there from the Azure portal, then go to your App service, then scroll down to Development Tools, and click on "App Service Editor".

enter image description here


In VS2017/2019, there's Cloud Explorer to view files in Azure, but each time open folder to view files will invoke connection to cloud, so you have to wait, that's a bit slow.

To open Cloud Explore, Right click on project > Publish > Manage in Cloud Explore, or Top Menu > View > Cloud Explorer.

enter image description here


Since you are using Azure Websites, Azure wants to "manage" it for you, and as a result, you cannot connect to the VM itself. If you were using a Cloud Service, you can obtain the RDP information from the Azure Console and just remote into the machine.

For your situation, you can use FTP as an option. Here is blog that describes one approach:

http://blogs.msdn.com/b/avkashchauhan/archive/2012/06/19/windows-azure-website-uploading-downloading-files-over-ftp-and-collecting-diagnostics-logs.aspx

Here is another option using WebMatrix: http://www.microsoft.com/web/post/how-to-edit-a-site-hosted-on-windows-azure-with-webmatrix

참고URL : https://stackoverflow.com/questions/26382334/is-there-a-way-to-view-deployed-files-in-azure

반응형