🐛 What happened?
When trying to add Azure DevOps git integration using a service principal. An error message is thrown.
Could not create resource: The request could not be processed due to missing or invalid information / The operation is not supported for the principal type
Error Code: BadRequest / PrincipalTypeNotSupported
However, the repository is synced with the given workspace in the Fabric UI.
🔬 How to reproduce?
- Add the resource.
- Run
terraform apply -auto-approve.
- Error occurs.
- Open the Fabric UI or call the rest api.
- View the git integration settings under workspace settings.
🏗️ Code Sample / Log
resource "fabric_workspace_git" "developer_workspace_git" {
workspace_id = "<workspace_id>"
initialization_strategy = "PreferWorkspace"
git_provider_details = {
git_provider_type = "AzureDevOps"
organization_name = "<organization_name>"
project_name = "<project_name>"
repository_name = "<repository_name>"
branch_name = "main"
directory_name = "/src"
}
git_credentials = {
source = "ConfiguredConnection"
connection_id = "<connection_id>"
}
}
📷 Screenshots
Terraform apply:
After running terraform using the git connection api endpoint:
https://learn.microsoft.com/en-us/rest/api/fabric/core/git/get-connection?tabs=HTTP
gitConnectionState
------------------
ConnectedAndInitialized
📈 Expected behavior
The terraform should succeed because the Fabric UI shows the connected and initialized repository.
🌌 Environment (Provider Version)
1.6
🌌 Environment (Terraform Version)
1.13.3
🌌 Environment (OS)
macOS
📎 Additional context
Service Principal permissions:
- Fabric connection (Azure DevOps - Source control (Preview))
- Basic license in Azure DevOps
- Contributor on the repository
🔰 Code of Conduct
🐛 What happened?
When trying to add Azure DevOps git integration using a service principal. An error message is thrown.
However, the repository is synced with the given workspace in the Fabric UI.
🔬 How to reproduce?
terraform apply -auto-approve.🏗️ Code Sample / Log
📷 Screenshots
Terraform apply:
After running terraform using the git connection api endpoint:
https://learn.microsoft.com/en-us/rest/api/fabric/core/git/get-connection?tabs=HTTP
📈 Expected behavior
The terraform should succeed because the Fabric UI shows the connected and initialized repository.
🌌 Environment (Provider Version)
1.6
🌌 Environment (Terraform Version)
1.13.3
🌌 Environment (OS)
macOS
📎 Additional context
Service Principal permissions:
🔰 Code of Conduct