Error trying to save Continuous Deployment Settings for Azure App Service. "Failed to set up deployment: Encountered an unrecovera le error when communicating with stamp"

Elliot Litz 0 Reputation points
2026-11-28T03:19:28.1133333+00:00

User's image

I recently started receiving the above error message (see screen shot) when connecting my app service to my bitbucket repository. This has worked for several years. This issue came up seemingly out of the blue (no major changes to my bitbucket environment or app service configuration).

AI response to the issue is shown below with no explicit resolution. Are there steps I can take to restart the Source Control Manager or otherwise reset whatever service(s) are involved in enabling creation of the Continuous Deployment for my app service ?

thanks

User's image

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

1 answer

Sort by: Newest
  1. AI answer

    2026-11-28T03:20:37.9866667+00:00

    There is no documented customer operation to restart Source Control Manager (Kudu) independently; reset the source-control configuration by disconnecting Deployment Center, then reconnect Bitbucket.

    Reset the Deployment Center connection

    1. In the Azure portal, open the affected App Service.
    2. Select Deployment Center → Settings.
    3. If Disconnect is available, select Disconnect → OK. This is Microsoft’s supported procedure for removing the connected deployment source.^1^
    4. Wait for the disconnect operation to complete, then refresh Deployment Center.
    5. Select:
      • Source: Bitbucket
      • Authorize, if requested
      • The required Team, Repository, and Branch
    6. Select Save.

    Bitbucket Deployment Center integration uses App Service Build Service. It adds a repository webhook so that App Service can pull, build, and deploy new commits.^1^

    Restarting the web app is not equivalent to resetting this configuration. The error occurs while Azure updates the source-control resource, and the screenshots show that the app and plan themselves remain running.

    If disconnect/reconnect still fails

    Check the detailed failure before removing anything else:

    1. Open App Service → Diagnose and solve problems.
    2. Select the Deployment category and set the time range to include a failed Save attempt.
    3. Record the complete error, timestamp, operation ID/correlation ID, and any HTTP status or provider operation such as UpdateSiteSourceControl. App Service diagnostics requires no prior configuration and can report issues detected during the previous 24 hours.^2^
    4. If Kudu is accessible, open Development Tools → Advanced Tools → Go and review deployment information. Microsoft’s deployment FAQ points to Kudu’s continuous-deployment investigation guidance for GitHub and Bitbucket failures.^3^

    Apply the following only when the detailed error matches.

    Error mentions RemoveSSHKey, 404 NotFound, or inconsistent SSH keys

    A closely matching Bitbucket case was resolved by removing stale Azure-managed keys:

    1. In Bitbucket, open the repository.
    2. Go to Repository settings → Security → SSH keys.
    3. Remove only stale keys associated with the failed App Service integration. Record existing keys first; deleting a key used elsewhere can break that integration.
    4. Return to App Service → Deployment Center and configure Bitbucket again.

    In that case, a prior transient failure left Azure and Bitbucket’s managed SSH-key state inconsistent; reconnecting then generated a new key.^4^

    Do not use this as a blind reset if the diagnostic error contains no SSH-key operation.

    Bitbucket authorization returns HTTP 404 before Deployment Center is restored

    This is a separate known issue affecting new Bitbucket setup and reauthorization since August 5, 2026. Authorization succeeds on Bitbucket, but the callback to Azure returns HTTP 404 because of an Azure callback query-string limit defect. Microsoft reported that a fix was rolling out; existing configured deployments and other repository providers were unaffected.^5^

    There is no app-level restart that corrects that callback failure. Use manual deployment or an external pipeline until the fix reaches the app’s region.

    Escalation

    If the reset fails again with “communicating with stamp” and diagnostics show neither an SSH-key failure nor the OAuth callback issue:

    1. From Diagnose and solve problems, select the option to create a support request.
    2. Choose the deployment problem category Git, GitHub, Bitbucket.
    3. Include:
      • App name, subscription, resource group, region, OS, and App Service plan
      • UTC timestamps of several failed attempts
      • Correlation/activity IDs
      • The complete UpdateSiteSourceControl error
      • Confirmation that the app and plan were healthy
      • Whether the Kudu/SCM endpoint was reachable
      • Whether disconnect completed or also failed

    That gives Azure Support the information needed to investigate the App Service stamp/backend operation, which cannot be restarted directly by an App Service customer.


    References

    1. Configure continuous deployment - Azure App Service | Microsoft Learn
    2. Diagnostics in Azure App Service
    3. Web apps deployment FAQ for Azure App Service
    4. Continuous deployment from Bitbucket is broken for Web App - Microsoft Q&A
    5. Azure App Service Bitbucket OAuth callback returns 404 when authorization code exceeds 1024-byte query string limit - Microsoft Q&A
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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