简体   繁体   English

Azure 部署池代理安装失败 IIS

[英]Azure Deployment Pool Agent Fails to install IIS

Goal目标

I'm trying to install IIS on remote server using azure devops.我正在尝试使用 azure devops 在远程服务器上安装 IIS。 I have done this on other vm servers without issue.我已经在其他 vm 服务器上完成了这个,没有问题。

Problem问题

When running this stage the Agent Errors with very little details Agent Errors when installing IIS运行此阶段时,安装 IIS 时代理错误的详细信息很少

Error错误

2020-08-11T19:06:19.1822182Z ##[section]Starting: IIS Web App Manage
2020-08-11T19:06:19.1984662Z ==============================================================================
2020-08-11T19:06:19.1985052Z Task         : IIS web app manage
2020-08-11T19:06:19.1985379Z Description  : Create or update websites, web apps, virtual directories, or application pools
2020-08-11T19:06:19.1985671Z Version      : 0.5.15
2020-08-11T19:06:19.1985908Z Author       : Microsoft Corporation
2020-08-11T19:06:19.1986227Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/iis-web-app-management-on-machine-group
2020-08-11T19:06:19.1986625Z ==============================================================================
2020-08-11T19:06:21.2180244Z Installing IIS. This may take few minutes.
2020-08-11T19:06:46.1602426Z ##[error]The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be found. 
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f081f

2020-08-11T19:06:46.1908491Z ##[section]Finishing: IIS Web App Manage

Stage Settings舞台设置

在此处输入图像描述

steps:
- task: IISWebAppManagementOnMachineGroup@0
  displayName: 'Manage IISWebsite'
  inputs:
    EnableIIS: true
    WebsiteName: 'Default Web Site'
    AddBinding: true
    Bindings: '{"bindings":[{"protocol":"http","ipAddress":"All Unassigned","port":"80","hostname":"","sslThumbprint":"","sniFlag":false}]}'
    CreateOrUpdateAppPoolForWebsite: true
    AppPoolNameForWebsite: default

I solved this by stop trying to use the prebuilt IIS web app manage tool and ended up just installing iis via power shell command我通过停止尝试使用预建的 IIS web 应用程序管理工具解决了这个问题,最后只是通过电源 Z259254E918B701129FE 安装 iis

Install-WindowsFeature -name Web-Server -IncludeManagementTools

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM