From bb531e8003a53e52fcc8249853fb4b4da91c58ac Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Tue, 18 Mar 2025 16:23:35 -0700 Subject: [PATCH 01/19] save changes --- quickstarts/203-fabric-sql-database/README.md | 44 +++++++++++++++++++ .../203-fabric-sql-database/outputs.tf | 7 +++ .../203-fabric-sql-database/provider.tf | 21 +++++++++ .../203-fabric-sql-database/sqldatabase.tf | 4 ++ .../203-fabric-sql-database/variables.tf | 39 ++++++++++++++++ .../203-fabric-sql-database/workspace.tf | 19 ++++++++ 6 files changed, 134 insertions(+) create mode 100644 quickstarts/203-fabric-sql-database/README.md create mode 100644 quickstarts/203-fabric-sql-database/outputs.tf create mode 100644 quickstarts/203-fabric-sql-database/provider.tf create mode 100644 quickstarts/203-fabric-sql-database/sqldatabase.tf create mode 100644 quickstarts/203-fabric-sql-database/variables.tf create mode 100644 quickstarts/203-fabric-sql-database/workspace.tf diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md new file mode 100644 index 0000000..c5c0034 --- /dev/null +++ b/quickstarts/203-fabric-sql-database/README.md @@ -0,0 +1,44 @@ +## Input Variables +- Please fill the input variables in terraform.tfstate file. +| Name | Description | Type | Default | Required | +|-------------------------------------|---------------------------------------------------------------|-------------|---------|:--------:| +| `fabric_workspace_name` | The name of workspace to be created | string | | true | +| `fabric_sql_database_name` | The name of SQL database to be created | string | | true | +| `fabric_capacity_name` | The existing Fabric Capacity name | string | | true | +| `tenant_id` | The tenant id | string | | true | +| `client_id` | The Application (client) ID. | string | | true | +| `client_certificate_file_path` | The local path of the certificate which needs to pfx format | string | | true | +| `client_certificate_password` | The password of the certificate | string | | true | +| `user_principal_id` | principal_id is the user account object id | string | | true | + +## Output Values + +| Name | Description | +|--------------------------|---------------------------------------| +| `fabric_workspace_id` | The created Fabric workspace id | +| `fabric_sql_database_id` | The created Fabric SQL database id | + +## Prerequisites +- This example requires an existing Fabric capacity. +- This example requires authentication setup. the authenticating method in this example is "Authenticating using a Service Principal and Client Certificate": https://registry.terraform.io/providers/microsoft/fabric/latest/docs/guides/auth_spn_cert + +## Usage +- Fill the input variables in terraform.tfstate file. +- Execute example with the following commands: + +```shell +terraform init +terraform plan +terraform apply +``` + +## Expected Behavior + +The Terraform creates following resources with Service Principal: + +- Fabric Workspace. The user is also added as "Admin" role in the workspace. +- Fabric SQL database + +## Limitations and Considerations + +- This example is provided as a sample only and is not intended for production use without further customization. diff --git a/quickstarts/203-fabric-sql-database/outputs.tf b/quickstarts/203-fabric-sql-database/outputs.tf new file mode 100644 index 0000000..334e839 --- /dev/null +++ b/quickstarts/203-fabric-sql-database/outputs.tf @@ -0,0 +1,7 @@ +output "fabric_workspace_id" { + value = fabric_workspace.example_workspace.id +} + +output "fabric_sql_database_id" { + value = fabric_sql_database.example_sql.id +} \ No newline at end of file diff --git a/quickstarts/203-fabric-sql-database/provider.tf b/quickstarts/203-fabric-sql-database/provider.tf new file mode 100644 index 0000000..61954b0 --- /dev/null +++ b/quickstarts/203-fabric-sql-database/provider.tf @@ -0,0 +1,21 @@ +# We strongly recommend using the required_providers block to set the Fabric Provider source and version being used +terraform { + required_version = ">= 1.8, < 2.0" + required_providers { + fabric = { + source = "microsoft/fabric" + version = "0.1.0-beta.10" + } + } +} + +# Configure the Microsoft Fabric Terraform Provider +provider "fabric" { + # Configuration options + preview = true # Farbic SQL database is in preview state. + + tenant_id = var.tenant_id + client_id = var.client_id + client_certificate_file_path = var.client_certificate_file_path + client_certificate_password = var.client_certificate_password +} diff --git a/quickstarts/203-fabric-sql-database/sqldatabase.tf b/quickstarts/203-fabric-sql-database/sqldatabase.tf new file mode 100644 index 0000000..4bf792e --- /dev/null +++ b/quickstarts/203-fabric-sql-database/sqldatabase.tf @@ -0,0 +1,4 @@ +resource "fabric_sql_database" "example_sql" { + workspace_id = fabric_workspace.example_workspace.id + display_name = var.fabric_sql_database_name +} diff --git a/quickstarts/203-fabric-sql-database/variables.tf b/quickstarts/203-fabric-sql-database/variables.tf new file mode 100644 index 0000000..87e5350 --- /dev/null +++ b/quickstarts/203-fabric-sql-database/variables.tf @@ -0,0 +1,39 @@ +variable "fabric_workspace_name" { + description = "The name of workspace to be created." + type = string +} + +variable "fabric_sql_database_name" { + description = "The name of SQL database to be created." + type = string +} + +variable "fabric_capacity_name" { + description = "The existing Fabric Capacity name." + type = string +} + +variable "tenant_id" { + description = "The tenant id." + type = string +} + +variable "client_id" { + description = "The Application (client) ID." + type = string +} + +variable "client_certificate_file_path" { + description = "The local path of the certificate which needs to pfx format." + type = string +} + +variable "client_certificate_password" { + description = "The password of the certificate." + type = string +} + +variable "user_principal_id" { + description = "principal_id is the user account object id." + type = string +} diff --git a/quickstarts/203-fabric-sql-database/workspace.tf b/quickstarts/203-fabric-sql-database/workspace.tf new file mode 100644 index 0000000..966d7a8 --- /dev/null +++ b/quickstarts/203-fabric-sql-database/workspace.tf @@ -0,0 +1,19 @@ +data "fabric_capacity" "capacity" { + display_name = var.fabric_capacity_name +} + +resource "fabric_workspace" "example_workspace" { + display_name = var.fabric_workspace_name + description = "Getting started workspace" + capacity_id = data.fabric_capacity.capacity.id +} + +# by default, the new workspace has only Service Priincile as admin, the user cannot view it on fabric portal +# by adding user as a member, the user can view it on portal +# principal_id is the user account object id +resource "fabric_workspace_role_assignment" "example_workspace_role_assignment" { + workspace_id = fabric_workspace.example_workspace.id + principal_id = var.user_principal_id + principal_type = "User" + role = "Admin" +} From 2b5e20e370102d7c252fa1f5539484d149b7c623 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Thu, 20 Mar 2025 14:18:59 -0700 Subject: [PATCH 02/19] fix readme formate --- quickstarts/203-fabric-sql-database/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index c5c0034..c81d6d8 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -1,7 +1,8 @@ ## Input Variables - Please fill the input variables in terraform.tfstate file. + | Name | Description | Type | Default | Required | -|-------------------------------------|---------------------------------------------------------------|-------------|---------|:--------:| +|-------------------------------------|---------------------------------------------------------------|-------------|---------|----------| | `fabric_workspace_name` | The name of workspace to be created | string | | true | | `fabric_sql_database_name` | The name of SQL database to be created | string | | true | | `fabric_capacity_name` | The existing Fabric Capacity name | string | | true | From 119fbb44aed65fe46bd39466b04168bc7f05c2f1 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Thu, 20 Mar 2025 15:31:46 -0700 Subject: [PATCH 03/19] update readme --- quickstarts/203-fabric-sql-database/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index c81d6d8..de177f2 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -24,7 +24,7 @@ - This example requires authentication setup. the authenticating method in this example is "Authenticating using a Service Principal and Client Certificate": https://registry.terraform.io/providers/microsoft/fabric/latest/docs/guides/auth_spn_cert ## Usage -- Fill the input variables in terraform.tfstate file. +- Create a terraform.tfstate file, fill values for all variables in the variables.tf file. - Execute example with the following commands: ```shell From 6009af96cf25e10601354ce583c7e6ed810a9c47 Mon Sep 17 00:00:00 2001 From: yadongyaly <110877660+yadongyaly@users.noreply.github.com> Date: Wed, 2 Apr 2025 15:51:00 -0700 Subject: [PATCH 04/19] Update quickstarts/203-fabric-sql-database/README.md Co-authored-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com> --- quickstarts/203-fabric-sql-database/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index de177f2..1980f8d 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -1,3 +1,5 @@ +# Fabric SQL Database (200 level) + ## Input Variables - Please fill the input variables in terraform.tfstate file. From bcbc5b37c85de12243fcfbec647e20913c833e5d Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Wed, 14 May 2025 17:34:15 -0700 Subject: [PATCH 05/19] remove authentication part --- quickstarts/203-fabric-sql-database/README.md | 11 +++----- .../203-fabric-sql-database/provider.tf | 5 ---- .../203-fabric-sql-database/variables.tf | 25 ------------------- .../203-fabric-sql-database/workspace.tf | 10 -------- 4 files changed, 3 insertions(+), 48 deletions(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index 1980f8d..db893be 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -8,11 +8,6 @@ | `fabric_workspace_name` | The name of workspace to be created | string | | true | | `fabric_sql_database_name` | The name of SQL database to be created | string | | true | | `fabric_capacity_name` | The existing Fabric Capacity name | string | | true | -| `tenant_id` | The tenant id | string | | true | -| `client_id` | The Application (client) ID. | string | | true | -| `client_certificate_file_path` | The local path of the certificate which needs to pfx format | string | | true | -| `client_certificate_password` | The password of the certificate | string | | true | -| `user_principal_id` | principal_id is the user account object id | string | | true | ## Output Values @@ -23,7 +18,7 @@ ## Prerequisites - This example requires an existing Fabric capacity. -- This example requires authentication setup. the authenticating method in this example is "Authenticating using a Service Principal and Client Certificate": https://registry.terraform.io/providers/microsoft/fabric/latest/docs/guides/auth_spn_cert +- This example requires authentication setup. The authenticating method is not included in this example. For Service Principal, please refer to : https://registry.terraform.io/providers/microsoft/fabric/latest/docs/guides/auth_spn_cert. For user context authentication, please run 'az login' in the command window. ## Usage - Create a terraform.tfstate file, fill values for all variables in the variables.tf file. @@ -37,9 +32,9 @@ terraform apply ## Expected Behavior -The Terraform creates following resources with Service Principal: +The Terraform creates following resources: -- Fabric Workspace. The user is also added as "Admin" role in the workspace. +- Fabric Workspace. - Fabric SQL database ## Limitations and Considerations diff --git a/quickstarts/203-fabric-sql-database/provider.tf b/quickstarts/203-fabric-sql-database/provider.tf index 61954b0..3554e12 100644 --- a/quickstarts/203-fabric-sql-database/provider.tf +++ b/quickstarts/203-fabric-sql-database/provider.tf @@ -13,9 +13,4 @@ terraform { provider "fabric" { # Configuration options preview = true # Farbic SQL database is in preview state. - - tenant_id = var.tenant_id - client_id = var.client_id - client_certificate_file_path = var.client_certificate_file_path - client_certificate_password = var.client_certificate_password } diff --git a/quickstarts/203-fabric-sql-database/variables.tf b/quickstarts/203-fabric-sql-database/variables.tf index 87e5350..c36a268 100644 --- a/quickstarts/203-fabric-sql-database/variables.tf +++ b/quickstarts/203-fabric-sql-database/variables.tf @@ -12,28 +12,3 @@ variable "fabric_capacity_name" { description = "The existing Fabric Capacity name." type = string } - -variable "tenant_id" { - description = "The tenant id." - type = string -} - -variable "client_id" { - description = "The Application (client) ID." - type = string -} - -variable "client_certificate_file_path" { - description = "The local path of the certificate which needs to pfx format." - type = string -} - -variable "client_certificate_password" { - description = "The password of the certificate." - type = string -} - -variable "user_principal_id" { - description = "principal_id is the user account object id." - type = string -} diff --git a/quickstarts/203-fabric-sql-database/workspace.tf b/quickstarts/203-fabric-sql-database/workspace.tf index 966d7a8..37248fe 100644 --- a/quickstarts/203-fabric-sql-database/workspace.tf +++ b/quickstarts/203-fabric-sql-database/workspace.tf @@ -7,13 +7,3 @@ resource "fabric_workspace" "example_workspace" { description = "Getting started workspace" capacity_id = data.fabric_capacity.capacity.id } - -# by default, the new workspace has only Service Priincile as admin, the user cannot view it on fabric portal -# by adding user as a member, the user can view it on portal -# principal_id is the user account object id -resource "fabric_workspace_role_assignment" "example_workspace_role_assignment" { - workspace_id = fabric_workspace.example_workspace.id - principal_id = var.user_principal_id - principal_type = "User" - role = "Admin" -} From 817d0f08e164eb2e6fee0b3bf0d1f2fc99aeaa36 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Thu, 15 May 2025 13:48:57 -0700 Subject: [PATCH 06/19] add header and footer --- quickstarts/203-fabric-sql-database/_footer.md | 8 ++++++++ quickstarts/203-fabric-sql-database/_header.md | 1 + 2 files changed, 9 insertions(+) create mode 100644 quickstarts/203-fabric-sql-database/_footer.md create mode 100644 quickstarts/203-fabric-sql-database/_header.md diff --git a/quickstarts/203-fabric-sql-database/_footer.md b/quickstarts/203-fabric-sql-database/_footer.md new file mode 100644 index 0000000..66479f9 --- /dev/null +++ b/quickstarts/203-fabric-sql-database/_footer.md @@ -0,0 +1,8 @@ +## Usage + +Execute example with the following commands: + +```shell +terraform init +terraform apply +``` diff --git a/quickstarts/203-fabric-sql-database/_header.md b/quickstarts/203-fabric-sql-database/_header.md new file mode 100644 index 0000000..058766b --- /dev/null +++ b/quickstarts/203-fabric-sql-database/_header.md @@ -0,0 +1 @@ +# Fabric SQL Database (200 level) From a831f35936f548631c875932c9c508589f3314af Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Thu, 15 May 2025 14:59:59 -0700 Subject: [PATCH 07/19] remove plan --- quickstarts/203-fabric-sql-database/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index db893be..58e8dd3 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -26,7 +26,6 @@ ```shell terraform init -terraform plan terraform apply ``` From 333050bea076e1819748527326272306dca00cb0 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Thu, 15 May 2025 15:21:36 -0700 Subject: [PATCH 08/19] add BEGIN_TF_DOCS --- quickstarts/203-fabric-sql-database/README.md | 7 +++++-- quickstarts/203-fabric-sql-database/_footer.md | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index 58e8dd3..6b39367 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -1,3 +1,4 @@ + # Fabric SQL Database (200 level) ## Input Variables @@ -21,8 +22,9 @@ - This example requires authentication setup. The authenticating method is not included in this example. For Service Principal, please refer to : https://registry.terraform.io/providers/microsoft/fabric/latest/docs/guides/auth_spn_cert. For user context authentication, please run 'az login' in the command window. ## Usage -- Create a terraform.tfstate file, fill values for all variables in the variables.tf file. -- Execute example with the following commands: + +Create a terraform.tfstate file, fill values for all variables in the variables.tf file. +Execute example with the following commands: ```shell terraform init @@ -39,3 +41,4 @@ The Terraform creates following resources: ## Limitations and Considerations - This example is provided as a sample only and is not intended for production use without further customization. + diff --git a/quickstarts/203-fabric-sql-database/_footer.md b/quickstarts/203-fabric-sql-database/_footer.md index 66479f9..b0bef2e 100644 --- a/quickstarts/203-fabric-sql-database/_footer.md +++ b/quickstarts/203-fabric-sql-database/_footer.md @@ -1,5 +1,6 @@ ## Usage +Create a terraform.tfstate file, fill values for all variables in the variables.tf file. Execute example with the following commands: ```shell From 92d8f9b1fdd6a3b4fad6f3d3f61da00a0b71b458 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Thu, 15 May 2025 15:39:50 -0700 Subject: [PATCH 09/19] update footer --- quickstarts/203-fabric-sql-database/_footer.md | 1 - 1 file changed, 1 deletion(-) diff --git a/quickstarts/203-fabric-sql-database/_footer.md b/quickstarts/203-fabric-sql-database/_footer.md index b0bef2e..66479f9 100644 --- a/quickstarts/203-fabric-sql-database/_footer.md +++ b/quickstarts/203-fabric-sql-database/_footer.md @@ -1,6 +1,5 @@ ## Usage -Create a terraform.tfstate file, fill values for all variables in the variables.tf file. Execute example with the following commands: ```shell From e572ddf6e9e500226d2f1f5f7a38bd6f362d5eaa Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Thu, 15 May 2025 16:51:52 -0700 Subject: [PATCH 10/19] update readme --- quickstarts/203-fabric-sql-database/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index 6b39367..f243f64 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -23,7 +23,6 @@ ## Usage -Create a terraform.tfstate file, fill values for all variables in the variables.tf file. Execute example with the following commands: ```shell From 91523169818d87949d97181d1014db76d0ee7c36 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Thu, 15 May 2025 17:13:34 -0700 Subject: [PATCH 11/19] rewrite readme --- quickstarts/203-fabric-sql-database/README.md | 61 ++++++++++++------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index f243f64..f1db7c1 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -1,25 +1,49 @@ # Fabric SQL Database (200 level) -## Input Variables -- Please fill the input variables in terraform.tfstate file. +--- -| Name | Description | Type | Default | Required | -|-------------------------------------|---------------------------------------------------------------|-------------|---------|----------| -| `fabric_workspace_name` | The name of workspace to be created | string | | true | -| `fabric_sql_database_name` | The name of SQL database to be created | string | | true | -| `fabric_capacity_name` | The existing Fabric Capacity name | string | | true | +## Requirements -## Output Values +| Name | Version | +|-----------|---------------| +| terraform | >= 1.8, < 2.0 | +| azuread | 3.3.0 | +| azurerm | 4.28.0 | +| fabric | 1.1.0 | -| Name | Description | -|--------------------------|---------------------------------------| -| `fabric_workspace_id` | The created Fabric workspace id | -| `fabric_sql_database_id` | The created Fabric SQL database id | +## Providers -## Prerequisites -- This example requires an existing Fabric capacity. -- This example requires authentication setup. The authenticating method is not included in this example. For Service Principal, please refer to : https://registry.terraform.io/providers/microsoft/fabric/latest/docs/guides/auth_spn_cert. For user context authentication, please run 'az login' in the command window. +| Name | Version | +|---------|---------| +| azuread | 3.3.0 | +| azurerm | 4.28.0 | +| fabric | 1.1.0 | + +## Modules + +No modules. + +## Resources + +| Name | Type | +|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------| +| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | + +## Inputs + +| Name | Description | Type | Default | Required | +|---------------------------------------|--------------------------------------------------------------|----------|-------------|:--------:| +| fabric\_capacity\_name | Existing Fabric Capacity name | `string` | n/a | yes | +| fabric\_workspace\_name | The name of workspace to be created | `string` | n/a | yes | +| fabric\_sql\_database\_name | The Azure subscription ID | `string` | n/a | yes | + +## Outputs + +| Name | Description | +|----------------------------|--------------------------------------| +| fabric\_workspace\_id | The created Fabric workspace id | +| fabric\_sql\_database\_id | The created Fabric SQL database id | ## Usage @@ -30,13 +54,6 @@ terraform init terraform apply ``` -## Expected Behavior - -The Terraform creates following resources: - -- Fabric Workspace. -- Fabric SQL database - ## Limitations and Considerations - This example is provided as a sample only and is not intended for production use without further customization. From 16d51bf53f53e4c3e12dc18206d150ce3a9b688d Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Fri, 16 May 2025 13:29:55 -0700 Subject: [PATCH 12/19] use task docs to generate readme --- quickstarts/203-fabric-sql-database/README.md | 38 +++++++++---------- .../203-fabric-sql-database/outputs.tf | 4 +- .../203-fabric-sql-database/provider.tf | 2 +- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index f1db7c1..24b5ad2 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -8,17 +8,13 @@ | Name | Version | |-----------|---------------| | terraform | >= 1.8, < 2.0 | -| azuread | 3.3.0 | -| azurerm | 4.28.0 | | fabric | 1.1.0 | ## Providers -| Name | Version | -|---------|---------| -| azuread | 3.3.0 | -| azurerm | 4.28.0 | -| fabric | 1.1.0 | +| Name | Version | +|--------|---------| +| fabric | 1.1.0 | ## Modules @@ -26,24 +22,26 @@ No modules. ## Resources -| Name | Type | -|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------| -| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | +| Name | Type | +|-------------------------------------------------------------------------------------------------------------------------------|-------------| +| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | +| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | ## Inputs -| Name | Description | Type | Default | Required | -|---------------------------------------|--------------------------------------------------------------|----------|-------------|:--------:| -| fabric\_capacity\_name | Existing Fabric Capacity name | `string` | n/a | yes | -| fabric\_workspace\_name | The name of workspace to be created | `string` | n/a | yes | -| fabric\_sql\_database\_name | The Azure subscription ID | `string` | n/a | yes | +| Name | Description | Type | Default | Required | +|-----------------------------|-----------------------------------------|----------|---------|:--------:| +| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | +| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | +| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | ## Outputs -| Name | Description | -|----------------------------|--------------------------------------| -| fabric\_workspace\_id | The created Fabric workspace id | -| fabric\_sql\_database\_id | The created Fabric SQL database id | +| Name | Description | +|---------------------------|-------------------------------------| +| fabric\_sql\_database\_id | The created Fabric SQL database id | +| fabric\_workspace\_id | The created Fabric workspace id | ## Usage @@ -57,4 +55,4 @@ terraform apply ## Limitations and Considerations - This example is provided as a sample only and is not intended for production use without further customization. - + \ No newline at end of file diff --git a/quickstarts/203-fabric-sql-database/outputs.tf b/quickstarts/203-fabric-sql-database/outputs.tf index 334e839..f30bacd 100644 --- a/quickstarts/203-fabric-sql-database/outputs.tf +++ b/quickstarts/203-fabric-sql-database/outputs.tf @@ -1,7 +1,9 @@ +# The created Fabric workspace id output "fabric_workspace_id" { value = fabric_workspace.example_workspace.id } +# The created Fabric SQL database id output "fabric_sql_database_id" { value = fabric_sql_database.example_sql.id -} \ No newline at end of file +} diff --git a/quickstarts/203-fabric-sql-database/provider.tf b/quickstarts/203-fabric-sql-database/provider.tf index 3554e12..e6ad76b 100644 --- a/quickstarts/203-fabric-sql-database/provider.tf +++ b/quickstarts/203-fabric-sql-database/provider.tf @@ -4,7 +4,7 @@ terraform { required_providers { fabric = { source = "microsoft/fabric" - version = "0.1.0-beta.10" + version = "1.1.0" } } } From 7d6dff80b11ff6061f439448d549d54895f04f69 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Fri, 16 May 2025 13:42:23 -0700 Subject: [PATCH 13/19] create main --- .../203-fabric-sql-database/{workspace.tf => main.tf} | 8 ++++++++ quickstarts/203-fabric-sql-database/outputs.tf | 2 ++ quickstarts/203-fabric-sql-database/sqldatabase.tf | 4 ---- 3 files changed, 10 insertions(+), 4 deletions(-) rename quickstarts/203-fabric-sql-database/{workspace.tf => main.tf} (53%) delete mode 100644 quickstarts/203-fabric-sql-database/sqldatabase.tf diff --git a/quickstarts/203-fabric-sql-database/workspace.tf b/quickstarts/203-fabric-sql-database/main.tf similarity index 53% rename from quickstarts/203-fabric-sql-database/workspace.tf rename to quickstarts/203-fabric-sql-database/main.tf index 37248fe..546a9ba 100644 --- a/quickstarts/203-fabric-sql-database/workspace.tf +++ b/quickstarts/203-fabric-sql-database/main.tf @@ -1,9 +1,17 @@ +# The existing capacity name. data "fabric_capacity" "capacity" { display_name = var.fabric_capacity_name } +# Create fabric workspace. resource "fabric_workspace" "example_workspace" { display_name = var.fabric_workspace_name description = "Getting started workspace" capacity_id = data.fabric_capacity.capacity.id } + +# Create fabric SQL Database. +resource "fabric_sql_database" "example_sql" { + workspace_id = fabric_workspace.example_workspace.id + display_name = var.fabric_sql_database_name +} diff --git a/quickstarts/203-fabric-sql-database/outputs.tf b/quickstarts/203-fabric-sql-database/outputs.tf index f30bacd..2785089 100644 --- a/quickstarts/203-fabric-sql-database/outputs.tf +++ b/quickstarts/203-fabric-sql-database/outputs.tf @@ -1,9 +1,11 @@ # The created Fabric workspace id output "fabric_workspace_id" { value = fabric_workspace.example_workspace.id + description = "The created Fabric workspace id" } # The created Fabric SQL database id output "fabric_sql_database_id" { value = fabric_sql_database.example_sql.id + description = "The created Fabric SQL database id" } diff --git a/quickstarts/203-fabric-sql-database/sqldatabase.tf b/quickstarts/203-fabric-sql-database/sqldatabase.tf deleted file mode 100644 index 4bf792e..0000000 --- a/quickstarts/203-fabric-sql-database/sqldatabase.tf +++ /dev/null @@ -1,4 +0,0 @@ -resource "fabric_sql_database" "example_sql" { - workspace_id = fabric_workspace.example_workspace.id - display_name = var.fabric_sql_database_name -} From 21ad528799caa2e76a9fd01967449ed5024319eb Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Fri, 16 May 2025 13:55:35 -0700 Subject: [PATCH 14/19] task lint --- quickstarts/203-fabric-sql-database/main.tf | 4 ++-- quickstarts/203-fabric-sql-database/outputs.tf | 4 ++-- quickstarts/203-fabric-sql-database/provider.tf | 2 +- quickstarts/203-fabric-sql-database/variables.tf | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/quickstarts/203-fabric-sql-database/main.tf b/quickstarts/203-fabric-sql-database/main.tf index 546a9ba..b5165c1 100644 --- a/quickstarts/203-fabric-sql-database/main.tf +++ b/quickstarts/203-fabric-sql-database/main.tf @@ -6,8 +6,8 @@ data "fabric_capacity" "capacity" { # Create fabric workspace. resource "fabric_workspace" "example_workspace" { display_name = var.fabric_workspace_name - description = "Getting started workspace" - capacity_id = data.fabric_capacity.capacity.id + description = "Getting started workspace" + capacity_id = data.fabric_capacity.capacity.id } # Create fabric SQL Database. diff --git a/quickstarts/203-fabric-sql-database/outputs.tf b/quickstarts/203-fabric-sql-database/outputs.tf index 2785089..2c7838b 100644 --- a/quickstarts/203-fabric-sql-database/outputs.tf +++ b/quickstarts/203-fabric-sql-database/outputs.tf @@ -1,11 +1,11 @@ # The created Fabric workspace id output "fabric_workspace_id" { - value = fabric_workspace.example_workspace.id + value = fabric_workspace.example_workspace.id description = "The created Fabric workspace id" } # The created Fabric SQL database id output "fabric_sql_database_id" { - value = fabric_sql_database.example_sql.id + value = fabric_sql_database.example_sql.id description = "The created Fabric SQL database id" } diff --git a/quickstarts/203-fabric-sql-database/provider.tf b/quickstarts/203-fabric-sql-database/provider.tf index e6ad76b..fd53291 100644 --- a/quickstarts/203-fabric-sql-database/provider.tf +++ b/quickstarts/203-fabric-sql-database/provider.tf @@ -12,5 +12,5 @@ terraform { # Configure the Microsoft Fabric Terraform Provider provider "fabric" { # Configuration options - preview = true # Farbic SQL database is in preview state. + preview = true # Farbic SQL database is in preview state. } diff --git a/quickstarts/203-fabric-sql-database/variables.tf b/quickstarts/203-fabric-sql-database/variables.tf index c36a268..ce79e4a 100644 --- a/quickstarts/203-fabric-sql-database/variables.tf +++ b/quickstarts/203-fabric-sql-database/variables.tf @@ -10,5 +10,5 @@ variable "fabric_sql_database_name" { variable "fabric_capacity_name" { description = "The existing Fabric Capacity name." - type = string + type = string } From 027d09ee684e168ecd91dfa3d60c30d323bd9986 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Mon, 19 May 2025 12:04:33 -0700 Subject: [PATCH 15/19] change it 100 --- quickstarts/203-fabric-sql-database/README.md | 2 +- quickstarts/203-fabric-sql-database/_header.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md index 24b5ad2..11d4d6b 100644 --- a/quickstarts/203-fabric-sql-database/README.md +++ b/quickstarts/203-fabric-sql-database/README.md @@ -1,5 +1,5 @@ -# Fabric SQL Database (200 level) +# Fabric SQL Database (100 level) --- diff --git a/quickstarts/203-fabric-sql-database/_header.md b/quickstarts/203-fabric-sql-database/_header.md index 058766b..875ea93 100644 --- a/quickstarts/203-fabric-sql-database/_header.md +++ b/quickstarts/203-fabric-sql-database/_header.md @@ -1 +1 @@ -# Fabric SQL Database (200 level) +# Fabric SQL Database (100 level) From f40facd44e8ac7cecbe9ca876966356a0c35d69a Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Mon, 19 May 2025 12:09:26 -0700 Subject: [PATCH 16/19] move to 103 folder --- quickstarts/103-fabric-sql-database/README.md | 50 ++++++++++++++++ .../_footer.md | 0 .../_header.md | 0 .../main.tf | 0 .../outputs.tf | 0 .../provider.tf | 0 .../variables.tf | 0 quickstarts/203-fabric-sql-database/README.md | 58 ------------------- 8 files changed, 50 insertions(+), 58 deletions(-) create mode 100644 quickstarts/103-fabric-sql-database/README.md rename quickstarts/{203-fabric-sql-database => 103-fabric-sql-database}/_footer.md (100%) rename quickstarts/{203-fabric-sql-database => 103-fabric-sql-database}/_header.md (100%) rename quickstarts/{203-fabric-sql-database => 103-fabric-sql-database}/main.tf (100%) rename quickstarts/{203-fabric-sql-database => 103-fabric-sql-database}/outputs.tf (100%) rename quickstarts/{203-fabric-sql-database => 103-fabric-sql-database}/provider.tf (100%) rename quickstarts/{203-fabric-sql-database => 103-fabric-sql-database}/variables.tf (100%) delete mode 100644 quickstarts/203-fabric-sql-database/README.md diff --git a/quickstarts/103-fabric-sql-database/README.md b/quickstarts/103-fabric-sql-database/README.md new file mode 100644 index 0000000..01ada67 --- /dev/null +++ b/quickstarts/103-fabric-sql-database/README.md @@ -0,0 +1,50 @@ + +# Fabric SQL Database (100 level) +--- +## Requirements + +| Name | Version | +|------|---------| +| terraform | >= 1.8, < 2.0 | +| fabric | 1.1.0 | +## Providers + +| Name | Version | +|------|---------| +| fabric | 1.1.0 | +## Modules + +No modules. +## Resources + +| Name | Type | +|------|------| +| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | +| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | +| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | +| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | +## Outputs + +| Name | Description | +|------|-------------| +| fabric\_sql\_database\_id | The created Fabric SQL database id | +| fabric\_workspace\_id | The created Fabric workspace id | +## Usage + +Execute example with the following commands: + +```shell +terraform init +terraform apply +``` + +## Limitations and Considerations + +- This example is provided as a sample only and is not intended for production use without further customization. + \ No newline at end of file diff --git a/quickstarts/203-fabric-sql-database/_footer.md b/quickstarts/103-fabric-sql-database/_footer.md similarity index 100% rename from quickstarts/203-fabric-sql-database/_footer.md rename to quickstarts/103-fabric-sql-database/_footer.md diff --git a/quickstarts/203-fabric-sql-database/_header.md b/quickstarts/103-fabric-sql-database/_header.md similarity index 100% rename from quickstarts/203-fabric-sql-database/_header.md rename to quickstarts/103-fabric-sql-database/_header.md diff --git a/quickstarts/203-fabric-sql-database/main.tf b/quickstarts/103-fabric-sql-database/main.tf similarity index 100% rename from quickstarts/203-fabric-sql-database/main.tf rename to quickstarts/103-fabric-sql-database/main.tf diff --git a/quickstarts/203-fabric-sql-database/outputs.tf b/quickstarts/103-fabric-sql-database/outputs.tf similarity index 100% rename from quickstarts/203-fabric-sql-database/outputs.tf rename to quickstarts/103-fabric-sql-database/outputs.tf diff --git a/quickstarts/203-fabric-sql-database/provider.tf b/quickstarts/103-fabric-sql-database/provider.tf similarity index 100% rename from quickstarts/203-fabric-sql-database/provider.tf rename to quickstarts/103-fabric-sql-database/provider.tf diff --git a/quickstarts/203-fabric-sql-database/variables.tf b/quickstarts/103-fabric-sql-database/variables.tf similarity index 100% rename from quickstarts/203-fabric-sql-database/variables.tf rename to quickstarts/103-fabric-sql-database/variables.tf diff --git a/quickstarts/203-fabric-sql-database/README.md b/quickstarts/203-fabric-sql-database/README.md deleted file mode 100644 index 11d4d6b..0000000 --- a/quickstarts/203-fabric-sql-database/README.md +++ /dev/null @@ -1,58 +0,0 @@ - -# Fabric SQL Database (100 level) - ---- - -## Requirements - -| Name | Version | -|-----------|---------------| -| terraform | >= 1.8, < 2.0 | -| fabric | 1.1.0 | - -## Providers - -| Name | Version | -|--------|---------| -| fabric | 1.1.0 | - -## Modules - -No modules. - -## Resources - -| Name | Type | -|-------------------------------------------------------------------------------------------------------------------------------|-------------| -| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | -| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | -| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | - -## Inputs - -| Name | Description | Type | Default | Required | -|-----------------------------|-----------------------------------------|----------|---------|:--------:| -| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | -| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | -| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | - -## Outputs - -| Name | Description | -|---------------------------|-------------------------------------| -| fabric\_sql\_database\_id | The created Fabric SQL database id | -| fabric\_workspace\_id | The created Fabric workspace id | - -## Usage - -Execute example with the following commands: - -```shell -terraform init -terraform apply -``` - -## Limitations and Considerations - -- This example is provided as a sample only and is not intended for production use without further customization. - \ No newline at end of file From f4b2f93ef8fc15221f5f23e3081e9f10cdac5d4b Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Mon, 19 May 2025 12:22:16 -0700 Subject: [PATCH 17/19] revert last task docs result --- quickstarts/103-fabric-sql-database/README.md | 48 +++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/quickstarts/103-fabric-sql-database/README.md b/quickstarts/103-fabric-sql-database/README.md index 01ada67..e75bbe8 100644 --- a/quickstarts/103-fabric-sql-database/README.md +++ b/quickstarts/103-fabric-sql-database/README.md @@ -1,40 +1,48 @@ # Fabric SQL Database (100 level) + --- + ## Requirements -| Name | Version | -|------|---------| +| Name | Version | +|-----------|---------------| | terraform | >= 1.8, < 2.0 | -| fabric | 1.1.0 | +| fabric | 1.1.0 | + ## Providers -| Name | Version | -|------|---------| -| fabric | 1.1.0 | +| Name | Version | +|--------|---------| +| fabric | 1.1.0 | + ## Modules No modules. + ## Resources -| Name | Type | -|------|------| -| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | -| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | -| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | +| Name | Type | +|-------------------------------------------------------------------------------------------------------------------------------|-------------| +| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | +| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | + ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | -| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | -| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | +| Name | Description | Type | Default | Required | +|-----------------------------|-----------------------------------------|----------|---------|:--------:| +| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | +| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | +| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | + ## Outputs -| Name | Description | -|------|-------------| +| Name | Description | +|---------------------------|-------------------------------------| | fabric\_sql\_database\_id | The created Fabric SQL database id | -| fabric\_workspace\_id | The created Fabric workspace id | +| fabric\_workspace\_id | The created Fabric workspace id | + ## Usage Execute example with the following commands: @@ -47,4 +55,4 @@ terraform apply ## Limitations and Considerations - This example is provided as a sample only and is not intended for production use without further customization. - \ No newline at end of file + From cdd9bd4304348a77f3d8f6aa2e2a24603d658645 Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Mon, 19 May 2025 14:12:56 -0700 Subject: [PATCH 18/19] save changes from task docs --- quickstarts/101-hello-fabric/README.md | 38 ++++----- quickstarts/102-fabric-capacity/README.md | 64 +++++++-------- quickstarts/103-fabric-sql-database/README.md | 48 +++++------ quickstarts/202-fabric-vnet-gateway/README.md | 80 +++++++++---------- quickstarts/301-testing-terraform/README.md | 42 ++++------ 5 files changed, 116 insertions(+), 156 deletions(-) diff --git a/quickstarts/101-hello-fabric/README.md b/quickstarts/101-hello-fabric/README.md index 13f55e9..908391c 100644 --- a/quickstarts/101-hello-fabric/README.md +++ b/quickstarts/101-hello-fabric/README.md @@ -1,44 +1,36 @@ # Hello Fabric (100 level) - --- - ## Requirements -| Name | Version | -|-----------|---------------| +| Name | Version | +|------|---------| | terraform | >= 1.8, < 2.0 | -| fabric | 1.1.0 | - +| fabric | 1.1.0 | ## Providers -| Name | Version | -|--------|---------| -| fabric | 1.1.0 | - +| Name | Version | +|------|---------| +| fabric | 1.1.0 | ## Modules No modules. - ## Resources -| Name | Type | -|---------------------------------------------------------------------------------------------------------------------|----------| +| Name | Type | +|------|------| | [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | - ## Inputs -| Name | Description | Type | Default | Required | -|-----------------|-----------------------|----------|---------|:--------:| -| workspace\_name | Name of the Workspace | `string` | n/a | yes | - +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| workspace\_name | Name of the Workspace | `string` | n/a | yes | ## Outputs -| Name | Description | -|---------------|-----------------------------| -| workspace | The Fabric workspace object | -| workspace\_id | The Fabric workspace ID | - +| Name | Description | +|------|-------------| +| workspace | The Fabric workspace object | +| workspace\_id | The Fabric workspace ID | ## Usage Execute example with the following commands: diff --git a/quickstarts/102-fabric-capacity/README.md b/quickstarts/102-fabric-capacity/README.md index 0fea7a5..ce97355 100644 --- a/quickstarts/102-fabric-capacity/README.md +++ b/quickstarts/102-fabric-capacity/README.md @@ -1,58 +1,50 @@ # Fabric Capacity (100 level) - --- - ## Requirements -| Name | Version | -|-----------|---------------| +| Name | Version | +|------|---------| | terraform | >= 1.8, < 2.0 | -| azuread | 3.4.0 | -| azurerm | 4.29.0 | -| fabric | 1.1.0 | - +| azuread | 3.4.0 | +| azurerm | 4.29.0 | +| fabric | 1.1.0 | ## Providers -| Name | Version | -|---------|---------| -| azuread | 3.4.0 | -| azurerm | 4.29.0 | -| fabric | 1.1.0 | - +| Name | Version | +|------|---------| +| azuread | 3.4.0 | +| azurerm | 4.29.0 | +| fabric | 1.1.0 | ## Modules No modules. - ## Resources -| Name | Type | -|----------------------------------------------------------------------------------------------------------------------------------------|-------------| -| [azurerm_fabric_capacity.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/fabric_capacity) | resource | -| [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/resource_group) | resource | -| [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| Name | Type | +|------|------| +| [azurerm_fabric_capacity.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/fabric_capacity) | resource | +| [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/resource_group) | resource | +| [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | | [azuread_directory_object.example](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/directory_object) | data source | -| [azuread_user.example](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/user) | data source | -| [azurerm_client_config.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/data-sources/client_config) | data source | -| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | - +| [azuread_user.example](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/user) | data source | +| [azurerm_client_config.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/data-sources/client_config) | data source | +| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | ## Inputs -| Name | Description | Type | Default | Required | -|-------------------------------|---------------------------------------------------|---------------|-------------|:--------:| -| solution\_name | Name of the solution | `string` | n/a | yes | -| subscription\_id | The Azure subscription ID | `string` | n/a | yes | -| fabric\_capacity\_admin\_upns | Collection of admin UPNs for the Fabric Capacity. | `set(string)` | `[]` | no | -| fabric\_capacity\_sku | Fabric Capacity SKU name | `string` | `"F2"` | no | -| location | Location of the Azure resources | `string` | `"WestUS3"` | no | - +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| solution\_name | Name of the solution | `string` | n/a | yes | +| subscription\_id | The Azure subscription ID | `string` | n/a | yes | +| fabric\_capacity\_admin\_upns | Collection of admin UPNs for the Fabric Capacity. | `set(string)` | `[]` | no | +| fabric\_capacity\_sku | Fabric Capacity SKU name | `string` | `"F2"` | no | +| location | Location of the Azure resources | `string` | `"WestUS3"` | no | ## Outputs -| Name | Description | -|-------------------|-----------------------------| -| fabric\_capacity | The Fabric Capacity object | +| Name | Description | +|------|-------------| +| fabric\_capacity | The Fabric Capacity object | | fabric\_workspace | The Fabric Workspace object | - ## Usage Execute example with the following commands: diff --git a/quickstarts/103-fabric-sql-database/README.md b/quickstarts/103-fabric-sql-database/README.md index e75bbe8..01ada67 100644 --- a/quickstarts/103-fabric-sql-database/README.md +++ b/quickstarts/103-fabric-sql-database/README.md @@ -1,48 +1,40 @@ # Fabric SQL Database (100 level) - --- - ## Requirements -| Name | Version | -|-----------|---------------| +| Name | Version | +|------|---------| | terraform | >= 1.8, < 2.0 | -| fabric | 1.1.0 | - +| fabric | 1.1.0 | ## Providers -| Name | Version | -|--------|---------| -| fabric | 1.1.0 | - +| Name | Version | +|------|---------| +| fabric | 1.1.0 | ## Modules No modules. - ## Resources -| Name | Type | -|-------------------------------------------------------------------------------------------------------------------------------|-------------| -| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | -| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | -| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | - +| Name | Type | +|------|------| +| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | +| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | ## Inputs -| Name | Description | Type | Default | Required | -|-----------------------------|-----------------------------------------|----------|---------|:--------:| -| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | -| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | -| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | - +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | +| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | +| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | ## Outputs -| Name | Description | -|---------------------------|-------------------------------------| +| Name | Description | +|------|-------------| | fabric\_sql\_database\_id | The created Fabric SQL database id | -| fabric\_workspace\_id | The created Fabric workspace id | - +| fabric\_workspace\_id | The created Fabric workspace id | ## Usage Execute example with the following commands: @@ -55,4 +47,4 @@ terraform apply ## Limitations and Considerations - This example is provided as a sample only and is not intended for production use without further customization. - + \ No newline at end of file diff --git a/quickstarts/202-fabric-vnet-gateway/README.md b/quickstarts/202-fabric-vnet-gateway/README.md index ddc79cc..55ecc60 100644 --- a/quickstarts/202-fabric-vnet-gateway/README.md +++ b/quickstarts/202-fabric-vnet-gateway/README.md @@ -1,65 +1,57 @@ # Fabric Virtual Network Gateway (200 level) - --- - ## Requirements -| Name | Version | -|-----------|---------------| +| Name | Version | +|------|---------| | terraform | >= 1.8, < 2.0 | -| azuread | 3.4.0 | -| azurerm | 4.29.0 | -| fabric | 1.1.0 | - +| azuread | 3.4.0 | +| azurerm | 4.29.0 | +| fabric | 1.1.0 | ## Providers -| Name | Version | -|---------|---------| -| azuread | 3.4.0 | -| azurerm | 4.29.0 | -| fabric | 1.1.0 | - +| Name | Version | +|------|---------| +| azuread | 3.4.0 | +| azurerm | 4.29.0 | +| fabric | 1.1.0 | ## Modules No modules. - ## Resources -| Name | Type | -|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------| -| [azurerm_network_security_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/network_security_group) | resource | -| [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/resource_group) | resource | -| [azurerm_role_assignment.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/role_assignment) | resource | -| [azurerm_subnet.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/subnet) | resource | -| [azurerm_subnet_network_security_group_association.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/subnet_network_security_group_association) | resource | -| [azurerm_virtual_network.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/virtual_network) | resource | -| [fabric_gateway.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway) | resource | -| [fabric_gateway_role_assignment.example_admin](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway_role_assignment) | resource | -| [fabric_gateway_role_assignment.example_connection_creator](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway_role_assignment) | resource | -| [azuread_group.example_admin](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/group) | data source | -| [azuread_group.example_connection_creator](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/group) | data source | -| [azurerm_client_config.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/data-sources/client_config) | data source | -| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | - +| Name | Type | +|------|------| +| [azurerm_network_security_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/network_security_group) | resource | +| [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/resource_group) | resource | +| [azurerm_role_assignment.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/role_assignment) | resource | +| [azurerm_subnet.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/subnet) | resource | +| [azurerm_subnet_network_security_group_association.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/subnet_network_security_group_association) | resource | +| [azurerm_virtual_network.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/virtual_network) | resource | +| [fabric_gateway.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway) | resource | +| [fabric_gateway_role_assignment.example_admin](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway_role_assignment) | resource | +| [fabric_gateway_role_assignment.example_connection_creator](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway_role_assignment) | resource | +| [azuread_group.example_admin](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/group) | data source | +| [azuread_group.example_connection_creator](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/group) | data source | +| [azurerm_client_config.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/data-sources/client_config) | data source | +| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | ## Inputs -| Name | Description | Type | Default | Required | -|---------------------------------------|--------------------------------------------------------------|----------|-------------|:--------:| -| fabric\_capacity\_name | Existing Fabric Capacity name | `string` | n/a | yes | -| solution\_name | Name of the solution | `string` | n/a | yes | -| subscription\_id | The Azure subscription ID | `string` | n/a | yes | -| fabric\_vnet\_gw\_admin | Entra Group name for Fabric VNet Gateway admins | `string` | `null` | no | -| fabric\_vnet\_gw\_connection\_creator | Entra Group name for Fabric VNet Gateway connection creators | `string` | `null` | no | -| location | Location of the Azure resources | `string` | `"WestUS2"` | no | - +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| fabric\_capacity\_name | Existing Fabric Capacity name | `string` | n/a | yes | +| solution\_name | Name of the solution | `string` | n/a | yes | +| subscription\_id | The Azure subscription ID | `string` | n/a | yes | +| fabric\_vnet\_gw\_admin | Entra Group name for Fabric VNet Gateway admins | `string` | `null` | no | +| fabric\_vnet\_gw\_connection\_creator | Entra Group name for Fabric VNet Gateway connection creators | `string` | `null` | no | +| location | Location of the Azure resources | `string` | `"WestUS2"` | no | ## Outputs -| Name | Description | -|------------------|----------------------------| +| Name | Description | +|------|-------------| | fabric\_capacity | The Fabric Capacity object | -| fabric\_gateway | The Fabric Gateway object | - +| fabric\_gateway | The Fabric Gateway object | ## Usage Execute example with the following commands: diff --git a/quickstarts/301-testing-terraform/README.md b/quickstarts/301-testing-terraform/README.md index 6dc4adf..847dc8c 100644 --- a/quickstarts/301-testing-terraform/README.md +++ b/quickstarts/301-testing-terraform/README.md @@ -7,48 +7,40 @@ Checkout how to write automated unit tests against this module using [Terraform] - [tests/unit\_test.tftest.hcl](./tests/unit\_test.tftest.hcl) - [tests/input\_validations.tftest.hcl](./tests/input\_validations.tftest.hcl) - --- - ## Requirements -| Name | Version | -|-----------|---------------| +| Name | Version | +|------|---------| | terraform | >= 1.8, < 2.0 | -| fabric | 1.1.0 | - +| fabric | 1.1.0 | ## Providers -| Name | Version | -|--------|---------| -| fabric | 1.1.0 | - +| Name | Version | +|------|---------| +| fabric | 1.1.0 | ## Modules No modules. - ## Resources -| Name | Type | -|-----------------------------------------------------------------------------------------------------------------------------------------------------|----------| -| [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| Name | Type | +|------|------| +| [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | | [fabric_workspace_role_assignment.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace_role_assignment) | resource | - ## Inputs -| Name | Description | Type | Default | Required | -|------------------------|----------------------------------------|----------|------------------------------------------|:--------:| -| principal\_id | Workspace role assignment Principal ID | `string` | `"96ce09da-4aab-46b5-b8ac-529f35944c83"` | no | -| workspace\_description | Description of the Workspace | `string` | `"test_description"` | no | -| workspace\_name | Name of the Workspace | `string` | `"test_workspace"` | no | - +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| principal\_id | Workspace role assignment Principal ID | `string` | `"96ce09da-4aab-46b5-b8ac-529f35944c83"` | no | +| workspace\_description | Description of the Workspace | `string` | `"test_description"` | no | +| workspace\_name | Name of the Workspace | `string` | `"test_workspace"` | no | ## Outputs -| Name | Description | -|---------------------------------|-----------------------------------------| -| workspace\_id | The Fabric workspace ID | +| Name | Description | +|------|-------------| +| workspace\_id | The Fabric workspace ID | | workspace\_role\_assignment\_id | The Fabric workspace role assignment ID | - ## Usage Execute example with the following commands: From 52d5fd2b479920e4970c3271fc8e4e66a92cb83f Mon Sep 17 00:00:00 2001 From: Yadong Lyu Date: Mon, 19 May 2025 14:21:46 -0700 Subject: [PATCH 19/19] run task tool firstly --- quickstarts/101-hello-fabric/README.md | 38 +++++---- quickstarts/102-fabric-capacity/README.md | 64 ++++++++------- quickstarts/103-fabric-sql-database/README.md | 46 ++++++----- quickstarts/202-fabric-vnet-gateway/README.md | 80 ++++++++++--------- quickstarts/301-testing-terraform/README.md | 42 ++++++---- 5 files changed, 155 insertions(+), 115 deletions(-) diff --git a/quickstarts/101-hello-fabric/README.md b/quickstarts/101-hello-fabric/README.md index 908391c..13f55e9 100644 --- a/quickstarts/101-hello-fabric/README.md +++ b/quickstarts/101-hello-fabric/README.md @@ -1,36 +1,44 @@ # Hello Fabric (100 level) + --- + ## Requirements -| Name | Version | -|------|---------| +| Name | Version | +|-----------|---------------| | terraform | >= 1.8, < 2.0 | -| fabric | 1.1.0 | +| fabric | 1.1.0 | + ## Providers -| Name | Version | -|------|---------| -| fabric | 1.1.0 | +| Name | Version | +|--------|---------| +| fabric | 1.1.0 | + ## Modules No modules. + ## Resources -| Name | Type | -|------|------| +| Name | Type | +|---------------------------------------------------------------------------------------------------------------------|----------| | [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | + ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| workspace\_name | Name of the Workspace | `string` | n/a | yes | +| Name | Description | Type | Default | Required | +|-----------------|-----------------------|----------|---------|:--------:| +| workspace\_name | Name of the Workspace | `string` | n/a | yes | + ## Outputs -| Name | Description | -|------|-------------| -| workspace | The Fabric workspace object | -| workspace\_id | The Fabric workspace ID | +| Name | Description | +|---------------|-----------------------------| +| workspace | The Fabric workspace object | +| workspace\_id | The Fabric workspace ID | + ## Usage Execute example with the following commands: diff --git a/quickstarts/102-fabric-capacity/README.md b/quickstarts/102-fabric-capacity/README.md index ce97355..0fea7a5 100644 --- a/quickstarts/102-fabric-capacity/README.md +++ b/quickstarts/102-fabric-capacity/README.md @@ -1,50 +1,58 @@ # Fabric Capacity (100 level) + --- + ## Requirements -| Name | Version | -|------|---------| +| Name | Version | +|-----------|---------------| | terraform | >= 1.8, < 2.0 | -| azuread | 3.4.0 | -| azurerm | 4.29.0 | -| fabric | 1.1.0 | +| azuread | 3.4.0 | +| azurerm | 4.29.0 | +| fabric | 1.1.0 | + ## Providers -| Name | Version | -|------|---------| -| azuread | 3.4.0 | -| azurerm | 4.29.0 | -| fabric | 1.1.0 | +| Name | Version | +|---------|---------| +| azuread | 3.4.0 | +| azurerm | 4.29.0 | +| fabric | 1.1.0 | + ## Modules No modules. + ## Resources -| Name | Type | -|------|------| -| [azurerm_fabric_capacity.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/fabric_capacity) | resource | -| [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/resource_group) | resource | -| [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| Name | Type | +|----------------------------------------------------------------------------------------------------------------------------------------|-------------| +| [azurerm_fabric_capacity.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/fabric_capacity) | resource | +| [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/resource_group) | resource | +| [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | | [azuread_directory_object.example](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/directory_object) | data source | -| [azuread_user.example](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/user) | data source | -| [azurerm_client_config.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/data-sources/client_config) | data source | -| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | +| [azuread_user.example](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/user) | data source | +| [azurerm_client_config.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/data-sources/client_config) | data source | +| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | + ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| solution\_name | Name of the solution | `string` | n/a | yes | -| subscription\_id | The Azure subscription ID | `string` | n/a | yes | -| fabric\_capacity\_admin\_upns | Collection of admin UPNs for the Fabric Capacity. | `set(string)` | `[]` | no | -| fabric\_capacity\_sku | Fabric Capacity SKU name | `string` | `"F2"` | no | -| location | Location of the Azure resources | `string` | `"WestUS3"` | no | +| Name | Description | Type | Default | Required | +|-------------------------------|---------------------------------------------------|---------------|-------------|:--------:| +| solution\_name | Name of the solution | `string` | n/a | yes | +| subscription\_id | The Azure subscription ID | `string` | n/a | yes | +| fabric\_capacity\_admin\_upns | Collection of admin UPNs for the Fabric Capacity. | `set(string)` | `[]` | no | +| fabric\_capacity\_sku | Fabric Capacity SKU name | `string` | `"F2"` | no | +| location | Location of the Azure resources | `string` | `"WestUS3"` | no | + ## Outputs -| Name | Description | -|------|-------------| -| fabric\_capacity | The Fabric Capacity object | +| Name | Description | +|-------------------|-----------------------------| +| fabric\_capacity | The Fabric Capacity object | | fabric\_workspace | The Fabric Workspace object | + ## Usage Execute example with the following commands: diff --git a/quickstarts/103-fabric-sql-database/README.md b/quickstarts/103-fabric-sql-database/README.md index 01ada67..11d4d6b 100644 --- a/quickstarts/103-fabric-sql-database/README.md +++ b/quickstarts/103-fabric-sql-database/README.md @@ -1,40 +1,48 @@ # Fabric SQL Database (100 level) + --- + ## Requirements -| Name | Version | -|------|---------| +| Name | Version | +|-----------|---------------| | terraform | >= 1.8, < 2.0 | -| fabric | 1.1.0 | +| fabric | 1.1.0 | + ## Providers -| Name | Version | -|------|---------| -| fabric | 1.1.0 | +| Name | Version | +|--------|---------| +| fabric | 1.1.0 | + ## Modules No modules. + ## Resources -| Name | Type | -|------|------| -| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | -| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | -| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | +| Name | Type | +|-------------------------------------------------------------------------------------------------------------------------------|-------------| +| [fabric_sql_database.example_sql](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/sql_database) | resource | +| [fabric_workspace.example_workspace](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| [fabric_capacity.capacity](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | + ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | -| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | -| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | +| Name | Description | Type | Default | Required | +|-----------------------------|-----------------------------------------|----------|---------|:--------:| +| fabric\_capacity\_name | The existing Fabric Capacity name. | `string` | n/a | yes | +| fabric\_sql\_database\_name | The name of SQL database to be created. | `string` | n/a | yes | +| fabric\_workspace\_name | The name of workspace to be created. | `string` | n/a | yes | + ## Outputs -| Name | Description | -|------|-------------| +| Name | Description | +|---------------------------|-------------------------------------| | fabric\_sql\_database\_id | The created Fabric SQL database id | -| fabric\_workspace\_id | The created Fabric workspace id | +| fabric\_workspace\_id | The created Fabric workspace id | + ## Usage Execute example with the following commands: diff --git a/quickstarts/202-fabric-vnet-gateway/README.md b/quickstarts/202-fabric-vnet-gateway/README.md index 55ecc60..ddc79cc 100644 --- a/quickstarts/202-fabric-vnet-gateway/README.md +++ b/quickstarts/202-fabric-vnet-gateway/README.md @@ -1,57 +1,65 @@ # Fabric Virtual Network Gateway (200 level) + --- + ## Requirements -| Name | Version | -|------|---------| +| Name | Version | +|-----------|---------------| | terraform | >= 1.8, < 2.0 | -| azuread | 3.4.0 | -| azurerm | 4.29.0 | -| fabric | 1.1.0 | +| azuread | 3.4.0 | +| azurerm | 4.29.0 | +| fabric | 1.1.0 | + ## Providers -| Name | Version | -|------|---------| -| azuread | 3.4.0 | -| azurerm | 4.29.0 | -| fabric | 1.1.0 | +| Name | Version | +|---------|---------| +| azuread | 3.4.0 | +| azurerm | 4.29.0 | +| fabric | 1.1.0 | + ## Modules No modules. + ## Resources -| Name | Type | -|------|------| -| [azurerm_network_security_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/network_security_group) | resource | -| [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/resource_group) | resource | -| [azurerm_role_assignment.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/role_assignment) | resource | -| [azurerm_subnet.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/subnet) | resource | -| [azurerm_subnet_network_security_group_association.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/subnet_network_security_group_association) | resource | -| [azurerm_virtual_network.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/virtual_network) | resource | -| [fabric_gateway.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway) | resource | -| [fabric_gateway_role_assignment.example_admin](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway_role_assignment) | resource | -| [fabric_gateway_role_assignment.example_connection_creator](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway_role_assignment) | resource | -| [azuread_group.example_admin](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/group) | data source | -| [azuread_group.example_connection_creator](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/group) | data source | -| [azurerm_client_config.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/data-sources/client_config) | data source | -| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | +| Name | Type | +|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------| +| [azurerm_network_security_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/network_security_group) | resource | +| [azurerm_resource_group.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/resource_group) | resource | +| [azurerm_role_assignment.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/role_assignment) | resource | +| [azurerm_subnet.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/subnet) | resource | +| [azurerm_subnet_network_security_group_association.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/subnet_network_security_group_association) | resource | +| [azurerm_virtual_network.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/resources/virtual_network) | resource | +| [fabric_gateway.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway) | resource | +| [fabric_gateway_role_assignment.example_admin](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway_role_assignment) | resource | +| [fabric_gateway_role_assignment.example_connection_creator](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/gateway_role_assignment) | resource | +| [azuread_group.example_admin](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/group) | data source | +| [azuread_group.example_connection_creator](https://registry.terraform.io/providers/hashicorp/azuread/3.4.0/docs/data-sources/group) | data source | +| [azurerm_client_config.example](https://registry.terraform.io/providers/hashicorp/azurerm/4.29.0/docs/data-sources/client_config) | data source | +| [fabric_capacity.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/data-sources/capacity) | data source | + ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| fabric\_capacity\_name | Existing Fabric Capacity name | `string` | n/a | yes | -| solution\_name | Name of the solution | `string` | n/a | yes | -| subscription\_id | The Azure subscription ID | `string` | n/a | yes | -| fabric\_vnet\_gw\_admin | Entra Group name for Fabric VNet Gateway admins | `string` | `null` | no | -| fabric\_vnet\_gw\_connection\_creator | Entra Group name for Fabric VNet Gateway connection creators | `string` | `null` | no | -| location | Location of the Azure resources | `string` | `"WestUS2"` | no | +| Name | Description | Type | Default | Required | +|---------------------------------------|--------------------------------------------------------------|----------|-------------|:--------:| +| fabric\_capacity\_name | Existing Fabric Capacity name | `string` | n/a | yes | +| solution\_name | Name of the solution | `string` | n/a | yes | +| subscription\_id | The Azure subscription ID | `string` | n/a | yes | +| fabric\_vnet\_gw\_admin | Entra Group name for Fabric VNet Gateway admins | `string` | `null` | no | +| fabric\_vnet\_gw\_connection\_creator | Entra Group name for Fabric VNet Gateway connection creators | `string` | `null` | no | +| location | Location of the Azure resources | `string` | `"WestUS2"` | no | + ## Outputs -| Name | Description | -|------|-------------| +| Name | Description | +|------------------|----------------------------| | fabric\_capacity | The Fabric Capacity object | -| fabric\_gateway | The Fabric Gateway object | +| fabric\_gateway | The Fabric Gateway object | + ## Usage Execute example with the following commands: diff --git a/quickstarts/301-testing-terraform/README.md b/quickstarts/301-testing-terraform/README.md index 847dc8c..6dc4adf 100644 --- a/quickstarts/301-testing-terraform/README.md +++ b/quickstarts/301-testing-terraform/README.md @@ -7,40 +7,48 @@ Checkout how to write automated unit tests against this module using [Terraform] - [tests/unit\_test.tftest.hcl](./tests/unit\_test.tftest.hcl) - [tests/input\_validations.tftest.hcl](./tests/input\_validations.tftest.hcl) + --- + ## Requirements -| Name | Version | -|------|---------| +| Name | Version | +|-----------|---------------| | terraform | >= 1.8, < 2.0 | -| fabric | 1.1.0 | +| fabric | 1.1.0 | + ## Providers -| Name | Version | -|------|---------| -| fabric | 1.1.0 | +| Name | Version | +|--------|---------| +| fabric | 1.1.0 | + ## Modules No modules. + ## Resources -| Name | Type | -|------|------| -| [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | +| Name | Type | +|-----------------------------------------------------------------------------------------------------------------------------------------------------|----------| +| [fabric_workspace.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace) | resource | | [fabric_workspace_role_assignment.example](https://registry.terraform.io/providers/microsoft/fabric/1.1.0/docs/resources/workspace_role_assignment) | resource | + ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| principal\_id | Workspace role assignment Principal ID | `string` | `"96ce09da-4aab-46b5-b8ac-529f35944c83"` | no | -| workspace\_description | Description of the Workspace | `string` | `"test_description"` | no | -| workspace\_name | Name of the Workspace | `string` | `"test_workspace"` | no | +| Name | Description | Type | Default | Required | +|------------------------|----------------------------------------|----------|------------------------------------------|:--------:| +| principal\_id | Workspace role assignment Principal ID | `string` | `"96ce09da-4aab-46b5-b8ac-529f35944c83"` | no | +| workspace\_description | Description of the Workspace | `string` | `"test_description"` | no | +| workspace\_name | Name of the Workspace | `string` | `"test_workspace"` | no | + ## Outputs -| Name | Description | -|------|-------------| -| workspace\_id | The Fabric workspace ID | +| Name | Description | +|---------------------------------|-----------------------------------------| +| workspace\_id | The Fabric workspace ID | | workspace\_role\_assignment\_id | The Fabric workspace role assignment ID | + ## Usage Execute example with the following commands: