Azure Web App won't deploy from Bitbucket any longer

Harry 46 Reputation points
2024-03-16T14:58:48.35+00:00

I am running a node application on Azure App Service (Linux), which gets automatically deployed, when I update my release-branch in Bitbucket.

This has been working in the past for a long time, but now is the third deployment which just won't run properly.

In the deployment center, I have an entry where

Commit ID: temp-48
Status: Pending
Message: N/A

The past two times, I had to disconnect the repository, reconnect and try several releases plus stop/start of the app to get it going again. The logs show nothing at all.

Another app, which uses a Github repository works just fine.

Any idea what could be wrong all of a sudden? I have no clue how to get this back into a reliable deployment pipeline at the moment.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,961 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,301 Reputation points Moderator
    2024-03-21T04:49:15.48+00:00

    @Harry we are sorry to hear you're facing this issue.

    The “Host key verification failed” error implies there might be an issue with SSH key verification. This could be due to changes in the host keys on either the Azure App Service or Bitbucket side.

    Azure App Service uses SSH keys to connect to your Bitbucket repository and download the code. Over time, Bitbucket might rotate its SSH keys for security purposes. If your Azure App Service still has the old SSH key stored, it won't be able to verify the new key presented by Bitbucket, leading to the verification failure.

    Follow these steps to update SSH key:

    • Go to your Azure App Service in the Azure portal. Navigate to "Deployment Center" and then "Settings" -> "Deployment Options." Under "SSH Key," check if the key is up-to-date.
    • If you're unsure, generate a new SSH key pair in Azure App Service and update the deployment settings with the public key.
    • Azure App Service uses SSH keys to connect to your Bitbucket repository and download the code. Over time, Bitbucket might rotate its SSH keys for security purposes.
    • If your Azure App Service still has the old SSH key stored, it won't be able to verify the new key presented by Bitbucket, leading to the verification failure.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.