Error when trying to setup up CI/CD with Bitbucket

Alexandru Mester 115 Reputation points
2024-01-15T19:05:10.76+00:00

Hello,

I am encountering a persistent issue when trying to set up a CI/CD pipeline in the Azure Deployment Center with a Bitbucket repository. Despite numerous attempts with different Bitbucket accounts and even after changing login credentials, the process fails with the error message: "Failed to set up deployment. Failed to retrieve auth identity properties." This occurs right after selecting the repository and branch details in the Deployment Center and clicking the save button.

The issue has been replicated across multiple Azure accounts (including our main corporate account), with various repositories, and in different browsers (including incognito mode to avoid cache/cookie issues). We've also recreated the App Service multiple times without success. We suspect this might be a wider issue with Azure's Bitbucket integration, as this error appears consistently for different users and setups. Here are the steps we've followed:

  1. Navigate to the Azure Deployment Center.
  2. Select Bitbucket as the source and authenticate with the Bitbucket account.
  3. Choose the repository and branch for deployment.
  4. Upon clicking save, the error message appears.

Our attempts to resolve this include:

  • Clearing browser caches and using different browsers.
  • Re-authenticating and changing Bitbucket account passwords.
  • Creating new App Services.
  • Attempting the process with different Bitbucket repositories and accounts.
  • Verification from a superior's account to ensure it's not isolated to a single Azure subscription.

Is there a known issue with Azure's Bitbucket integration currently, or are there any suggested steps we could take to troubleshoot this further? Any insights or assistance with this matter would be greatly appreciated.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
924 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,245 questions
{count} votes

Accepted answer
  1. ajkuma 24,076 Reputation points Microsoft Employee
    2024-01-17T05:53:14.65+00:00

    To update:

    Our product engineering team rolled out a fix to address this issue.

    We sincerely apologize for any inconvenience it may have caused and value your patience and feedback.

    1 person found this answer helpful.

14 additional answers

Sort by: Most helpful
  1. Caitlin Ruble 20 Reputation points
    2024-01-15T19:33:49.14+00:00

    We are seeing the same issue setting up our deployment with Bitbucket from the Deployment Center in our Linux Web App. The first observed occurrence for us was on 1/12 during the Azure Entra outage, and the error has been persistent throughout the weekend until present.

    We have 2 issues:

    Issue 1: The application owner no longer has permission to set up the deployment despite no changes in permissions in our Azure tenant. They get the error: "The client <'user_id'> with object id <'object_id'> does not have authorization to perform action 'Microsoft.ManagedIdentity/register/action' over scope '/subscriptions/<subscription_id>' or the scope is invalid. If access was recently granted, please refresh your credentials."

    Issue 2: When a user with global permissions in the Azure subscription tries setting up the CI/CD deployment from Bitbucket in the Deployment Center, they get the persistent error "Failed to set up deployment. Failed to retrieve auth identity properties."

    Another user reported having the same problem setting up their Web App deployment from the Azure portal using Azure Dev Ops here: https://stackoverflow.com/questions/77812994/intermittent-azure-devops-access-and-authorization-issue-in-visual-studio-and-az

    4 people found this answer helpful.

  2. Amol Kahat 5 Reputation points
    2024-01-16T07:01:51.7533333+00:00

    Hello I'm getting same error ("Failed to set up deployment: Failed to retrieve auth identity properties")for setting up Azure Repos for deployment.

    1 person found this answer helpful.
    0 comments No comments

  3. Pankaj Tarone 5 Reputation points
    2024-01-16T12:00:31.68+00:00

    We are having exact issue Throwing following error "Failed to set up deployment: Failed to retrieve auth identity properties"

    1 person found this answer helpful.
    0 comments No comments

  4. Heather Morris 0 Reputation points
    2024-01-15T19:21:27.92+00:00

    We are seeing this exact same issue! Please advise!

    0 comments No comments