当前位置: 首页 > 知识库问答 >
问题:

Azure Devops发布管道-Azure应用服务文件未更新

茹建茗
2023-03-14

Azure应用服务部署成功完成,但文件未更新。

  • 我正在使用管道步骤版本4。*
  • WebApp.zip成功地从构建中检索,它包含文件,但是在一个奇怪的子文件夹结构中:Content\d_C\a\1\s\Platform\Backend\Backend。WebApp(我的路径从平台开始)。

我已经尝试过使用WebApp发布步骤,但它说它与zip文件不兼容。

这是发布步骤的日志输出:

2019-05-21T13:09:43.6381219Z ##[section]Starting: Azure App Service Deploy: contras
2019-05-21T13:09:43.6498586Z ==============================================================================
2019-05-21T13:09:43.6498697Z Task         : Azure App Service Deploy
2019-05-21T13:09:43.6498814Z Description  : Update Azure App Services on Windows, Web App on Linux with built-in images or Docker containers, ASP.NET, .NET Core, PHP, Python or Node.js based Web applications, Function Apps on Windows or Linux with Docker Containers, Mobile Apps, API applications, Web Jobs using Web Deploy / Kudu REST APIs
2019-05-21T13:09:43.6498952Z Version      : 4.3.24
2019-05-21T13:09:43.6499008Z Author       : Microsoft Corporation
2019-05-21T13:09:43.6499078Z Help         : [More information](https://aka.ms/azurermwebdeployreadme)
2019-05-21T13:09:43.6499169Z ==============================================================================
2019-05-21T13:09:44.4804024Z Got service connection details for Azure App Service:'contras'
2019-05-21T13:09:44.9625484Z Updating App Service Application settings. Data: {"WEBSITE_RUN_FROM_PACKAGE":"0"}
2019-05-21T13:09:58.0865664Z Updated App Service Application settings and Kudu Application settings.
2019-05-21T13:09:58.4962410Z [command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='D:\a\r1\a\_MoonDesk Test\drop\WebApp.zip' -dest:auto,ComputerName='https://contras-staging.scm.azurewebsites.net:443/msdeploy.axd?site=contras',UserName='$contras__staging',Password='***',AuthType='Basic' -setParam:name='IIS Web Application Name',value='contras' -enableRule:AppOffline -retryAttempts:6 -retryInterval:10000 -enableRule:DoNotDeleteRule -userAgent:VSTS_7c1c6e1c-7491-4898-bc4d-a85345921032_Release__16_26_1
2019-05-21T13:09:59.9100098Z Info: Using ID 'fe8253d8-98f3-4403-9e0d-98ceb9f2a406' for connections to the remote server.
2019-05-21T13:10:11.3653059Z Total changes: 0 (0 added, 0 deleted, 0 updated, 0 parameters changed, 0 bytes copied)
2019-05-21T13:10:11.4450004Z Updating App Service Application settings. Data: {"CloudVersion":"1.4.2"}
2019-05-21T13:10:22.5003712Z Updated App Service Application settings and Kudu Application settings.
2019-05-21T13:10:26.5732176Z Successfully updated App Service configuration details
2019-05-21T13:10:33.4106055Z Successfully updated deployment History at https://contras-staging.scm.azurewebsites.net/api/deployments/161558444226571
2019-05-21T13:10:33.4184229Z App Service Application URL: http://contras-staging.azurewebsites.net
2019-05-21T13:10:33.4378162Z ##[section]Finishing: Azure App Service Deploy: contras

共有1个答案

田英卓
2023-03-14

在这里解决了。。。解决方案/问题存在于VS解决方案中,导致zip内容无效。

https://developercommunity.visualstudio.com/content/problem/587989/azure-devops-release-pipeline-azure-app-service-fi.html

 类似资料:
  • 我有一个文件,我需要部署到现有的应用服务(已经包含一个应用程序,以前通过另一个管道部署)。 我想避免使用FTP任务。 有没有办法通过DevOps管道将单个文件部署到应用程序服务中的特定文件夹?

  • 看起来,PublishBuildArtifacts任务在发布环境中不可用。 https://docs.microsoft.com/de-de/azure/devops/pipelines/tasks/utility/publish-pipeline-artifact?view=azure-德沃斯 但是,当我们的客户从Azure存储库(通用软件包)中获取新的工件版本时,有机会通过发布管道发布这些工件

  • 我一直在努力解决Azure DevOps中的一个问题,我可以通过构建管道成功构建工件(我使用发布工件任务)。我可以看到该工件已成功构建,因为我可以下载它,并在稍后的发布管道中引用它。 问题是,当启动托管代理时,不会将任何工件下载到计算机,并且我的$(System.DefaultWorkingDirectory)始终为空。我不知道为什么在托管代理的初始化过程中,实际上没有下载任何工件。。。。

  • 我正在使用Azure DevOps发布管道部署一个构建在Asp之上的web应用程序。Net核心到Azure应用程序服务。应用程序服务已启动 我通过服务连接创建了一个带有发布配置文件选项的azure资源管理器连接。 [ARM发布配置文件服务连接][1] 后来,我配置了发布管道,并在选择发布配置文件连接的位置使用Azure app service deploy。 [发布配置文件连接][2] 正如您在屏

  • 我试图在Azure devops中创建一个发布管道来部署api。 当我试图授权部署阶段时,会出现以下错误。没有任何真正有助于解决的信息。任何建议都很感激。我是订阅的所有者。

  • Azure发布管道可以使用环境功能吗?我一直在寻找,但所有使用环境的示例都是YAML和管道部署任务。