有没有办法在Azure中查看已部署的文件?

时间:2014-10-15 12:13:21

标签: azure azure-web-sites

是否有文件"查看"在Azure中可用吗?当我登录azure查看我已部署的网站时,没有明显的方法可以确切地看到Azure正在托管的文件。

我希望能够确切地看到那些文件。我可以看到Visual Studio Online选项允许您实时编辑服务器代码但这比我需要的更多。我只是希望能够检查某些文件是否已部署而其他文件未部署。

9 个答案:

答案 0 :(得分:134)

如果您只是想环顾四周,并查看部署中的各种目录和文件,则可以使用网址格式http://<yoursitename>.scm.azurewebsites.net

进入网站的“Kudu”信息中心

这将为您提供基于Web的仪表板,包括一个调试控制台(基于Web),您可以在其中浏览各种目录(并且目录也将以可视方式显示)。

可以在this post from the Azure Websites team找到更多信息。

答案 1 :(得分:66)

在Visual Studio中,在窗口&#34; Server Explorer&#34;您点击并连接&#34; Azure&#34;。

=&GT;应用服务

=&GT;您的网站名称

=&GT;文件

在这里,您可以看到所有文件,并且可以直接在Visual Studio中编辑它们。

Edit File on Azure

答案 2 :(得分:29)

您可以使用应用服务编辑器(以前称为 Visual Studio Online )。它可以在您的webapp下找到 - &gt; Azure门户中的“开发工具”部分。

答案 3 :(得分:6)

我知道这很旧,但是我刚刚找到它,并从中得到了一些有用的提示。如果您使用的是App Service,现在也可以通过浏览器选项执行此操作:

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

您可以从Azure门户到达那里,然后转到您的App服务,然后向下滚动到“开发工具”,然后单击“ App Service编辑器”。

enter image description here

答案 4 :(得分:1)

在VS2017中,可以使用Cloud Explorer在Azure中查看文件,但是每次打开查看文件的文件夹都会调用与云的连接,因此您必须等待,这有点慢。

要打开Cloud Explore,AppModel appModel = new AppModel(componentName); appModel.init(ai, pm); // other stuff Right click on project > Publish > Manage in Cloud Explore

enter image description here

答案 5 :(得分:1)

除了接受的答案, 您可以通过转到guard let pixelBufferPool = assetWriterPixelBufferInput.pixelBufferPool else { return } var maybePixelBuffer: CVPixelBuffer? = nil let status = CVPixelBufferPoolCreatePixelBuffer(nil, pixelBufferPool, &maybePixelBuffer) if status != kCVReturnSuccess { return } guard let pixelBuffer = maybePixelBuffer else { return } CVPixelBufferLockBaseAddress(pixelBuffer, []) let pixelBufferBytes = CVPixelBufferGetBaseAddress(pixelBuffer)! let bytesPerRow = CVPixelBufferGetBytesPerRow(pixelBuffer) let region = MTLRegionMake2D(0, 0, Int(videoSize.width), Int(videoSize.height)) texture.getBytes(pixelBufferBytes, bytesPerRow: bytesPerRow, from: region, mipmapLevel: 0) let frameTime = CACurrentMediaTime() let presentationTime = CMTimeMakeWithSeconds(frameTime, 240) assetWriterPixelBufferInput.append(pixelBuffer, withPresentationTime: presentationTime) CVPixelBufferUnlockBaseAddress(pixelBuffer, []) 来打开ssh会话。

很长时间以来,我一直在寻找一种Linux风格的终端来查看我已部署的文件和环境变量。使用此工具,您可以查看文件,检查和设置环境变量,直接进行数据库迁移等。希望这是有用的。

答案 6 :(得分:0)

您可以使用Visual Studio代码和Azure扩展enter image description here

答案 7 :(得分:0)

是的,您有很多选择可以看到

  1. 通过单击控制台选项(运行“ dir”命令,将列出所有文件)
  2. 通过点击“应用服务编辑器(预览)”选项,

enter image description here

答案 8 :(得分:-3)

由于您使用的是Azure网站,因此Azure希望“管理”#34;它适合您,因此您无法连接到VM本身。如果您使用的是Cloud Service,则可以从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