Skip to content

Commit af10a7b

Browse files
committed
4.x authentication issue
1 parent 58bfb2f commit af10a7b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

articles/storage-actions/storage-tasks/storage-task-quickstart-terraform.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ In this how-to article, you'll learn how to create a storage task using Terrafor
4444

4545
## Implement the Terraform code
4646

47-
> [!NOTE]
48-
> The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-storage-actions-create-storage-task). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-storage-actions-create-storage-task/TestRecord.md).
49-
>
50-
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform)
47+
The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-storage-actions-create-storage-task). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-storage-actions-create-storage-task/TestRecord.md). See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform)
5148

5249
1. Create a directory in which to test and run the sample Terraform code, and make it the current directory.
5350

@@ -63,6 +60,13 @@ In this how-to article, you'll learn how to create a storage task using Terrafor
6360
1. Create a file named `outputs.tf` and insert the following code.
6461
:::code language="Terraform" source="~/terraform_samples/quickstart/101-azure-storage-actions-create-storage-task/outputs.tf":::
6562

63+
> [!IMPORTANT]
64+
> If you are using the 4.x azurerm provider, you must [specify the subscription ID](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#specifying-subscription-id-is-now-mandatory) to authenticate the Azure before running the Terraform commands.
65+
>
66+
> One way to specify the Azure subscription ID without hard coding it into your providers.tf file, is to specify the subscription ID in an environment variable named `ARM_SUBSCRIPTION_id`.
67+
>
68+
> For more information, see the [Azure provider reference documentation](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#argument-reference).
69+
6670
## Initialize Terraform
6771

6872
[!INCLUDE [terraform-init.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-init.md)]

0 commit comments

Comments
 (0)