title: Creating Azure Data Factory Linked Service with Terraform Creates Link in Live Mode
body: <p>When I create a linked service in Azure Data Factory (ADF) for Databricks with terraform (using azurerm_data_factory_linked_service_azure_databricks) the linked service shows up only in live mode.</p>
  <p>How can I make the linked service available in GIT mode where all the other ADF pipeline configurations are stored?</p>
  <pre><code>terraform {
    required_providers {
      azurerm = {
        source  = &quot;hashicorp/azurerm&quot;
        version = &quot;=2.97.0&quot;
      }
      databricks = {
        source = &quot;databrickslabs/databricks&quot;
      }
    }
  }
  
  provider &quot;azurerm&quot; {
    features {}
  }
  
  provider &quot;databricks&quot; {
    host          = azurerm_databricks_workspace.this.workspace_url
  }
  
  data &quot;azurerm_client_config&quot; &quot;this&quot; {
  }
  
  resource &quot;azurerm_data_factory&quot; &quot;this&quot; {
    name                = &quot;myadf-9182371362&quot;
    resource_group_name = &quot;testrg&quot;
    location            = &quot;East US&quot;
  
    identity {
      type = &quot;SystemAssigned&quot;
    }       
  
    vsts_configuration {
        account_name    = &quot;mydevopsorg&quot;
        branch_name     = &quot;main&quot;
        project_name    = &quot;adftest&quot;
        repository_name = &quot;adftest&quot;
        root_folder     = &quot;/adf/&quot;
        tenant_id       = data.azurerm_client_config.this.tenant_id
    }
  
  }
  
  resource &quot;azurerm_databricks_workspace&quot; &quot;this&quot; {
    name                 = &quot;mydbworkspace&quot;
    resource_group_name = &quot;testrg&quot;
    location            = &quot;East US&quot;
    sku                  = &quot;standard&quot;
  
  }
  
  data &quot;databricks_node_type&quot; &quot;smallest&quot; {
    local_disk = true
  
    depends_on = [
      azurerm_databricks_workspace.this
    ]
  }
  
  data &quot;databricks_spark_version&quot; &quot;latest_lts&quot; {
    long_term_support = true
  
    depends_on = [
      azurerm_databricks_workspace.this
    ]
  }
  
  resource &quot;databricks_cluster&quot; &quot;this&quot; {
    cluster_name = &quot;Single Node&quot;
    spark_version = data.databricks_spark_version.latest_lts.id
    node_type_id  = data.databricks_node_type.smallest.id
    autotermination_minutes = 20
  
    spark_conf = {
      &quot;spark.databricks.cluster.profile&quot; : &quot;singleNode&quot;
      &quot;spark.master&quot; : &quot;local[*]&quot;
    }
  
    depends_on = [
      azurerm_databricks_workspace.this
    ]
  
    custom_tags = {
      &quot;ResourceClass&quot; = &quot;SingleNode&quot;
    }
  }
  
  data &quot;azurerm_resource_group&quot; &quot;this&quot; {
    name = &quot;testrg&quot;
  }
  
  resource &quot;azurerm_role_assignment&quot; &quot;example&quot; {
    scope                = data.azurerm_resource_group.this.id 
    role_definition_name = &quot;Contributor&quot;  
    principal_id         = azurerm_data_factory.this.identity[0].principal_id
  }
  
  resource &quot;azurerm_data_factory_linked_service_azure_databricks&quot; &quot;msi_linked&quot; {
    name                = &quot;ADBLinkedServiceViaMSI&quot;
    data_factory_id     = azurerm_data_factory.this.id
    resource_group_name = &quot;testrg&quot;
    description         = &quot;ADB Linked Service via MSI&quot;
    adb_domain          = &quot;https://${azurerm_databricks_workspace.this.workspace_url}&quot;
  
    existing_cluster_id = databricks_cluster.this.id
    msi_work_space_resource_id = azurerm_databricks_workspace.this.id
  }
  </code></pre>
  <p>result in git mode
  <a href="https://i.stack.imgur.com/Pn4HQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pn4HQ.png" alt="Git mode" /></a></p>
  <p>result in live mode
  <a href="https://i.stack.imgur.com/Tq81m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tq81m.png" alt="live mode" /></a></p>