Internal Server Error when publishing a module to the Private Module Registry using Azure DevOps VCS
Cause
The issue is most likely due to the user account not having proper permissions within the Azure organization and repositories.
Solution
In Terraform Enterprise, a user must be a part of the owners
team to publish a module. In Azure DevOps, administrator permissions are required on the organization and repositories where the module code is stored. Without proper permission on within Terraform Enterprise and Azure DevOps, an Internal Server Error
can occur when publishing a module.
Azure DevOps requires that the user account be an organization owner and listed in the Project Collection Administrators
group. The same user account must also have project permissions and be a part of the Project Administrators
group on all projects they want to access and publish as modules in the Private Module Registry.
The Project Administrators
group grants permission to clone, fetch, and explore the contents of a repository. Also, it grants full permissions on pull requests, allows full contribution to a repository, and the ability to create branches, create tags, and manage notes.
Additional Information
For more information on permissions, users, and groups in Azure DevOps review: