AzureWebPowerShellDeployment@1 - Azure App Service Classic (Deprecated) v1 task

This task creates or updates Azure App Service using Azure PowerShell.

This task is deprecated.

Syntax

# 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.

Inputs

ConnectedServiceName - Azure Subscription (Classic)
string. Required.

Specifies the Azure Classic subscription to target for deployment.


WebSiteLocation - Web App Location
string. Required.

Specifies a location for the website.


WebSiteName - Web App Name
string. Required.

Specifies the website name or selects it from the list.
Note: Only the websites associated with the default app service plan for the selected region are listed.


Slot - Slot
string.

Specifies the slot.


Package - Web Deploy Package
string. Required.

The path to the Visual Studio Web Deploy package under the default artifact directory.


doNotDelete - Set DoNotDelete flag
boolean. Default value: false.

When set to true, additional files in the Web Deployment package are preserved while publishing the website.


AdditionalArguments - Additional Arguments
string.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent
Demands Self-hosted agents must have capabilities that match the following demands to run jobs that use this task: azureps
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 1.103.0 or greater
Task category Deploy