Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add datasource azuredevops_service_principals #937

Closed
rdalbuquerque opened this issue Dec 5, 2023 · 5 comments · Fixed by #1253
Closed

Add datasource azuredevops_service_principals #937

rdalbuquerque opened this issue Dec 5, 2023 · 5 comments · Fixed by #1253

Comments

@rdalbuquerque
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

While trying to fetch service principal identity from azuredevops_users I realized it's another endpoint apparently (https://learn.microsoft.com/en-us/rest/api/azure/devops/graph/service-principals?view=azure-devops-rest-7.1)

I would try to develop a new datasource to list service principal identities but apparently azure-devops-go-api doesn't support it.
I'm also opening the issue here so it gets more visibility.

issue on SDK repo: microsoft/azure-devops-go-api#145

New Datasource

azuredevops_service_principals

Potential Terraform Configuration

data "azuredevops_service_principals" "sp" {}
@xuzhang3
Copy link
Collaborator

xuzhang3 commented Dec 8, 2023

@rdalbuquerque
Copy link
Contributor Author

@xuzhang3
Hum, I guess I missed it then, probably just looked on default branch and it wasn't there.

Alright, I see if I can make the time to submit a new PR then :)

Thanks!

@cveld
Copy link

cveld commented Sep 11, 2024

@rdalbuquerque do you have a workaround?

@rdalbuquerque
Copy link
Contributor Author

Hi @cveld ,
In my case, since I just needed an specific identity, I just set the id manually.
You could try things like external data sources or http data sources

I'll try to work on this feature for the provider in the next weeks.

@cveld
Copy link

cveld commented Sep 16, 2024

Hi @rdalbuquerque strangely this time I was not able to set the managed identity through the web app by clickops. I forgot to capture the error message. I had to run through the rest api to achieve the registration.

@xuzhang3 xuzhang3 linked a pull request Jan 14, 2025 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants