Closed skarum closed 1 month ago
@skarum can you help check that the the import resource is the ACR service connection? The scope in this service connection should in format of
/subscriptions/<sub ID>/resourceGroups/<RG name>/providers/Microsoft.ContainerRegistry/registries/<Container register name>
but it is not there in your scenario, so I guess it is not an Azure resource
You are right! I knew it was a connection to ACR, but had not checked how it was setup.
Turns out it was setup as "Others" in Docker Registry type
Sorry about the confusion.
Community Note
Terraform (and Azure DevOps Provider) Version
Affected Resource(s)
data azuredevops_serviceendpoint_azurecr
Terraform Configuration Files
Debug Output
https://gist.github.com/skarum/3bb1502b668fde24fd438979ecbb83b7
Expected Behavior
Get the id of the service connectin
Actual Behavior
Plan crashes
Steps to Reproduce
terraform plan
Important Factoids
I'm connecting to Azure DevOps with a PAT that have full access to service connections in that project - and I'm a project administrator.
I can add permissions to the service connection using an hardcoded service connection id.
Result is the same when using
service_endpoint_id
(with the id) and usingservice_endpoint_name
(with the name)