Azure App Service Deployment Center "Failed to set up deployment" with source control Bitbucket

Damien 1 Reputation point
2020-02-07T15:15:20.003+00:00

Hello,

We get the error "Failed to set up deployment" when using deployment center with Bitbucket source :

2479-1.png

2725-2.png

No more info. Anybody to help ?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,877 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2020-02-10T12:59:00.297+00:00

    Thanks for asking question! Just to confirm how are you trying to enable continuous deployment from BitBucket. The article deploy-continuous-deployment shows you how to use the Azure portal to continuously deploy your app through the Kudu build service or Azure Pipelines. For investigating issues with continuous deployment from Bitbucket, see Investigating-continuous-deployment

    0 comments No comments

  2. Darren Harrison 1 Reputation point
    2021-05-19T05:05:02.323+00:00

    I had a similar problem, when looking more at the error it showed:
    "Failed to set up deployment: Repository 'UpdateSiteSourceControl' operation failed with Microsoft.Web.Hosting.SourceControls.OAuthException: Bitbucket RemoveSSHKey: (404) NotFound."

    In my case, I was trying to re-setup a deployment, and the SSH key in Bitbucket was causing the problem.
    I eventually deleted the project Access Key, tried creating the deployment again and it worked.

    0 comments No comments