Open sharccc opened 1 year ago
HashiCorp internal reference IPL-4707 (Terraform Support)
I'm seeing this issue as well.
Additionally, following behaviour was observed:
terraform plan
again against the synapse workspace resource (that doesn't have azure_devops_repo
block). The plan still shows it needs to remove the git config as the block is retained in the tfstate
file!Hi there
Is there an update on this issue? Is Hashicorp looking into this bugfix in the upcoming releases? The issue has been raised for 6 months and I hope code fix is in progress and there will be a release soon.
Thank you
Is there an existing issue for this?
Community Note
Terraform Version
1.4.6
AzureRM Provider Version
3.67.0
Affected Resource(s)/Data Source(s)
azurerm_synapse_workspace
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
removing the
azure_devops_repo
block from theazurerm_synapse_workspace
terraform configuration, should 'disconnect' the repo from the workspace on Azure.Actual Behaviour
removing the
azure_devops_repo
block from theazurerm_synapse_workspace
terraform configuration, does not 'disconnect' the repo from the workspace on Azure.azure_devops_repo
maps toworkspaceRepositoryConfiguration
in the API call.a ticket raised with Microsoft suggested an empty map is required to delete these attributes.
{ "properties": { "workspaceRepositoryConfiguration": {} } }
it looks like terraform currently sends a
nil
for that object if it’s not presentSteps to Reproduce
first - create
azure_synapse_workspace
with optionalazure_devops_repo
includednext - remove
azure_devops_repo
block fromazure_synapse_workspace
configurationcross-check - 'disconnect' the git configuration from the workspace using the portal - is removed
Checked Azure using API: GET https://learn.microsoft.com/en-us/rest/api/synapse/workspaces/get?tabs=HTTP#code-try-0 or from Azure portal --> synapse studio > management > source control -> git configuration
Important Factoids
No response
References
provider v3.67.0 calls version 2021-06-01 Azure API specs - version 2021-06-01, the attribute workspaceRepositoryConfiguration is optional, as opposed to required with an empty map