{"id":29404577,"url":"https://github.com/cloudandthings/cat-terraform-fabric-workspaces","last_synced_at":"2026-04-05T01:34:47.344Z","repository":{"id":301518455,"uuid":"960380482","full_name":"cloudandthings/cat-terraform-fabric-workspaces","owner":"cloudandthings","description":"This repo consists out of the boiler-plate terraform and workspace items for a fabric data platform.","archived":false,"fork":false,"pushed_at":"2026-03-26T13:33:18.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-05T01:34:39.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudandthings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-04T10:36:35.000Z","updated_at":"2026-03-26T13:33:23.000Z","dependencies_parsed_at":"2025-06-27T09:42:28.266Z","dependency_job_id":null,"html_url":"https://github.com/cloudandthings/cat-terraform-fabric-workspaces","commit_stats":null,"previous_names":["cloudandthings/cat-terraform-fabric-workspaces"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudandthings/cat-terraform-fabric-workspaces","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Fcat-terraform-fabric-workspaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Fcat-terraform-fabric-workspaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Fcat-terraform-fabric-workspaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Fcat-terraform-fabric-workspaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudandthings","download_url":"https://codeload.github.com/cloudandthings/cat-terraform-fabric-workspaces/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudandthings%2Fcat-terraform-fabric-workspaces/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31421869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T00:25:07.052Z","status":"ssl_error","status_checked_at":"2026-04-05T00:25:05.923Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-10T20:15:29.485Z","updated_at":"2026-04-05T01:34:47.321Z","avatar_url":"https://github.com/cloudandthings.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Microsoft Fabric Workspaces\n\nThis Terraform project creates and manages Microsoft Fabric capacities, domains, and workspaces using both the Microsoft Fabric and Azure Resource Manager Terraform providers.\n\n## Prerequisites\n\n- [Terraform](https://www.terraform.io/downloads.html) \u003e= 1.12.2\n- Microsoft Fabric access with appropriate permissions\n- Azure CLI installed and configured\n- Azure subscription with permissions to create Fabric capacities\n\n## Project Structure\n\n```\n.\n├── main.tf                    # Main Terraform configuration\n├── provider.tf               # Provider configuration\n├── variables.tf              # Variable definitions\n├── terraform.tfvars.json     # Variable values (excluded from git)\n├── terraform.tfvars.json.example  # Example variable values\n├── modules/\n│   ├── fabric_capacity/      # Azure Fabric capacity module\n│   │   ├── main.tf\n│   │   ├── variables.tf\n│   │   ├── outputs.tf\n│   │   └── provider.tf\n│   ├── fabric_domain/        # Microsoft Fabric domain module\n│   │   ├── main.tf\n│   │   ├── variables.tf\n│   │   ├── outputs.tf\n│   │   └── provider.tf\n│   └── fabric_workspace/     # Microsoft Fabric workspace module\n│       ├── main.tf\n│       ├── variables.tf\n│       ├── outputs.tf\n│       └── provider.tf\n├── creative/                 # Additional resources directory\n└── README.md\n```\n\n## Configuration\n\n1. Copy the example variables file:\n   ```bash\n   cp terraform.tfvars.json.example terraform.tfvars.json\n   ```\n\n2. Update [`terraform.tfvars.json`](terraform.tfvars.json) with your values:\n   ```json\n   {\n     \"fabric_provider\": {\n       \"tenant_id\": \"your-tenant-id-here\",\n       \"subscription_id\": \"your-subscription-id-here\"\n     },\n     \"fabric_capacities\": [\n       {\n         \"location\": \"eastus2\",\n         \"basename\": \"test001\",\n         \"sku\": \"F2\",\n         \"admin_emails\": [\n           \"admin@yourdomain.com\",\n           \"admin2@yourdomain.com\"\n         ]\n       }\n     ],\n     \"domains\": [\n       {\n         \"display_name\": \"test-domain\",\n         \"description\": \"This is a test domain\",\n         \"parent_domain_id\": \"\",\n         \"admin_principals\": [\n           {\n             \"id\": \"user-object-id-here\",\n             \"type\": \"User\"\n           }\n         ]\n       }\n     ],\n     \"workspaces\": [\n       {\n         \"display_name\": \"test-workspace\",\n         \"description\": \"This is a test workspace\",\n         \"capacity_basename\": \"test001\",\n         \"domain_name\": \"test-domain\"\n       }\n     ]\n   }\n   ```\n\n## Variables\n\nThe project uses the following variables defined in [`variables.tf`](variables.tf):\n\n### Provider Configuration\n- `fabric_provider.tenant_id` (string): Your Microsoft Fabric tenant ID\n- `fabric_provider.subscription_id` (string): Your Azure subscription ID\n\n### Capacity Configuration\n- `fabric_capacities` (list): List of Fabric capacities to create\n  - `location` (string): Azure region for the capacity\n  - `basename` (string): Base name for the capacity and resource group\n  - `sku` (string): Fabric capacity SKU (e.g., F2, F32, F64, F128)\n  - `admin_emails` (list): List of administrator email addresses\n\n### Domain Configuration\n- `domains` (list): List of Fabric domains to create\n  - `display_name` (string): The name of the Fabric domain\n  - `description` (string, optional): Description of the domain\n  - `parent_domain_id` (string, optional): ID of the parent domain for nested domains\n  - `admin_principals` (list): List of administrator principals\n    - `id` (string): Object ID of the user or group\n    - `type` (string): Type of principal (\"User\" or \"Group\")\n\n### Workspace Configuration\n- `workspaces` (list): List of Fabric workspaces to create\n  - `display_name` (string): The name of the Fabric workspace\n  - `description` (string, optional): Description of the workspace\n  - `capacity_basename` (string): Reference to the capacity basename\n  - `domain_name` (string, optional): Reference to the domain display name\n\n## Usage\n\n### Authenticate with Azure CLI\n```bash\naz login\n```\n\n### Initialize Terraform\n```bash\nterraform init\n```\n\n### Plan the deployment\n```bash\nterraform plan\n```\n\n### Apply the configuration\n```bash\nterraform apply\n```\n\n### Destroy resources\n```bash\nterraform destroy\n```\n\n## Modules\n\n### fabric_capacity\n\nThe [`fabric_capacity`](modules/fabric_capacity) module creates Azure Fabric capacities with the following features:\n\n- Creates Azure Resource Group\n- Deploys Microsoft Fabric capacity\n- Configurable SKU and location\n- Sets administration members from email addresses\n\n#### Module Inputs\n- `basename` (string): Base name for resources\n- `location` (string): Azure region (default: \"North Europe\")\n- `sku` (string): Fabric capacity SKU (default: \"F2\")\n- `admin_emails` (list): List of administrator email addresses\n\n#### Module Outputs\n- `id` (string): The Azure resource ID of the Fabric capacity\n\n### fabric_domain\n\nThe [`fabric_domain`](modules/fabric_domain) module creates Microsoft Fabric domains with the following features:\n\n- Creates Fabric domains for organization and governance\n- Supports nested domain hierarchies\n- Configurable administrator role assignments\n- Domain-based workspace management\n\n#### Module Inputs\n- `display_name` (string): The display name of the Fabric domain\n- `description` (string): Description of the domain (optional)\n- `parent_domain_id` (string): ID of the parent domain for nested domains (optional)\n- `admin_principals` (list): List of administrator principals with id and type\n\n#### Module Outputs\n- `id` (string): The ID of the Fabric domain\n\n### fabric_workspace\n\nThe [`fabric_workspace`](modules/fabric_workspace) module creates Microsoft Fabric workspaces with the following features:\n\n- Configurable display name and description\n- Links to existing Fabric capacity\n- Automatic domain assignment\n- Capacity state validation\n\n#### Module Inputs\n- `display_name` (string): The name of the Fabric workspace\n- `description` (string): Description of the workspace (optional)\n- `capacity_id` (string): The Azure resource ID of the Fabric capacity\n- `fabric_domain_id` (string): The ID of the Fabric domain (optional)\n\n## Provider Configuration\n\nThis project uses multiple Terraform providers:\n\n### Microsoft Fabric Provider\n- Version: 1.2.0\n- Authentication: Azure CLI (`use_cli = true`)\n- Preview features enabled\n\n### Azure Resource Manager Provider\n- Version: \u003e= 3.98.0\n- Authentication: Azure CLI\n- Used for creating Fabric capacities and resource groups\n\n### Azure Active Directory Provider\n- Version: \u003e= 2.47.0\n- Used for looking up user principals for capacity administration\n\n## Dependencies\n\nThe project establishes the following dependencies:\n- Domains are created first and independently\n- Workspaces depend on both capacities and domains being created\n- Capacity administrators are validated against Azure AD\n- Domain workspace assignments are created after workspace creation\n\n## Architecture\n\nThe solution creates a hierarchical structure:\n1. **Azure Resource Groups** - Container for Azure resources\n2. **Fabric Capacities** - Compute resources for Fabric workloads\n3. **Fabric Domains** - Organizational units for governance\n4. **Fabric Workspaces** - Development environments linked to capacities and domains\n\n## License\n\nThe Microsoft Fabric Terraform provider is licensed under the Mozilla Public License 2.0.\n\n## Notes\n\n- The [`terraform.tfvars.json`](terraform.tfvars.json) file contains sensitive information and is excluded from version control\n- State files ([`terraform.tfstate`](terraform.tfstate)) are also excluded from git\n- The Fabric provider is configured with `preview = true` to enable preview features\n- Ensure admin emails and principal IDs exist as valid users/groups in your Azure AD tenant\n- Fabric capacities require specific Azure regions that support Microsoft Fabric\n- Domain assignments automatically link workspaces to their specified domains\n- The workspace module extracts capacity names from Azure resource IDs for Fabric provider compatibility","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudandthings%2Fcat-terraform-fabric-workspaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudandthings%2Fcat-terraform-fabric-workspaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudandthings%2Fcat-terraform-fabric-workspaces/lists"}