microsoft / terraform-provider-azuredevops

Terraform Azure DevOps provider
https://www.terraform.io/docs/providers/azuredevops/
MIT License
385 stars 276 forks source link

Data source for Service Principals #746

Open davidcorrigan714 opened 1 year ago

davidcorrigan714 commented 1 year ago

Community Note

Description

There should be an azuredevops_service_principal data source much like azuredevops_group, azuredevops_groups, and azuredevops_users.

New or Affected Resource(s)

Potential Terraform Configuration

data "azuredevops_service_principal" "example-all-from-origin-id" {
  origin_id = "00000000-0000-0000-0000-000000000000"
}

data "azuredevops_service_principal" "example-all-from-app-name" {
  principal_name = "my-azure-devops-app-registration"
}

References

Service Principal docs

API Docs

Likely blocked by https://github.com/microsoft/azure-devops-go-api/issues/123

cveld commented 1 year ago

Does the go sdk have some extension point to plug custom rest api calls? Then you can plug your own rest calls for the missing ones.

davidcorrigan714 commented 1 year ago

The updated Go API came out a week or so ago so this should be unblocked now. Haven't had a chance to check it out myself yet though we'd like to use it and would like to get it upstreamed before the next release cycle for everyone else.

tsanton commented 1 year ago

Hi! Any ETA on this? :) As I can't find a PR for it(?), are anybody taking at stab at it as we speak? If not, I wouldn't mind having a go at it. When's the cutoff for v0.6.0?