Skip to content

Commit ade9d8f

Browse files
Merge pull request #17491 from hungry1526/main
Update TF Doc
2 parents 5a7ec88 + c27a56a commit ade9d8f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

AKS-Arc/create-clusters-terraform.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ For more options, you can either follow [Configure SSH keys for an AKS cluster](
5353

5454
## Sign in to Azure
5555

56-
Terraform only supports authenticating to Azure with the Azure CLI using [`az login`](/cli/azure/reference-index#az-login). Authenticating using Azure PowerShell isn't supported. Therefore, while you can use the Azure PowerShell module when doing your Terraform work, you must first[authenticate to Azure](/azure/developer/terraform/authenticate-to-azure):
56+
Terraform only supports authenticating to Azure with the Azure CLI using [`az login`](/cli/azure/reference-index#az-login). Authenticating using Azure PowerShell isn't supported. Therefore, while you can use the Azure PowerShell module when doing your Terraform work, you must first [authenticate to Azure](/azure/developer/terraform/authenticate-to-azure):
5757

5858
```azurecli
5959
az login
@@ -62,7 +62,7 @@ az login
6262
## Implement the Terraform code
6363

6464
1. Create a directory you can use to test the sample Terraform code, and make it your current directory.
65-
1. In the same directory, create a file named**providers.tf**and paste the following code:
65+
1. In the same directory, create a file named **providers.tf** and paste the following code. Make sure to replace `<subscription_ID>` with your subscription ID:
6666

6767
```terraform
6868
terraform {
@@ -79,7 +79,8 @@ az login
7979
}
8080
}
8181
82-
provider "azurerm" {
82+
provider "azurerm" {
83+
subscription_id = "<subscription_ID>"
8384
features {
8485
resource_group {
8586
prevent_deletion_if_contains_resources = false

0 commit comments

Comments
 (0)