This blog explains how to resolve "Error: Publish using web deploy options are supported only when using Windows agent", in Azure App Service deploy task, with web deploy as deployment type and Linux as release agent.
Error:
"Publish using webdeploy options are supported only when using Windows agent"
Fix: Change deployment type as zipDeploy on Azure App Service deploy task to deploy using Linux agents.
- task: AzureRmWebAppDeployment@4
displayName: "Deploy to app-linuxdeploy"
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'TestConnect'
appType: 'webApp'
WebAppName: 'app-linuxdeploy'
deployToSlotOrASE: true
ResourceGroupName: 'rg-winbuild-linuxdeploy'
SlotName: 'production'
packageForLinux: '$(build.artifactstagingdirectory)/src/sampleapp.zip'
enableCustomDeployment: true
DeploymentType: 'zipDeploy'
You can deploy packages using zipDeploy and using Linux agent without getting the above-mentioned failure.
No comments:
Post a Comment