Skip to content

Commit 14dad86

Browse files
Merge pull request #17336 from hungry1526/main
update terraform doc
2 parents bccb938 + 6faa404 commit 14dad86

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, 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>"
@@ -106,6 +106,7 @@ az login
106106
ssh_public_key = "Your_SSH_Key"
107107
108108
# Optional parameters, 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>"]
@@ -114,7 +115,7 @@ az login
114115

115116
## Initialize Terraform
116117

117-
Run[`terraform init`](https://www.terraform.io/docs/commands/init.html)to initialize the Terraform deployment. Make sure to use the `-upgrade` flag to upgrade the necessary provider plugins to the latest version:
118+
Run [`terraform init`](https://www.terraform.io/docs/commands/init.html) to initialize the Terraform deployment. Make sure to use the `-upgrade` flag to upgrade the necessary provider plugins to the latest version:
118119

119120
```terraform
120121
terraform init -upgrade

0 commit comments

Comments
 (0)