After applying this successfully, i went into web gui and delete this permissions.
I expected a subsequent apply to detect that this permissions was no longer present and show in plan trying to set it back
also i expected if i removed the resource "azuredevops_securityrole_assignment" "example" block after manual deleting for the plan to come back clean / show no changes necessary
Actual Behavior
subsequent apply showed that there were no change needed
when removing the resource "azuredevops_securityrole_assignment" "example" block from .tf file, the plan showed it needed to delete the resource
it was kinda like it was reading the current values from state and NOT from the response from azdo http services.
Steps to Reproduce
terraform apply
Important Factoids
sniffing the traffic i was able to confirm GET https://dev.azure.com//_apis/securityroles/scopes/distributedtask.globalenvironmentreferencerole/roleassignments/resources/ did NOT return the assignment in the list..so azdo was giving back good info..seems like provider wasn't using it
Community Note
Terraform (and Azure DevOps Provider) Version
Affected Resource(s)
azuredevops_securityrole_assignment
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
After applying this successfully, i went into web gui and delete this permissions.
I expected a subsequent apply to detect that this permissions was no longer present and show in plan trying to set it back
also i expected if i removed the resource "azuredevops_securityrole_assignment" "example" block after manual deleting for the plan to come back clean / show no changes necessary
Actual Behavior
subsequent apply showed that there were no change needed
when removing the resource "azuredevops_securityrole_assignment" "example" block from .tf file, the plan showed it needed to delete the resource
it was kinda like it was reading the current values from state and NOT from the response from azdo http services.
Steps to Reproduce
terraform apply
Important Factoids
sniffing the traffic i was able to confirm GET https://dev.azure.com//_apis/securityroles/scopes/distributedtask.globalenvironmentreferencerole/roleassignments/resources/ did NOT return the assignment in the list..so azdo was giving back good info..seems like provider wasn't using it
References