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
# Quickstart: Create an App Service app by using a Terraform template
13
13
14
-
Get started with [Azure App Service](overview.md) by deploying an app to the cloud using[Terraform](/azure/developer/terraform/). When you use a free App Service tier, there's no charge to complete this quickstart.
14
+
Get started with [Azure App Service](overview.md) by deploying an app to the cloud via[Terraform](/azure/developer/terraform/). When you use a free App Service tier, there's no charge to complete this quickstart.
15
15
16
16
Terraform allows you to define and create complete infrastructure deployments in Azure. You build Terraform templates in a human-readable format that create and configure Azure resources in a consistent, reproducible manner. This article shows you how to create a Windows app by using Terraform.
17
17
18
18
## Prerequisites
19
19
20
-
Azure subscription: If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio) before you begin.
20
+
* You need an Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio) before you begin.
21
21
22
-
Configure Terraform: Use one of the following options:
22
+
*Configure Terraform. Use one of the following options:
23
23
24
-
*[Configure Terraform in Azure Cloud Shell by using Bash](/azure/developer/terraform/get-started-cloud-shell-bash?tabs=bash)
25
-
*[Configure Terraform in Azure Cloud Shell by using PowerShell](/azure/developer/terraform/get-started-cloud-shell-powershell?tabs=bash)
26
-
*[Configure Terraform in Windows by using Bash](/azure/developer/terraform/get-started-windows-bash?tabs=bash)
27
-
*[Configure Terraform in Windows by using PowerShell](/azure/developer/terraform/get-started-windows-powershell?tabs=bash)
24
+
*[Configure Terraform in Azure Cloud Shell by using Bash](/azure/developer/terraform/get-started-cloud-shell-bash?tabs=bash)
25
+
*[Configure Terraform in Azure Cloud Shell by using PowerShell](/azure/developer/terraform/get-started-cloud-shell-powershell?tabs=bash)
26
+
*[Configure Terraform in Windows by using Bash](/azure/developer/terraform/get-started-windows-bash?tabs=bash)
27
+
*[Configure Terraform in Windows by using PowerShell](/azure/developer/terraform/get-started-windows-powershell?tabs=bash)
28
28
29
29
By using the Azure Terraform Visual Studio Code extension, you can work with Terraform from the editor. By using this extension, you can author, test, and run Terraform configurations. The extension also supports resource graph visualization. See [this guide](/azure/developer/terraform/configure-vs-code-extension-for-terraform) to learn how to configure the Azure Terraform Visual Studio Code extension.
30
30
31
31
## Review the template
32
32
33
-
The following template is used in this quickstart. It deploys an App Service plan and an App Service app on Linux and a sample Node.js `Hello World` app from the [Azure Samples](https://github.com/Azure-Samples) repo.
33
+
This quickstart uses the following template. It deploys an App Service plan and an App Service app on Linux and a sample Node.js `Hello World` app from the [Azure Samples](https://github.com/Azure-Samples) repo.
The following four Azure resources are defined in the template. For further details and usage information, visit the [Azure Provider Terraform Registry](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs).
97
+
The template defines the following four Azure resources. For further details and usage information, see the [Azure Provider Terraform Registry](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs).
98
98
99
-
*[**Microsoft.Resources/resourcegroups**](/azure/templates/microsoft.resources/resourcegroups?tabs=json): Create a Resource Group if one doesn't already exist.
99
+
*[Microsoft.Resources/resourcegroups](/azure/templates/microsoft.resources/resourcegroups?tabs=json): Create a resource group if one doesn't already exist.
For more information on how to construct Terraform templates, see [Terraform Learn documentation](https://learn.hashicorp.com/collections/terraform/azure-get-started?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS).
@@ -148,14 +148,14 @@ Terraform provides many features that you can use to manage, build, deploy, and
148
148
149
149
1. You can see the App Service and an App Service Plan that Terraform created.
150
150
151
-
1. Select **App Service** and go to the url to verify that your site was created properly. You can also browse to `http://<app_name>.azurewebsites.net/` where app name is `webapp-` followed by that same string of random integers from the resource group.
151
+
1. Select **App Service** and go to the URL to verify that your site was created properly. You can also browse to `http://<app_name>.azurewebsites.net/`, where app name is `webapp-` followed by that same string of random integers from the resource group.
152
152
153
153
## Clean up resources
154
154
155
155
When no longer needed, either [delete the resource group](../azure-resource-manager/management/delete-resource-group.md?tabs=azure-portal#delete-resource-group) or go back to your terminal/command line and execute `terraform destroy` to delete all resources associated with this quickstart.
156
156
157
157
> [!NOTE]
158
-
> You can find more Azure App Service Terraform samples [here](./samples-terraform.md). You can find even more Terraform samples across all of the Azure services [here](https://github.com/hashicorp/terraform-provider-azurerm/tree/main/examples).
158
+
> You can find more Azure App Service Terraform samples in [this article](./samples-terraform.md). You can find even more Terraform samples across all of the Azure services on [GitHub](https://github.com/hashicorp/terraform-provider-azurerm/tree/main/examples).
0 commit comments