Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
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
- In the Azure portal, open the affected App Service.
- Select Deployment Center → Settings.
- If Disconnect is available, select Disconnect → OK. This is Microsoft’s supported procedure for removing the connected deployment source.^1^
- Wait for the disconnect operation to complete, then refresh Deployment Center.
- Select:
- Source: Bitbucket
- Authorize, if requested
- The required Team, Repository, and Branch
- 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:
- Open App Service → Diagnose and solve problems.
- Select the Deployment category and set the time range to include a failed Save attempt.
- 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^ - 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:
- In Bitbucket, open the repository.
- Go to Repository settings → Security → SSH keys.
- Remove only stale keys associated with the failed App Service integration. Record existing keys first; deleting a key used elsewhere can break that integration.
- 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:
- From Diagnose and solve problems, select the option to create a support request.
- Choose the deployment problem category Git, GitHub, Bitbucket.
- Include:
- App name, subscription, resource group, region, OS, and App Service plan
- UTC timestamps of several failed attempts
- Correlation/activity IDs
- The complete
UpdateSiteSourceControlerror - 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
- Configure continuous deployment - Azure App Service | Microsoft Learn
- Diagnostics in Azure App Service
- Web apps deployment FAQ for Azure App Service
- Continuous deployment from Bitbucket is broken for Web App - Microsoft Q&A
- Azure App Service Bitbucket OAuth callback returns 404 when authorization code exceeds 1024-byte query string limit - Microsoft Q&A