【问题标题】:How to add Microsoft.VisualStudio.SnapshotDebugger.AzureAppServices.Standalone extension in ARM template?如何在 ARM 模板中添加 Microsoft.VisualStudio.SnapshotDebugger.AzureAppServices.Standalone 扩展?
【发布时间】:2017-11-23 17:16:02
【问题描述】:

我想通过我的 Azure 应用服务 ARM 模板文件添加 Microsoft.VisualStudio.SnapshotDebugger.AzureAppServices.Standalone 扩展。此时,我需要在 Visual Studio 2017 15.5 预览版中打开 Cloud Explorer 并单击我的应用程序,然后选择“附加快照调试器”。它会提示我将 Snapshot Debugger 扩展安装到应用服务,安装后我必须重新启动应用服务。该功能非常适合生产调试,但是当我的应用程序部署时,我怎样才能在那里准备好它呢?

我还发现一个 Nuget 包有 the same name。我应该将此包添加到我的应用程序中吗?扩展和包之间有什么关系?我知道此功能处于预览阶段,但希望有人能提供一些线索。

【问题讨论】:

  • 你有关于这个线程的任何更新吗?如果有用,请将其标记为答案,以帮助更多有相同问题的社区。​​span>

标签: azure azure-web-app-service azure-application-insights


【解决方案1】:

我想通过我的 Azure App Service ARM 模板文件添加 Microsoft.VisualStudio.SnapshotDebugger.AzureAppServices.Standalone 扩展

我们可以通过在网站 ARM 模板中添加以下代码来做到这一点。您可以从另一个SO thread 获取详细步骤,只需将扩展名更改为Microsoft.VisualStudio.SnapshotDebugger.AzureAppServices.Standalone。我在我这边测试它,它工作正常。

"resources": [
        {
          "apiVersion": "2015-08-01",
          "name": "Microsoft.VisualStudio.SnapshotDebugger.AzureAppServices.Standalone",
          "type": "siteextensions",
          "dependsOn": [
            "[resourceId('Microsoft.Web/Sites', variables('webSiteName'))]"
          ],
          "properties": {
          }
        }
      ], 

我应该将此包添加到我的应用程序中吗?

我也测试了安装了nuget的Asp.net和Asp.net核心项目,但是发布到azure后,没有安装扩展。

扩展和包有什么关系?

根据扩展描述,它是 Visual Studio Snapshot Debugger 独立站点扩展的 Nuget 包。 我们可以使用 Azure kudu 工具(https://{WebAppName}.scm.azurewebsites.net)获取详细信息,以检查

下已安装的扩展
D:\home\SiteExtensions\Microsoft.VisualStudio.SnapshotDebugger.AzureAppServices.Standalone

【讨论】:

  • 谢谢,会试试这个并标记是否有效。看起来很有希望!
猜你喜欢
  • 1970-01-01
  • 2021-01-14
  • 1970-01-01
  • 1970-01-01
  • 2022-11-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-02-11
相关资源
最近更新 更多