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
Copy file name to clipboardExpand all lines: articles/terraform/terraform-create-complete-vm.md
+61-62Lines changed: 61 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,21 @@
1
1
---
2
-
title: Use Terraform to create a complete Linux VM in Azure
3
-
description: Learn how to use Terraform to create and manage a complete Linux virtual machine environment in Azure
4
-
services: virtual-machines-linux
5
-
documentationcenter: virtual-machines
6
-
author: tomarchermsft
7
-
manager: gwallace
8
-
editor: na
9
-
tags: azure-resource-manager
10
-
ms.assetid:
11
-
ms.service: virtual-machines-linux
12
-
ms.topic: article
13
-
ms.tgt_pltfrm: vm-linux
14
-
ms.workload: infrastructure
15
-
ms.date: 09/20/2019
16
-
ms.author: tarcher
2
+
title: Quickstart - Use Terraform to create a complete Linux VM in Azure
3
+
description: In this quickstart, you use Terraform to create and manage a complete Linux virtual machine environment in Azure
4
+
keywords: azure devops terraform linux vm virtual machine
5
+
ms.topic: quickstart
6
+
ms.date: 03/09/2020
17
7
---
18
8
19
-
# Create a complete Linux virtual machine infrastructure in Azure with Terraform
9
+
# Quickstart: Create a complete Linux virtual machine infrastructure in Azure with Terraform
20
10
21
-
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 complete Linux environment and supporting resources with Terraform. You can also learn how to [Install and configure Terraform](terraform-install-configure.md).
11
+
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 complete Linux environment and supporting resources with Terraform. You can also learn how to [install and configure Terraform](terraform-install-configure.md).
22
12
23
13
> [!NOTE]
24
14
> For Terraform specific support, please reach out to Terraform directly using one of their community channels:
25
15
>
26
-
>• The [Terraform section](https://discuss.hashicorp.com/c/terraform-core) of the community portal contains questions, use cases, and useful patterns.
16
+
>* The [Terraform section](https://discuss.hashicorp.com/c/terraform-core) of the community portal contains questions, use cases, and useful patterns.
27
17
>
28
-
>• For provider-related questions please visit the [Terraform Providers](https://discuss.hashicorp.com/c/terraform-providers) section of the community portal.
18
+
>* For provider-related questions please visit the [Terraform Providers](https://discuss.hashicorp.com/c/terraform-providers) section of the community portal.
29
19
30
20
31
21
## Create Azure connection and resource group
@@ -39,6 +29,11 @@ The `provider` section tells Terraform to use an Azure provider. To get values f
39
29
40
30
```hcl
41
31
provider "azurerm" {
32
+
# The "feature" block is required for AzureRM provider 2.x.
33
+
# If you are using version 1.x, the "features" block is not allowed.
@@ -431,8 +429,8 @@ persisted to local or remote state storage.
431
429
432
430
...
433
431
434
-
Note: You didn’t specify an “-out” parameter to save this plan, so when
435
-
“apply” is called, Terraform can’t guarantee this is what will execute.
432
+
Note: You didn't specify an "-out" parameter to save this plan, so when
433
+
"apply" is called, Terraform can't guarantee this is what will execute.
436
434
+ azurerm_resource_group.myterraform
437
435
<snip>
438
436
+ azurerm_virtual_network.myterraformnetwork
@@ -469,4 +467,5 @@ ssh azureuser@<publicIps>
469
467
```
470
468
471
469
## Next steps
472
-
You have created basic infrastructure in Azure by using Terraform. For more complex scenarios, including examples that use load balancers and virtual machine scale sets, see numerous [Terraform examples for Azure](https://github.com/hashicorp/terraform/tree/master/examples). For an up-to-date list of supported Azure providers, see the [Terraform documentation](https://www.terraform.io/docs/providers/azurerm/index.html).
470
+
> [!div class="nextstepaction"]
471
+
> [Learn more about using Terraform in Azure](/azure/terraform)
0 commit comments