Azure:是否有一种方法可以查看在Azure中部署的文件?

169

Azure中是否有可用的“查看”文件?

当我登录Azure查看我部署的网站时,没有明显的方法可以查看Azure托管的文件。


我可以看到有Visual Studio Online选项,它允许您实时编辑服务器代码,但这不是我所需要的。我只想检查某些文件是否已部署,其他文件是否未部署。

13个回答

0

好的,如果这对你有帮助的话。 我需要检查我的 API 生成的日志文件,所以我使用你已经启用了的 FTP 帐户,带有用户名和密码,只需按照以下步骤进行:

  1. 转到 Azure 帐户
  2. 点击 App Services(我猜你在那里发布了你的代码)
  3. 点击你想要获取/检查文件的应用程序
  4. 在左侧的“部署”下,选择“部署中心”
  5. 在右侧选择“FTPS 凭据”
  6. 只需复制 FTPS 终点、用户名和密码
  7. 使用类似 FileZilla 的 FTP 客户端连接到你的应用程序文件夹

这样就足够获取你的文件并检查任何更改或你想要的内容。

祝好。


0
我最近在我的雇主的防火墙后面将一个应用服务发布到Azure时遇到了连接问题。以下是完整的错误信息:
Error 1 Web deployment task failed. (Could not connect to the remote computer [...]). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.) 

这显然是一个阻碍你将网站发布到雇主公司域名的公共云的问题。不过,不用担心,有一个解决方案;通过禁用SCM。这个解决方案基于StackOverflow上Patrick McCurley的回答。
Go to the Azure Portal.
Click on App Services.
Click on your application service.
Click on Application settings.
Scroll down to Application settings.
Click Add new setting, and add the following entry:

名称:WEBSITE_WEBDEPLOY_USE_SCM,值:false
Click on Save and close the Application settings window.
Click on your application service.
Download the publish profile by clicking on Get publish profile.
Import the publish profile when publishing your application service to Azure from Visual Studio.

这将有效地禁用SCM,并使您能够将您的应用程序服务发布到Azure。

这就是在其他结果无效时帮助我的东西。 - undefined

-4

由于您正在使用Azure网站,Azure希望为您“管理”它,因此您无法连接到VM本身。如果您使用的是云服务,您可以从Azure控制台获取RDP信息,然后远程访问该机器。

对于您的情况,您可以使用FTP作为一种选择。这里有一篇博客描述了一种方法:

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

这里有另一种使用WebMatrix的选项: http://www.microsoft.com/web/post/how-to-edit-a-site-hosted-on-windows-azure-with-webmatrix


2
这实际上是不准确的,正如我在我的回答中所解释的那样:您可以通过kudu连接到Azure Web App并访问文件系统。 - David Makogon

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接