Azure部署[错误]进程'appcmd.exe'退出,代码为'4312'

问题描述 投票:1回答:1

我试图在azure vm上进行部署,但在日志中遇到错误。任何帮助将不胜感激。

2019-02-25T14:02:55.2630391Z ## [section]开始:管理IISWebsite 2019-02-25T14:02:55.2638264Z ===================== ================================================== ======= 2019-02-25T14:02:55.2638352Z任务:IIS Web App管理2019-02-25T14:02:55.2638426Z描述:创建或更新网站,Web应用程序,虚拟目录和应用程序池2019-02-25T14:02:55.2638480Z版本:0.5.9 2019-02-25T14:02:55.2638542Z作者:Microsoft Corporation 2019-02-25T14:02:55.2638599Z帮助:More Information 2019-02-25T14:02: 55.2638661Z ================================================ ============================== 2019-02-25T14:02:56.5249594Z ## [command]“C:\ Windows \ system32 \ inetsrv \ appcmd.exe“list apppool / name:”azure2“2019-02-25T14:02:56.5894950Z ## [command]”C:\ Windows \ system32 \ inetsrv \ appcmd.exe“set apppool / apppool .name:“azure2”-managedRuntimeVersion:v4.0 -managedPipelineMode:Integrated -processModel.identityType:ApplicationPoolIdentity 2019-02-25T14:02:56.6765646Z APPPOOL对象“azure2”更改2019-02-25T14:02:56.6880351Z ## [command]“C:\ Windows \ system32 \ inetsrv \ appcmd.exe”list site /name:"azure2.desap.net“2019-02-25T14:02: 56.7391199Z ## [command]“C:\ Windows \ system32 \ inetsrv \ appcmd.exe”add site /name:"azure2.desap.net“/physicalPath:"C:\inetpub\wwwroot\net.desap.azure2” 2019-02-25T14:02:56.8221558Z SITE对象“azure2.desap.net”已添加2019-02-25T14:02:56.8254882Z APP对象“azure2.desap.net/”已添加2019-02-25T14:02:56.8255141 Z VDIR对象“azure2.desap.net/”已添加2019-02-25T14:02:56.8450318Z ## [command]“C:\ Windows \ system32 \ inetsrv \ appcmd.exe”set site /site.name:"azure2 .desap.net“-applicationDefaults.applicationPool:”azure2“ - [path ='/']。[path ='/'] .physicalPath:”C:\ inetpub \ wwwroot \ net.desap.azure2“ - [path = '/']。[path ='/']。userName: - [path ='/']。[path ='/']。密码:2019-02-25T14:02:56.9132304Z网站对象“azure2.desap .net“已更改2019-02-25T14:02:56.9421865Z ## [command]”C:\ Windows \ system32 \ inetsrv \ appcmd.exe“list sites 2019-02-25T14:02:57.0211736Z ## [command] “NE tsh“http show sslcert hostnameport = azure2.desap.net:443 2019-02-25T14:02:57.0749939Z## [command]”netsh“http add sslcert hostnameport = azure2.desap.net:443 certhash = *** appid = {27113a38-e64f-45dd-8078-c551f0cd842e} certstorename = MY 2019-02-25T14:02:57.1144820Z 2019-02-25T14:02:57.1145068Z SSL证书已成功添加2019-02-25T14:02:57.1145124Z 2019 -02-25T14:02:57.1319852Z ## [command]“C:\ Windows \ system32 \ inetsrv \ appcmd.exe”set site /site.name:"azure2.desap.net“/bindings.[protocol='https ',bindingInformation ='*:443:azure2.desap.net']。sslFlags:“1”2019-02-25T14:02:57.1773238Z错误(消息:找不到请求的集合元素。 )2019-02-25T14:02:57.3415435Z ## [错误]进程'appcmd.exe'退出代码'4312'。 2019-02-25T14:02:57.3731371Z ## [section]完成:管理IISWebsite

azure iis deployment azure-devops azure-web-sites
1个回答
0
投票

这个错误消息的原因是没有生成工件,我在.yaml代码的末尾添加了这一行,它得到修复。

- task: PublishBuildArtifacts@1    
  displayName: 'Publish Artifact: drop'
  inputs:
    PathtoPublish: '$(build.artifactstagingdirectory)'
© www.soinside.com 2019 - 2024. All rights reserved.