AzureWebPowerShellDeployment@1 - Azure 应用服务经典 (已弃用) v1 任务

此任务使用 Azure PowerShell 创建或更新Azure 应用服务。

此任务已弃用。

语法

# Azure App Service Classic (Deprecated) v1
# Create or update Azure App Service using Azure PowerShell.
- task: AzureWebPowerShellDeployment@1
  inputs:
    ConnectedServiceName: # string. Required. Azure Subscription (Classic). 
    WebSiteLocation: # string. Required. Web App Location. 
    WebSiteName: # string. Required. Web App Name. 
    #Slot: # string. Slot. 
    Package: # string. Required. Web Deploy Package. 
    #doNotDelete: false # boolean. Set DoNotDelete flag. Default: false.
    #AdditionalArguments: # string. Additional Arguments.

输入

ConnectedServiceName - Azure 订阅 (经典)
string. 必需。

指定要针对部署的 Azure 经典订阅。


WebSiteLocation - Web 应用位置
string. 必需。

指定网站的位置。


WebSiteName - Web 应用名称
string. 必需。

指定网站名称或从列表中选择它。
注意: 仅列出了与所选区域的默认应用服务计划关联的网站。


Slot -
string.

指定槽。


Package - Web 部署包
string. 必需。

默认项目目录下 Visual Studio Web 部署包的路径。


doNotDelete - 设置 DoNotDelete 标志
boolean. 默认值:false

设置为 true时,在发布网站时会保留 Web 部署包中的其他文件。


AdditionalArguments - 其他参数
string.


任务控制选项

除任务输入外,所有任务都具有控制选项。 有关详细信息,请参阅 “控制”选项和常见任务属性

输出变量

无。

要求

要求 说明
管道类型 YAML,经典版本,经典版本
运行平台 Agent
需求 自承载代理必须具有与以下要求匹配的功能才能运行使用此任务的作业: azureps
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任意
可设置变量 任意
代理版本 1.103.0 或更高版本
任务类别 部署