Skip to content

Commit 7bbda47

Browse files
authored
Merge pull request #15596 from MicrosoftDocs/main
7/31/2024 AM Publish
2 parents 9f0618a + 5588bb1 commit 7bbda47

File tree

4 files changed

+153
-183
lines changed

4 files changed

+153
-183
lines changed

azure-managed-lustre/create-aml-file-system-terraform.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: 'Create an Azure Managed Lustre file system using Terraform'
3-
description: Learn how to create an Azure Managed Lustre file system using Terraform.
2+
title: Create an Azure Managed Lustre file system by using Terraform
3+
description: Learn how to create an Azure Managed Lustre file system by using Terraform.
44
services: azure-stack
55
author: pauljewellmsft
66
ms.service: azure-stack
@@ -13,7 +13,7 @@ content_well_notification:
1313
ai-usage: ai-assisted
1414
---
1515

16-
# Create an Azure Managed Lustre file system using Terraform
16+
# Create an Azure Managed Lustre file system by using Terraform
1717

1818
In this article, you use Terraform to create an [Azure Managed Lustre](amlfs-overview.md) file system.
1919

@@ -22,28 +22,29 @@ In this article, you use Terraform to create an [Azure Managed Lustre](amlfs-ove
2222
In this article, you learn how to:
2323

2424
> [!div class="checklist"]
25-
> * Create a random value (to be used in the resource group name) using [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet)
26-
> * Create an Azure resource group using [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group)
27-
> * Create an Azure Virtual Network using [azurerm_virtual_network](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network)
28-
> * Create an Azure subnet using [azurerm_subnet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet)
29-
> * Create a random value (to be used as the Managed Lustre file system name) using [random_string](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string)
30-
> * Create a Managed Lustre file system using [azurerm_managed_lustre_file_system](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/managed_lustre_file_system)
25+
>
26+
> * Create a random value (to be used in the resource group name) by using [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet).
27+
> * Create an Azure resource group by using [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group).
28+
> * Create an Azure virtual network by using [azurerm_virtual_network](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network).
29+
> * Create an Azure subnet by using [azurerm_subnet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet).
30+
> * Create a random value (to be used as the Managed Lustre file system name) by using [random_string](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string).
31+
> * Create a Managed Lustre file system by using [azurerm_managed_lustre_file_system](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/managed_lustre_file_system).
3132
3233
> [!NOTE]
33-
> The code example in this article uses the [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) and [random_string](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) resources to generate unique values for the resource group name and the Managed Lustre file system name. You can replace these values with your own resource names in the `variables.tf` and `main.tf` files.
34+
> The code examples in this article use the [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) and [random_string](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) resources to generate unique values for the resource group name and the Managed Lustre file system name. You can replace these values with your own resource names in the `variables.tf` and `main.tf` files.
3435
3536
## Prerequisites
3637

37-
- [Install and configure Terraform](/azure/developer/terraform/quickstart-configure)
38+
* [Install and configure Terraform](/azure/developer/terraform/quickstart-configure)
3839

3940
## Implement the Terraform code
4041

4142
> [!NOTE]
42-
> The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-managed-lustre-create-filesystem). 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-managed-lustre-create-filesystem/TestRecord.md).
43+
> The sample code for this article comes from the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-managed-lustre-create-filesystem). You can view the log file that contains the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-managed-lustre-create-filesystem/TestRecord.md).
4344
>
44-
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform)
45+
> For more articles and sample code that show how to use Terraform to manage Azure resources, see the [main page for Terraform on Azure documentation](/azure/terraform).
4546
46-
1. Create a directory in which to test the sample Terraform code and make it the current directory.
47+
1. Create a directory in which to test the sample Terraform code, and make it the current directory.
4748

4849
1. Create a file named `providers.tf` and insert the following code:
4950

@@ -77,19 +78,19 @@ In this article, you learn how to:
7778

7879
#### [Azure CLI](#tab/azure-cli)
7980

80-
1. Get the Azure resource group name.
81+
1. Get the name of the Azure resource group:
8182

8283
```console
8384
resource_group_name=$(terraform output -raw resource_group_name)
8485
```
8586

86-
1. Get the Managed Lustre file system name.
87+
1. Get the name of the Managed Lustre file system:
8788

8889
```console
8990
managed_lustre_file_system_name=$(terraform output -raw managed_lustre_file_system_name)
9091
```
9192

92-
1. Run [az amlfs show](/cli/azure/amlfs#az-amlfs-show) to display the Managed Lustre file system name.
93+
1. Run [az amlfs show](/cli/azure/amlfs#az-amlfs-show) to display the name of the Managed Lustre file system:
9394

9495
```azurecli
9596
az amlfs show --resource-group $resource_group_name \
@@ -99,19 +100,19 @@ In this article, you learn how to:
99100

100101
#### [Azure PowerShell](#tab/azure-powershell)
101102

102-
1. Get the Azure resource group name.
103+
1. Get the name of the Azure resource group:
103104

104105
```console
105106
$resource_group_name=$(terraform output -raw resource_group_name)
106107
```
107108

108-
1. Get the Managed Lustre file system name.
109+
1. Get the name of the Managed Lustre file system:
109110

110111
```console
111112
$managed_lustre_file_system_name=$(terraform output -raw managed_lustre_file_system_name)
112113
```
113114

114-
1. Run [Get-AzStorageCacheAmlFileSystem](/powershell/module/az.storagecache/get-azstoragecacheamlfilesystem) to display the Lustre file system name.
115+
1. Run [Get-AzStorageCacheAmlFileSystem](/powershell/module/az.storagecache/get-azstoragecacheamlfilesystem) to display the name of the Managed Lustre file system:
115116

116117
```azurepowershell
117118
Get-AzStorageCacheAmlFileSystem -ResourceGroupName $resource_group_name `
@@ -126,11 +127,8 @@ In this article, you learn how to:
126127

127128
## Troubleshoot Terraform on Azure
128129

129-
[Troubleshoot common problems when using Terraform on Azure](/azure/developer/terraform/troubleshoot)
130-
131-
## Next steps
130+
See [Troubleshoot common problems when using Terraform on Azure](/azure/developer/terraform/troubleshoot).
132131

133-
Next, you can explore more about Azure Managed Lustre.
132+
## Related content
134133

135-
> [!div class="nextstepaction"]
136-
> [Learn about Azure Managed Lustre](amlfs-overview.md)
134+
* [Azure Managed Lustre overview](amlfs-overview.md)

0 commit comments

Comments
 (0)