Skip to content

[FEAT] Assign/Unassign Workspaces to Domain #659

@CatalinDabuleanu

Description

@CatalinDabuleanu

🚀 Feature description

When I am automating and managing data analytics infrastructure using Microsoft Fabric across multiple environments, I want to get details of Workspaces as code in Terraform.
To consistently and securely manage Workspaces as code in Terraform while automating and managing data analytics infrastructure using Microsoft Fabric across multiple environments

🔈 Motivation

I want an enhancement for the fabric_workspace to be able to assign or unassign a domain to a Fabric Workspace Artifact.

🛰 Alternatives

Update resource for fabric_workspace to add a domain_id parameter which allows users to assign a domain to a workspace. If domain is already assigned and domain_id is no longer provided, unassign will be performed.

Resource Name: fabric_workspace
API documentation:
Assign To Domain: https://review.learn.microsoft.com/en-us/rest/api/fabric/core/workspaces/assign-to-domain?branch=main&tabs=HTTP
Unassign From Domain: https://review.learn.microsoft.com/en-us/rest/api/fabric/core/workspaces/unassign-from-domain?branch=main&tabs=HTTP

🚧 Potential Configuration / Desired Solution

Assign Domain to Workspace

resource "fabric_workspace" "example" {
 workspace_id = "00000000-0000-0000-0000-000000000000"
 display_name = "example"
 domain_id = "11111111-1111-1111-1111-111111111111"
}

Assign Domain to Workspace

resource "fabric_workspace" "example" {
 workspace_id = "00000000-0000-0000-0000-000000000000"
 display_name = "example"
}

domain_id can be assign during both Create or Update operations.

resource "fabric_workspace" "example" {
 workspace_id = "00000000-0000-0000-0000-000000000000"
 display_name = "example"
 description = "example"
 domain_id = "11111111-1111-1111-1111-111111111111"
}

📎 Additional context

No response

☑️ Acceptance Criteria

No response

🔰 Code of Conduct

  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions