You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Hi,
I'm investigating the possibility of using Azure DevOps provider on an on-premises installation of Azure DevOps Server for a client. Documentation does not mention supporting Server edition anywhere, but API's are almost identical I thought it might work. It doesn't, but the fix might be simple.
The configuration mentioned at the end gives the following error when applied against Azure DevOps Server 2019 and Server 2020 RC1:
At this state, the project is already created but the provider fails when trying to retrieve data for process_template_id attribute. The error is caused by the differences between AzDO Services and AzDO Server when returning project capabilities (Url is _apis/projects/{guid}?api-version=5.1&includeCapabilities=true for both).
Line 391 is redundant since template name is already known through capabilities returned by the API call.
On Line 390, templateTypeId might be available (Services) or not (Server).
Hi @altinoren Currently, we have no plan to support Azure DevOps Server. You can submit PR to fix this as you have mentioned in this issues, templateTypeId has been returned in capabilities. But I cannot guarantee that other resource can work correct with Azure DevOps Server.
Community Note
Description
Hi,
I'm investigating the possibility of using Azure DevOps provider on an on-premises installation of Azure DevOps Server for a client. Documentation does not mention supporting Server edition anywhere, but API's are almost identical I thought it might work. It doesn't, but the fix might be simple.
The configuration mentioned at the end gives the following error when applied against Azure DevOps Server 2019 and Server 2020 RC1:
Error: Error flattening project: Error parsing Work Item Template ID, got : invalid UUID length: 0
At this state, the project is already created but the provider fails when trying to retrieve data for
process_template_id
attribute. The error is caused by the differences between AzDO Services and AzDO Server when returning project capabilities (Url is_apis/projects/{guid}?api-version=5.1&includeCapabilities=true
for both).Server
Services
templateTypeId
is not returned by Azure DevOps Server for API versions 1.0 to 5.1 (and 6.0 in RC1). Hence, this line can't get it and faults in the subsequent use of it:https://github.com/terraform-providers/terraform-provider-azuredevops/blob/24d9cf048fa6baacb4eb416c726b7db4678490d5/azuredevops/internal/service/core/resource_project.go#L390-L391
Line 391 is redundant since template name is already known through
capabilities
returned by the API call.On Line 390,
templateTypeId
might be available (Services) or not (Server).To fix the error when it's not available, there's already a method to call to get template id when template name is known:
https://github.com/terraform-providers/terraform-provider-azuredevops/blob/24d9cf048fa6baacb4eb416c726b7db4678490d5/azuredevops/internal/service/core/resource_project.go#L421
Is Azure DevOps Server is supported? If so, would you fix this? If not, would you accept a PR to fix this?
Thanks.
(Tests against Server edition performed on DevOps VM)
New or Affected Resource(s)
Potential Terraform Configuration
References
none
The text was updated successfully, but these errors were encountered: