Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After running iac tf code, ADF loses last published commit and assumes every resources as new #25800

Open
1 task done
pimonteiro opened this issue Apr 29, 2024 · 0 comments
Open
1 task done

Comments

@pimonteiro
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.8.1

AzureRM Provider Version

3.92.0

Affected Resource(s)/Data Source(s)

azurerm_data_factory

Terraform Configuration Files

resource "azurerm_data_factory" "df" {
  name                            = "demo-adf"
  location                        = azurerm_resource_group.rg.location
  resource_group_name             = azurerm_resource_group.rg.name
  managed_virtual_network_enabled = true
  tags = {
    stage   = var.environment
    Project = "DWH"
  }
  dynamic "vsts_configuration" {
    for_each = var.environment == "dev" ? [var.environment] : []

    content {
      account_name    = "account_name"
      branch_name     = "branch_name"
      project_name    = "project_name"
      repository_name = "repo_name"
      root_folder     = var.vstsRootFolder
      tenant_id       = var.tenant-id
    }
  }

  identity {
    type = "SystemAssigned"
  }

  global_parameter {
    name  = "dev_dbricks_clusterID"
    type  = "String"
    value = "123412341234"
  }
  global_parameter {
    name  = "dbr_runtime_version"
    type  = "String"
    value = "12.2.x-scala2.12"
  }
}

Debug Output/Panic Output

Nothing wrong on the output.

Expected Behaviour

DevOps git configuration is set and when we rerun the code without any changes on it, it shows 0 changes and ADF shows last commit information from the connection to DevOps.
Making "publish" also only shows the latest modifed resources.

Actual Behaviour

DevOps git configuration is set and when we rerun the code without any changes on it, it shows 0 changes and ADF loses last commit information from the connection to DevOps.
Making "publish" shows all existing resources as if they were new.

Steps to Reproduce

  1. terraform plan and apply for adf config
  2. make some changes on ADF to populate it (make sure to publish it as well)
  3. check that ADF shows "last commit" on the git configuration
  4. rerun terraform plan and apply (without changes to the config)
  5. attempt new publish of a resource and see that all previous resources are added as "new"

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant