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

azapi_data_plane_resource does not support terraform import #489

Open
ivanl-out opened this issue Apr 29, 2024 · 0 comments
Open

azapi_data_plane_resource does not support terraform import #489

ivanl-out opened this issue Apr 29, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ivanl-out
Copy link

Thank you for the great work with resource azapi_data_plane_resource. It really extends what can be done with Terraform and Azure data plane APIs.

I noticed however that existing infrastructure cannot be imported for azapi_data_plane_resource. I believe this applies to any data plane API supported here. Is this feature planned?

main.tf:

resource "azapi_data_plane_resource" "my_lake_database" {
  type      = "Microsoft.Synapse/workspaces/databases@2021-04-01"
  parent_id = trimprefix(azurerm_synapse_workspace.this.connectivity_endpoints.dev, "https://")
  name      = "mylakedb"
  body = {
    name = "mylakedb"
    type = "DATABASE"
    properties = {
      Source = {
        Provider = "ADLS"
        Location = "abfss://mycontainer@mystorage.dfs.core.windows.net/mylakedb"
      }
    }
  }
}

Import command:

terraform import azapi_data_plane_resource.my_lake_database my-synapse-workspace.dev.azuresynapse.net/databases/mylakedb

Actual output:

│ Error: Resource Import Not Implemented
│ 
│ This resource does not support import. Please contact the provider developer for additional information.

Expected behaviour:
The resource to be successfully imported into the Terraform state.

@ms-henglu ms-henglu added the enhancement New feature or request label Apr 30, 2024
@ms-henglu ms-henglu added this to the v1.14.0 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants