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,经典版本,经典版本
运行时间 代理人
需求 自承载代理必须具有 功能, 满足以下 要求, 运行使用此任务的作业:
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任何
Settable 变量 任何
代理版本 1.103.0 或更高版本
任务类别 部署