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

[RS-DEF] Integrate KQL Queryset as Fabric Item with Definition resource #130

Open
1 of 11 tasks
DariuszPorowski opened this issue Dec 9, 2024 · 0 comments
Open
1 of 11 tasks
Labels
feature New feature or request tf/resource Terraform Resource type/DS-DEF Fabric Item data-source with definition
Milestone

Comments

@DariuszPorowski
Copy link
Member

DariuszPorowski commented Dec 9, 2024

📝 Description

When I am managing my Infrastructure as Code using Terraform. I want to be able to create, update, and manage KQL Querysets within my Microsoft Fabric platform. So, I can automate the deployment and configuration of my data querying capabilities, ensuring consistency, and reducing manual effort.

🔬 Details / References

Definition

  • Definition is optional
  • Format is N/A
  • Empty definition part with Fabric path RealTimeQueryset.json contains: {}

Auth

  • Service supports SPN

🚧 Potential Terraform Configuration / Desired Solution

# Example 1 - KQL Queryset without definition
resource "fabric_kql_queryset" "example" {
  display_name = "example"
  workspace_id = "00000000-0000-0000-0000-000000000000"
}
# Example 2 - KQL Queryset with definition bootstrapping only
resource "fabric_kql_queryset" "example_definition_bootstrap" {
  display_name              = "example"
  description               = "example with definition bootstrapping"
  workspace_id              = "00000000-0000-0000-0000-000000000000"
  definition_update_enabled = false
  definition = {
    "RealTimeQueryset.json" = {
      source = "${local.path}/RealTimeQueryset.json.tmpl"
    }
  }
}
# Example 3 - KQL Queryset with definition update when source or tokens changed
resource "fabric_kql_queryset" "example_definition_update" {
  display_name = "example"
  description  = "example with definition update when source or tokens changed"
  workspace_id = "00000000-0000-0000-0000-000000000000"
  definition = {
    "RealTimeQueryset.json" = {
      source = "${local.path}/RealTimeQueryset.json.tmpl"
      tokens = {
        "MESSAGE" = "World"
        "MyValue" = "Lorem Ipsum"
      }
    }
  }
}

📎 Additional context

No response

✅ Definition of Done

  • Data Transfer Objects (DTOs)
  • Data Client functions
  • Resource Implementation
  • Resource Added to Provider
  • Unit Tests for Happy path
  • Unit Tests for Error path
  • Acceptance Tests
  • Example in the ./examples folder
  • Schema documentation in code
  • Updated auto-generated provider docs with task docs

🔰 Code of Conduct

  • I agree to follow this project's Code of Conduct.
@DariuszPorowski DariuszPorowski added feature New feature or request tf/resource Terraform Resource labels Dec 9, 2024
@DariuszPorowski DariuszPorowski added this to the 2024-12 milestone Dec 9, 2024
@DariuszPorowski DariuszPorowski added the type/DS-DEF Fabric Item data-source with definition label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request tf/resource Terraform Resource type/DS-DEF Fabric Item data-source with definition
Projects
None yet
Development

No branches or pull requests

1 participant