Skip to content

Commit f5dd77d

Browse files
HJ HangHJ Hang
authored andcommitted
update terraform doc
1 parent bccb938 commit f5dd77d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

AKS-Arc/create-clusters-terraform.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ az login
7070
required_providers {
7171
azapi = {
7272
source = "azure/azapi"
73-
version = "~> 1.13"
73+
version = "~> 2.0"
7474
}
7575
azurerm = {
7676
source = "hashicorp/azurerm"
77-
version = "~> 3.74"
77+
version = "~> 4.0"
7878
}
7979
}
8080
}
@@ -88,13 +88,13 @@ az login
8888
}
8989
```
9090

91-
1. Create another file named **main.tf** that points to the latest AKS Arc AVM module, and insert the following code. You can read the description and input of the module and add optional parameters as needed. To find the admin group object ID, see [Enable Microsoft Entra authentication for Kubernetes clusters](enable-authentication-microsoft-entra-id.md). You can [follow this guidance](https://github.com/Azure/Edge-infrastructure-quickstart-template/blob/main/doc/AKS-Arc-Admin-Groups.md) to find it in your Azure environment.
91+
1. Create another file named **main.tf** that points to the latest AKS Arc AVM module, and insert the following code. You can read the description and input of the module and add optional parameters as needed. To find the admin group object ID, see [Enable Microsoft Entra authentication for Kubernetes clusters](enable-authentication-microsoft-entra-id.md). You can [follow this guidance](https://github.com/Azure/Edge-infrastructure-quickstart-template/blob/main/doc/AKS-Arc-Admin-Groups.md) to find it in your Azure environment. To enable Azure RBAC, please update the corresponding parameter and see [Enable Azure RBAC for Kubernetes Authorization](azure-rbac-23h2.md) for prerequisites.
9292

9393
```terraform
9494
module "aks_arc" {
9595
# Make sure to use the latest AVM module version
9696
source = "Azure/avm-res-hybridcontainerservice-provisionedclusterinstance/azurerm"
97-
version = "~>0.6"
97+
version = "~>2.0"
9898
9999
# Make sure to provide all required parameters
100100
resource_group_id = "<Resource_Group>"
@@ -105,7 +105,8 @@ az login
105105
agent_pool_profiles = [{count=1}]
106106
ssh_public_key = "Your_SSH_Key"
107107
108-
# Optional parameters, update them as needed
108+
# Optional parameters, please update them as needed
109+
enable_azure_rbac = false
109110
enable_workload_identity = false
110111
enable_oidc_issuer = false
111112
rbac_admin_group_object_ids = ["<Admin_Group_Object_ID>"]

0 commit comments

Comments
 (0)