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
The Azure DevOps Services REST API v 7.1 introduced a "Service Principal Entitlements" endpoint [^1] for adding a Service Principal to an Azure DevOps instance [^2].
I would like to be able to manage these entitlements in Terraform using this provider.
The existing azuredevops_user_entitlement^3 resource seems like a good starting-point. The "Argument Reference" and "Attributes Reference" sections suggested below are copied from that resource's documentation.
New or Affected Resource(s)
New Resource: azuredevops_service_principal_entitlement
object_id (Required) The Guid object ID of the Service Principal in the Azure Active Directory tenant linked to the Azure DevOps instance.
account_license_type - (Optional) Type of Account License. Valid values: advanced, earlyAdopter, express, none, professional, or stakeholder. Defaults to express. In addition the value basic is allowed which is an alias for express and reflects the name of the express license used in the Azure DevOps web interface.
licensing_source - (Optional) The source of the licensing (e.g. Account. MSDN etc.) Valid values: account (Default), auto, msdn, none, profile, trial
descriptor - The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
Community Note
Description
The Azure DevOps Services REST API v 7.1 introduced a "Service Principal Entitlements" endpoint [^1] for adding a Service Principal to an Azure DevOps instance [^2].
I would like to be able to manage these entitlements in Terraform using this provider.
The existing
azuredevops_user_entitlement
^3 resource seems like a good starting-point. The "Argument Reference" and "Attributes Reference" sections suggested below are copied from that resource's documentation.New or Affected Resource(s)
azuredevops_service_principal_entitlement
Potential Terraform Configuration
Argument Reference
object_id
(Required) The Guid object ID of the Service Principal in the Azure Active Directory tenant linked to the Azure DevOps instance.Attributes Reference
The following attributes are exported:
References
[^1]: Azure DevOps Services REST API v 7.1 Endpoint [^2]: Add and manage service principals in an Azure DevOps organization