Closed edgariscoding closed 11 months ago
Assigning to @getsentry/support for routing ⏲️
Routing to @getsentry/product-owners-settings-integrations for triage ⏲️
Hi @edgariscoding, can you confirm that your Azure Org's has third-party access via OAuth enabled? see https://docs.sentry.io/product/integrations/source-code-mgmt/azure-devops/#install
Yes it does
This happens before it even gets to the login page though, when I see this error it doesnt even know my Azure account.
@edgariscoding Hello, I'm not able to replicate this. My suspicion is that Azure is unhappy with the setup of your self-hosted Sentry instance (e.g. invalid SSL cert, or any other random small things). Can you take a look at the browser dev tools to check if they have a more informative error message?
@leedongwei
Does this help?
Can you try installing this extension https://chrome.google.com/webstore/detail/saml-ws-federation-and-oa/hkodokikbjolckghdnljbkbhacbhpnkb and running it to see if there's any oddities during the redirect from Sentry to Azure DevOps?
@leedongwei
I checked all 6 traces and I dont see any errors... what should I be looking for?
Yeah that was the issue. The instructions are a bit confusing for Sentry Self Hosted Azure DevOps Integration because they're separated. I accidentally ran into the correct page by googling.
Log into your Azure DevOps account, creating one if needed. Ensure you have a project set up.
To use the Azure DevOps integration you'll need to create an application. To start, visit this page to register the app.
When configuring the app, use the following values:
Setting | Value |
---|---|
Authorization callback URL | {YOUR_DOMAIN}/extensions/vsts/setup/ |
Authorized Scopes | Code (read), Work Items (read and write), Service Endpoints (read, query and manage), Graph (read) |
Take note of your App ID and Client Secret (the long one you have to click to show) and add those to config.yml
like this:
# Azure DevOps #
vsts.client-id: your-app-id
vsts.client-secret: your-client-secret
Note: The config.yml file does NOT contain a placeholder for Azure DevOps like it does for Slack, Discord, and GitHub. These must be appended at the end.
To install this integration, you need to have Sentry organization owner, manager, or admin permissions, as well as Azure organization owner permissions, or be a user in the Project Collections Administrators group.
Go to your Azure Org's settings to make sure third-party access via OAuth is enabled.
In Sentry.io, navigate to Settings > Integrations > Azure DevOps and click "Add Installation".
An Azure DevOps install window should pop up. Select the Azure DevOps account you'd like to link with Sentry, and press Submit.
Azure DevOps should now be enabled for all projects under your Sentry organization, but you'll need to configure the features below.
But as luck would have it, I'm still not having luck.
I'm now stuck here after selecting the azure devops organization.
docker compose restart
. Do I need to run the ./install.sh
file again?But the permission incorrect:
I'm going to transfer this to the self-hosted repo as this appears to be a configuration issue.
@edgariscoding You may need to try docker compose down && docker compose up -d
@hubertdeng123 Do I need to be a member of Azure DevOps Project Collection Administrators
?
I have everything else set up but im not a member of that group, so guess I'd have to get my boss to create a sentry account and add the sentry integration himself
I figured it out. It's because I was not a member of Project Collection Administrators.
I tried to get my boss to do it for me but he was getting an error, probably due to the fact that I was the one that created the azure app.
I had him add me to the PCA group for 2 minutes while I set up the integration and it worked.
Now I have other questions but I'll do that as a separate issue.
Thanks for the replies!
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Steps to Reproduce
I accessed Organization Settings > Integrations. Clicked Add Installation for Azure DevOps.
Expected Result
I expected to be able to configure the integration.
Actual Result
This happens on my personal computer as well as my work computer.
Product Area
Settings - Integrations
Link
No response
DSN
No response
Version
23.11.0.dev0