Open
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
AzureRmWebAppDeployment
Task version
4.255.1
Tested in 5.255.1 also
Issue Description
When using the publish profile option with ZipDeploy gives an error: No such deploying method exists.
Starting: AzureRmWebAppDeployment
==============================================================================
Task : Azure App Service deploy
Description : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
Version : 4.255.1
Author : Microsoft Corporation
Help : https://aka.ms/azureappservicetroubleshooting
==============================================================================
##[error]Error: Error : No such deploying method exists
Finishing: AzureRmWebAppDeployment
Using the code:
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'PublishProfile'
PublishProfilePath: '$(publishprofile.secureFilePath)'
PublishProfilePassword: '<redacted>'
appType: 'webApp'
WebAppName: '<redacted>'
Package: '$(Pipeline.Workspace)/$(projectName).$(buildNumber)/published.zip'
DeploymentType: zipDeploy
I've tried using the publish profile generated by the Azure Portal and I've tried using the pubxml from Visual Studio.
Publishing through Visual Studio works without issue.
The following is an example of the pubxml:
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<WebPublishMethod>ZipDeploy</WebPublishMethod>
<ResourceId><redacted></ResourceId>
<ResourceGroup>test-rg-02</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish><redacted></SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
<ProjectGuid><redacted></ProjectGuid>
<PublishUrl><redacted></PublishUrl>
<UserName><redacted></UserName>
<_SavePWD>true</_SavePWD>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<InstallAspNetCoreSiteExtension>false</InstallAspNetCoreSiteExtension>
<PublishIISAssets>true</PublishIISAssets>
<Password><redacted></Password>
<EncryptedPassword></EncryptedPassword>
</PropertyGroup>
</Project>
Password and EncryptedPassword I've tried with and without these options, these were taken from the below bugs.
Similar tickets which were closed as stale: #17006 and #18538
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows Server 2019
Relevant log output
Starting: AzureRmWebAppDeployment
==============================================================================
Task : Azure App Service deploy
Description : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
Version : 4.255.1
Author : Microsoft Corporation
Help : https://aka.ms/azureappservicetroubleshooting
==============================================================================
##[error]Error: Error : No such deploying method exists
Finishing: AzureRmWebAppDeployment
Full task logs with system.debug enabled
2025-05-20T13:18:48.7087064Z ##[debug]Evaluating condition for step: 'AzureRmWebAppDeployment' 2025-05-20T13:18:48.7087787Z ##[debug]Evaluating: SucceededNode() 2025-05-20T13:18:48.7088003Z ##[debug]Evaluating SucceededNode: 2025-05-20T13:18:48.7088365Z ##[debug]=> True 2025-05-20T13:18:48.7088566Z ##[debug]Result: True 2025-05-20T13:18:48.7088812Z ##[section]Starting: AzureRmWebAppDeployment 2025-05-20T13:18:48.7096315Z ============================================================================== 2025-05-20T13:18:48.7096426Z Task : Azure App Service deploy 2025-05-20T13:18:48.7096497Z Description : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby 2025-05-20T13:18:48.7096618Z Version : 4.255.1 2025-05-20T13:18:48.7096683Z Author : Microsoft Corporation 2025-05-20T13:18:48.7097228Z Help : https://aka.ms/azureappservicetroubleshooting 2025-05-20T13:18:48.7097301Z ============================================================================== 2025-05-20T13:18:48.7494538Z ##[debug]Using node path: E:\azagent\A4\externals\node20_1\bin\node.exe 2025-05-20T13:18:49.1321234Z ##[debug]agent.TempDirectory=E:\azagent\A4\_work\_temp 2025-05-20T13:18:49.1323939Z ##[debug]loading inputs and endpoints 2025-05-20T13:18:49.1325085Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2025-05-20T13:18:49.1326058Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2025-05-20T13:18:49.1327022Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2025-05-20T13:18:49.1327949Z ##[debug]loading INPUT_ADDITIONALARGUMENTS 2025-05-20T13:18:49.1328857Z ##[debug]loading INPUT_CONNECTIONTYPE 2025-05-20T13:18:49.1329483Z ##[debug]loading INPUT_DEPLOYMENTTYPE 2025-05-20T13:18:49.1329957Z ##[debug]loading INPUT_DEPLOYTOSLOTORASEFLAG 2025-05-20T13:18:49.1330306Z ##[debug]loading INPUT_EXCLUDEFILESFROMAPPDATAFLAG 2025-05-20T13:18:49.1330618Z ##[debug]loading INPUT_INLINESCRIPT 2025-05-20T13:18:49.1330906Z ##[debug]loading INPUT_PACKAGE 2025-05-20T13:18:49.1331215Z ##[debug]loading INPUT_PUBLISHPROFILEPASSWORD 2025-05-20T13:18:49.1331532Z ##[debug]loading INPUT_PUBLISHPROFILEPATH 2025-05-20T13:18:49.1331837Z ##[debug]loading INPUT_REMOVEADDITIONALFILESFLAG 2025-05-20T13:18:49.1332200Z ##[debug]loading INPUT_RENAMEFILESFLAG 2025-05-20T13:18:49.1332506Z ##[debug]loading INPUT_SCRIPTPATH 2025-05-20T13:18:49.1332800Z ##[debug]loading INPUT_SETPARAMETERSFILE 2025-05-20T13:18:49.1333105Z ##[debug]loading INPUT_SLOTNAME 2025-05-20T13:18:49.1339378Z ##[debug]loading INPUT_TAKEAPPOFFLINEFLAG 2025-05-20T13:18:49.1339718Z ##[debug]loading INPUT_USEWEBDEPLOY 2025-05-20T13:18:49.1340029Z ##[debug]loading INPUT_WEBAPPKIND 2025-05-20T13:18:49.1340326Z ##[debug]loading INPUT_WEBAPPNAME 2025-05-20T13:18:49.1340635Z ##[debug]loading INPUT_XMLTRANSFORMATION 2025-05-20T13:18:49.1340956Z ##[debug]loading INPUT_XMLVARIABLESUBSTITUTION 2025-05-20T13:18:49.1341275Z ##[debug]loading SECRET_ADMINISTRATORLOGINPASSWORD 2025-05-20T13:18:49.1341578Z ##[debug]loading SECRET_CERT_PASSWORD 2025-05-20T13:18:49.1341876Z ##[debug]loading SECRET_SERVICEPASSWORD 2025-05-20T13:18:49.1342375Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN 2025-05-20T13:18:49.1342702Z ##[debug]loaded 27 2025-05-20T13:18:49.1343071Z ##[debug]Agent.ProxyUrl=http://redacted:8080 2025-05-20T13:18:49.1343414Z ##[debug]Agent.ProxyUsername=undefined 2025-05-20T13:18:49.1343782Z ##[debug]Agent.Proxy***=undefined 2025-05-20T13:18:49.1344085Z ##[debug]Agent.ProxyBypassList=undefined 2025-05-20T13:18:49.1344383Z ##[debug]expose agent proxy configuration. 2025-05-20T13:18:49.1344677Z ##[debug]Agent.CAInfo=undefined 2025-05-20T13:18:49.1344964Z ##[debug]Agent.ClientCert=undefined 2025-05-20T13:18:49.1345268Z ##[debug]Agent.SkipCertValidation=undefined 2025-05-20T13:18:49.7916804Z ##[debug]agent.proxyurl=http://redacted:8080 2025-05-20T13:18:49.7917537Z ##[debug]agent.proxyusername=undefined 2025-05-20T13:18:49.7918106Z ##[debug]agent.proxypassword=undefined 2025-05-20T13:18:49.7919454Z ##[debug]agent.proxybypasslist=undefined 2025-05-20T13:18:49.7919765Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined 2025-05-20T13:18:49.7920120Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_005bfdf8-b59a-4e78-adb9-d79e2fa59619_build_222_0 2025-05-20T13:18:49.8219010Z ##[debug]check path : E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:49.8219812Z ##[debug]adding resource file: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:49.8220452Z ##[debug]system.culture=en-US 2025-05-20T13:18:50.8578793Z ##[debug]Using msalv2 2025-05-20T13:18:51.0636838Z ##[debug]Resource file has already set to: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:51.0686313Z ##[debug]Agent.TempDirectory=E:\azagent\A4\_work\_temp 2025-05-20T13:18:51.0721419Z ##[debug]Resource file has already set to: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:51.0807287Z ##[debug]Resource file has already set to: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:51.0820874Z ##[debug]Resource file has already set to: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:51.0842466Z ##[debug]Resource file has already set to: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:51.0872024Z ##[debug]Resource file has already set to: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:51.0935949Z ##[debug]Resource file has already set to: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:51.1004971Z ##[debug]Resource file has already set to: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-azure-arm-rest\module.json 2025-05-20T13:18:51.1267292Z ##[debug]check path : E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\task.json 2025-05-20T13:18:51.1285103Z ##[debug]adding resource file: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\task.json 2025-05-20T13:18:51.1298060Z ##[debug]system.culture=en-US 2025-05-20T13:18:51.1356078Z ##[debug]check path : E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-webdeployment-common\module.json 2025-05-20T13:18:51.1367338Z ##[debug]adding resource file: E:\azagent\A4\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.255.1\node_modules\azure-pipelines-tasks-webdeployment-common\module.json 2025-05-20T13:18:51.1378430Z ##[debug]system.culture=en-US 2025-05-20T13:18:51.1605426Z ##[debug]ConnectionType=PublishProfile 2025-05-20T13:18:51.1632384Z ##[debug]WebAppKind=webApp 2025-05-20T13:18:51.1655297Z ##[debug]DeployToSlotOrASEFlag=false 2025-05-20T13:18:51.1683584Z ##[debug]GenerateWebConfig=undefined 2025-05-20T13:18:51.1730190Z ##[debug]WebConfigParameters=undefined 2025-05-20T13:18:51.1751310Z ##[debug]XmlTransformation=false 2025-05-20T13:18:51.1752656Z ##[debug]JSONFiles=undefined 2025-05-20T13:18:51.1753689Z ##[debug]XmlVariableSubstitution=false 2025-05-20T13:18:51.1754017Z ##[debug]TakeAppOfflineFlag=true 2025-05-20T13:18:51.1754310Z ##[debug]RenameFilesFlag=true 2025-05-20T13:18:51.1754655Z ##[debug]AdditionalArguments=-retryAttempts:6 -retryInterval:10000 2025-05-20T13:18:51.1754985Z ##[debug]ScriptType=undefined 2025-05-20T13:18:51.1755336Z ##[debug]InlineScript=:: You can provide your deployment commands here. One command per line. 2025-05-20T13:18:51.1755678Z ##[debug]ScriptPath=E:\azagent\A4\_work\2\s 2025-05-20T13:18:51.1756008Z ##[debug]DockerNamespace=undefined 2025-05-20T13:18:51.1756300Z ##[debug]AppSettings=undefined 2025-05-20T13:18:51.1756595Z ##[debug]StartupCommand=undefined 2025-05-20T13:18:51.1756901Z ##[debug]ConfigurationSettings=undefined 2025-05-20T13:18:51.1757374Z ##[debug]PublishProfilePath=E:\azagent\A4\_work\_temp\redacted - Zip Deploy.pubxml 2025-05-20T13:18:51.1757928Z ##[debug]PublishProfile***=LgQbqhawgXLRmj0jbQDpE5KMquYP8KwoFgQa1P2G5Lcev7FWYwp3e1At40xS 2025-05-20T13:18:51.1759937Z ##[debug]Package=E:\azagent\A4\_work\2\\published.zip 2025-05-20T13:18:51.1760441Z ##[debug]Finding files matching input: E:\azagent\A4\_work\2\redacted.1.0.9271.51276\published.zip 2025-05-20T13:18:51.1760803Z ##[debug]Predeployment Step Started 2025-05-20T13:18:51.1761156Z ##[debug]Finding files matching input: E:\azagent\A4\_work\_temp\ - Zip Deploy.pubxml 2025-05-20T13:18:51.1761546Z ##[debug]Unable to ping webapp, Error: Error: Error : No such deploying method exists 2025-05-20T13:18:51.1761894Z ##[debug]Deployment Step Started 2025-05-20T13:18:51.1762219Z ##[debug]Performing the deployment of webapp using publish profile. 2025-05-20T13:18:51.1762582Z ##[debug]Finding files matching input: E:\azagent\A4\_work\_temp\redacted - Zip Deploy.pubxml 2025-05-20T13:18:51.1762970Z ##[debug]Deployment Failed with Error: Error: Error : No such deploying method exists 2025-05-20T13:18:51.1763295Z ##[debug]task result: Failed 2025-05-20T13:18:51.1778590Z ##[error]Error: Error : No such deploying method exists 2025-05-20T13:18:51.1783564Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=06e669f2-7893-4efb-b213-53b7ce23789f;]Error: Error : No such deploying method exists 2025-05-20T13:18:51.1789402Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Error : No such deploying method exists 2025-05-20T13:18:51.1789936Z ##[debug]Deployment failed 2025-05-20T13:18:51.1792663Z ##[section]Finishing: AzureRmWebAppDeployment