hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

azurerm_data_factory_linked_service_* doesn't set up integration_runtime_name correctly #19583

Closed milkfinch closed 1 year ago

milkfinch commented 1 year ago

Is there an existing issue for this?

Community Note

Terraform Version

v1.0.11

AzureRM Provider Version

v3.32.0

Affected Resource(s)/Data Source(s)

azurerm_data_factory_linkedservice*

Terraform Configuration Files

// Links to databricks clusters
resource "azurerm_data_factory_linked_service_azure_databricks" "databrickslinks" {
  for_each            = { for link in local.databrick_links : join("-", [link.factory_name, link.name]) => link }
  name                = format("%s-to-%s", each.value.factory_name, each.value.name)
  data_factory_id     = azurerm_data_factory.datafactory[each.value.factory_name].id
  description         = format("Link bwetween %s and databricks: %s ", each.value.factory_name, each.value.name)
  existing_cluster_id = each.value.existingClusterId
  integration_runtime_name = each.value.runtimeName
  key_vault_password {
    linked_service_name = azurerm_data_factory_linked_service_key_vault.keyvaultlinks[format("%s-%s", each.value.factory_name, each.value.vaultName)].name
    secret_name         = each.value.secretName
  }
  adb_domain = each.value.databricksDomain

Debug Output/Panic Output

# module.datafactory.azurerm_data_factory_linked_service_azure_blob_storage.bloblinks["horrobe-p-test-dfstoragehrktest"] will be created
  + resource "azurerm_data_factory_linked_service_azure_blob_storage" "bloblinks" {
      + data_factory_id          = "<redacted>"
      + id                       = (known after apply)
      + integration_runtime_name = "Hrk-test-vnet-runtime"
      + name                     = "dfstoragehrktest"
      + sas_uri                  = (sensitive value)
      + use_managed_identity     = false

      + key_vault_sas_token {
          + linked_service_name = "<redacted>"
          + secret_name         = "hrk-blob-df-runtime"
        }
    }

Expected Behaviour

In the created linked service the runtime name will be set up and could be used

Actual Behaviour

In the linked service name the value is "[object Object]" If I click to the edit (pencil icon) it shows the right vnet-integrated runtime

When I check the connection it fails with error:

Failed to connect to Integration Runtime or connection is broken unexpectedly. Please retry the operation later. If the issue persists, please contact Microsoft support for further assistance.

On runtime page it shows the linked service reference count well. So to linked service shows "2" as references.

Steps to Reproduce

Important Factoids

No response

References

No response

milkfinch commented 1 year ago

Please close this issue. As I found it is not possible to use SSIS runtime in linked services.

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.