Search code examples
azureazure-devopsyamlcontinuous-integrationcontinuous-deployment

Azure CD with publish profile


I am currently learning Azure DevOps using a student account, which limits the permissions I have. Due to these restrictions, I am unable to use the normal deployment methods in Azure DevOps as I do not have access to Active Directory to make changes.

My current workaround is to use a Publish Profile. However, when I try to configure my release pipeline to deploy using this profile, I get the following error: "Error: Error : No such deploying method exists".

I am new to using Azure DevOps and do not understand why this error is occurring. Is there another solution for people like me who have access restrictions due to their school affiliation? Thank you for your help.

My Release pipeline

Logs 1

logs 2 ............................................................


Solution

  • I found a same issue with the same error message: Publish Profile with method ZipDeploy returns "No such deploying method exists"

    After checking the source code of the Azure App Service deploy task, I found the PublishProfile option from Azure App Service Deploy task supports only MSDeploy publish method.

    It checks if the publishMethod attribute is set to "MSDeploy". If no suitable publishMethod is found, it will reject with an error message indicating that the deploying method does not exist.

    So, if you want to use the Connection Type Publish Profile, you need to make sure that the WebPublishMethod is set to MSDeploy in your Publish Profile.