You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The `azd` template includes a `.devcontainer` that already has `azd` installed, therefore you can skip the installation step if you plan to use a `devcontainer` either locally or in an environment like Codespaces.
73
73
74
+
# [Terraform](#tab/terraform)
75
+
76
+
- You need an Azure account with an active subscription. You can [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
77
+
78
+
-[Install and configure Terraform](/azure/developer/terraform/quickstart-configure)
79
+
74
80
---
75
81
76
82
Next, sign in to Azure.
@@ -123,7 +129,13 @@ To sign-in to a local installation of `azd` or Codespaces environment, run the [
123
129
124
130
`azd` will launch a browser window that you can use to sign-in to Azure.
125
131
132
+
133
+
# [Terraform](#tab/terraform)
134
+
135
+
[Authenticate Terraform to Azure](/azure/developer/terraform/authenticate-to-azure)
136
+
126
137
---
138
+
127
139
## Create a storage account
128
140
129
141
A storage account is an Azure Resource Manager resource. Resource Manager is the deployment and management service for Azure. For more information, see [Azure Resource Manager overview](../../azure-resource-manager/management/overview.md).
@@ -505,7 +517,42 @@ Initialize and run the template for this quickstart using the following steps:
505
517
506
518
:::image type="content" source="media/storage-account-create/azure-developer-cli-resource-group.png" alt-text="A screenshot showing the deployed resource group and storage account.":::
507
519
520
+
# [Terraform](#tab/terraform)
521
+
522
+
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-account). 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-account/TestRecord.md). See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform)
523
+
524
+
1. Create a directory in which to test and run the sample Terraform code, and make it the current directory.
525
+
526
+
1. Create a file named `providers.tf`, and insert the following code:
> If you're using the 4.x azurerm provider, you must [explicitly specify the Azure subscription ID](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#specifying-subscription-id-is-now-mandatory) to authenticate to Azure before running the Terraform commands.
540
+
>
541
+
> One way to specify the Azure subscription ID without putting it in the `providers` block is to specify the subscription ID in an environment variable named `ARM_SUBSCRIPTION_ID`.
542
+
>
543
+
> For more information, see the [Azure provider reference documentation](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#argument-reference).
Deleting a storage account deletes the entire account, including all data in the account. Be sure to back up any data you want to save before you delete the account.
@@ -579,7 +626,12 @@ To delete the resource group and storage account created by `azd`, use the `azd
Alternately, you can delete the resource group, which deletes the storage account and any other resources in that resource group. For more information about deleting a resource group, see [Delete resource group and resources](../../azure-resource-manager/management/delete-resource-group.md).
0 commit comments