Skip to content

Commit

Permalink
docs: make docs & pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF committed Sep 29, 2024
1 parent 805232c commit b02e68d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ Type: `string`

### <a name="input_parent_resource_id"></a> [parent\_resource\_id](#input\_parent\_resource\_id)

Description: The resource id of the parent management group. Use the tenant id to create a child of the tenant root group.
The `azurerm_client_config`/`azapi_client_config` data sources are able to retrieve the tenant id.
Description: The resource name of the parent management group. Use the tenant id to create a child of the tenant root group.
The `azurerm_client_config`/`azapi_client_config` data sources are able to retrieve the tenant id.
Do not include the `/providers/Microsoft.Management/managementGroups/` prefix.

Type: `string`

Expand Down
6 changes: 3 additions & 3 deletions tests/unit/existingmanagementgroup.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ provider "alz" {
}

variables {
architecture_name = "existingmg"
location = "sweedencentral"
architecture_name = "existingmg"
location = "sweedencentral"
parent_resource_id = "parent"
}

run "existingmg" {
command = plan

assert {
condition = data.alz_architecture.this.management_groups[0].exists
condition = data.alz_architecture.this.management_groups[0].exists
error_message = "The management group level 0 resource should not be created."
}
}

0 comments on commit b02e68d

Please sign in to comment.