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
This article describes how to create an Arc VM starting with the VM images that you've created on your Azure Local instance. You can create Arc VMs using the Azure CLI, Azure portal, or Azure Resource Manager template.
17
+
This article describes how to create an Arc virtual machine (VM) starting with the VM images that you created on your Azure Local instance. You can create Arc VMs using the Azure CLI, Azure portal, or Azure Resource Manager template.
18
18
19
19
## About Azure Local resource
20
20
@@ -36,7 +36,7 @@ Before you create an Azure Arc-enabled VM, make sure that the following prerequi
36
36
37
37
- If using a client to connect to your Azure Local, see [Connect to Azure Local via Azure CLI client](./azure-arc-vm-management-prerequisites.md#azure-command-line-interface-cli-requirements).
38
38
39
-
- Access to a network interface that you have created on a logical network associated with your Azure Local. You can choose a network interface with static IP or one with a dynamic IP allocation. For more information, see how to [Create network interfaces](./create-network-interfaces.md).
39
+
- Access to a network interface that you created on a logical network associated with your Azure Local. You can choose a network interface with static IP or one with a dynamic IP allocation. For more information, see how to [Create network interfaces](./create-network-interfaces.md).
40
40
41
41
# [Azure portal](#tab/azureportal)
42
42
@@ -56,6 +56,26 @@ Before you create an Azure Arc-enabled VM, make sure that the following prerequi
56
56
- Access to a logical network that you associate with the VM on your Azure Local. For more information, see how to [Create logical network](./create-logical-networks.md).
57
57
-[Download the sample Bicep template](https://aka.ms/hci-vmbiceptemplate)
- Access to a logical network that you associate with the VM of your Azure Local. For more information, see [Create logical networks](../manage/create-logical-networks.md).
64
+
- Make sure Terraform is installed and up to date on your machine.
65
+
- To verify your Terraform version, run the `terraform -v` command.
- Make sure Git is installed and up to date on your machine.
77
+
- To verify your version of Git, run the `git --version` command.
78
+
59
79
---
60
80
61
81
## Create Arc VMs
@@ -72,7 +92,7 @@ Follow these steps on the client running az CLI that is connected to your Azure
72
92
73
93
### Create a Windows VM
74
94
75
-
Depending on the type of the network interface that you created, you can create a VM that has network interface with static IP or one with a dynamic IP allocation.
95
+
Depending on the type of the network interface that you created, you can create a VM that has network interface with static IP or one with a dynamic IP allocation.
76
96
77
97
> [!NOTE]
78
98
> If you need more than one network interface with static IPs for your VM, create the interface(s) now before you create the VM. Adding a network interface with static IP, after the VM is provisioned, is not supported.
@@ -122,9 +142,6 @@ Here we create a VM that uses specific memory and processor counts on a specifie
The VM is successfully created when the `provisioningState` shows as `succeeded`in the output.
129
146
130
147
> [!NOTE]
@@ -134,7 +151,7 @@ In this example, the storage path was specified using the `--storage-path-id` fl
134
151
135
152
If the flag isn't specified, the workload (VM, VM image, non-OS data disk) is automatically placed in a high availability storage path.
136
153
137
-
### Create a Linux VM
154
+
### Create a Linux VM
138
155
139
156
To create a Linux VM, use the same command that you used to create the Windows VM.
140
157
@@ -170,12 +187,12 @@ You can input the following parameters for `proxy-server-configuration`:
170
187
<!--| **proxyServerUsername** |Username for proxy authentication. The username and password are combined in this URL format: `http://username:[email protected]:3128`. An example is: `GusPinto`|
171
188
| **proxyServerPassword** |Password for proxy authentication. The username and password are combined in a URL format similar to the following: `http://username:[email protected]:3128`. An example is: `UseAStrongerPassword!` |-->
For proxy authentication, you can pass the username and password combined in a URL as follows:`"http://username:[email protected]:3128"`.
180
197
181
198
<!--Depending on the PowerShell version you're running on your VM, you may need to enable the proxy settings for your VM.
@@ -264,7 +281,6 @@ Follow these steps in Azure portal for your Azure Local.
264
281
> [!NOTE]
265
282
> For proxy authentication, you can pass the username and password combined in a URL as follows: `http://username:[email protected]:3128`.
266
283
267
-
268
284
1. Set the local VM administrator account credentials used when connecting to your VM via RDP. In the **Administrator account** section, input the following parameters:
269
285
270
286
:::image type="content" source="./media/create-arc-virtual-machines/create-virtual-machines-administrator-account-domain-join.png" alt-text="Screenshot of guest management enabled inVM extensions on Basics tab." lightbox="./media/create-arc-virtual-machines/create-virtual-machines-administrator-account-domain-join.png":::
@@ -323,7 +339,6 @@ Follow these steps in Azure portal for your Azure Local.
323
339
324
340
1. Select **Create**. It should take a few minutes to provision the VM.
You can use the Azure Verified Module (AVM) that contains the Terraform template for creating Virtual Machines. This module ensures your Terraform templates meet Microsoft's rigorous standards for quality, security, and operational excellence, enabling you to seamlessly deploy and manage on Azure. With this template, you can create one or multiple Virtual Machines on your cluster.
655
+
656
+
### Steps to use the Terraform template
657
+
658
+
1. Download the Terraform template from [Azure verified module](https://registry.terraform.io/modules/Azure/avm-res-azurestackhci-virtualmachineinstance/azurerm/0.1.2).
659
+
2. Navigate to the **examples** folder in the repository, and look for the following subfolders:
660
+
-**default**: Creates one virtual machine instance.
3. Choose the appropriate folder for your deployment.
663
+
4. To initialize Terraform in your folder from step 2, run the `terraform init` command.
664
+
5. To apply the configuration that deploys virtual machines, run the `terraform apply` command.
665
+
6. After the deployment is complete, verify your virtual machines via the Azure portal. Navigate to **Resources** > **Virtual machines**.
666
+
667
+
:::image type="content" source="./media/create-arc-virtual-machines/terraform-virtual-machines.png" alt-text="Screenshot of select Virtual Machine after deployment." lightbox="./media/create-arc-virtual-machines/terraform-virtual-machines.png":::
668
+
637
669
---
638
670
639
671
## Use managed identity to authenticate Arc VMs
640
672
641
-
When the Arc VMs are created on your Azure Local via Azure CLI or Azure portal, a system-assigned managed identity is also created that lasts for the lifetime of the Arc VMs.
673
+
When the Arc VMs are created on your Azure Local via Azure CLI or Azure portal, a system-assigned managed identity is also created that lasts for the lifetime of the Arc VMs.
642
674
643
675
The Arc VMs on Azure Local are extended from Arc-enabled servers and can use system-assigned managed identity to access other Azure resources that support Microsoft Entra ID-based authentication. For example, the Arc VMs can use a system-assigned managed identity to access the Azure Key Vault.
Copy file name to clipboardExpand all lines: azure-local/manage/create-logical-networks.md
+41-5Lines changed: 41 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Create logical networks for Azure Local
3
-
description: Learn how to create logical networks on Azure Local. The Arc VM running on your system used this logical network.
3
+
description: Learn how to create logical networks on Azure Local. The Arc virtual machine (VM) running on your system used this logical network.
4
4
author: alkohli
5
5
ms.author: alkohli
6
6
ms.topic: how-to
@@ -24,7 +24,7 @@ Before you begin, make sure to complete the following prerequisites:
24
24
25
25
- Make sure to review and [complete the prerequisites](./azure-arc-vm-management-prerequisites.md). If using a client to connect to your Azure Local, see [Connect to the system remotely](./azure-arc-vm-management-prerequisites.md#connect-to-the-system-remotely).
26
26
27
-
- Make sure you have an external VM switch that can be accessed by all the machines in your Azure Local. By default, an external switch is created during the deployment of your Azure Local that you can use to associate with the logical network you will create.
27
+
- Make sure that all the machines in your Azure Local can access and external virtual machine (VM) switch. By default, an external switch is created during the deployment of your Azure Local that you can use to associate with the logical network you create.
28
28
29
29
Run the following command to get the name of the external VM switch on your system.
30
30
@@ -48,8 +48,27 @@ Before you begin, make sure to complete the following prerequisites:
48
48
49
49
The prerequisites for the Azure portal are the same as those for the Azure CLI. See [Azure CLI](./create-logical-networks.md?tabs=azurecli#tabpanel_1_azurecli).
50
50
51
+
# [Terraform template](#tab/terraformtemplate)
52
+
53
+
- Make sure Terraform is installed and up to date on your machine.
54
+
- To verify your version of Terraform, run the `terraform -v` command.
- Make sure Git is installed and up to date on your machine.
67
+
- To verify your version of Git, run the `git --version` command.
68
+
51
69
---
52
70
71
+
53
72
## Create the logical network
54
73
55
74
You can create a logical network using either the Azure Command-Line Interface (CLI) or by using the Azure portal.
@@ -72,7 +91,6 @@ In this release, you can create virtual machines using a static IP only via the
72
91
73
92
Create a static logical network when you want to create virtual machines with network interfaces on these logical networks. Follow these steps in Azure CLI to configure a static logical network:
74
93
75
-
76
94
1. Set the parameters. Here's an example:
77
95
78
96
```azurecli
@@ -334,16 +352,34 @@ These steps are the same for both static and DHCP network deployments.
334
352
335
353
:::image type="content" source="./media/create-logical-networks/deployment-in-progress.png" alt-text="Screenshot indicating that the deployment job is in progress." lightbox="./media/create-logical-networks/deployment-in-progress.png":::
336
354
337
-
1. Verify the deployment job has successfully completed and then select either **Pin to dashboard** or **Go to resource group**:
355
+
1. Verify the deployment job completed successfully and then select either **Pin to dashboard** or **Go to resource group**:
338
356
339
357
:::image type="content" source="./media/create-logical-networks/deployment-succeeded.png" alt-text="Screenshot of successful completion of the deployment job." lightbox="./media/create-logical-networks/deployment-succeeded.png":::
340
358
341
359
1. In the resource group, select **Overview** and then verify the logical network is created and listed on the **Resources** tab:
342
360
343
361
:::image type="content" source="./media/create-logical-networks/verify-network-created.png" alt-text="Screenshot of the newly created logical network." lightbox="./media/create-logical-networks/verify-network-created.png":::
344
362
345
-
---
363
+
# [Terraform template](#tab/terraformtemplate)
364
+
365
+
You can use the Azure Verified Module (AVM) that contains the Terraform template for creating Logical Networks. This module ensures your Terraform templates meet Microsoft's rigorous standards for quality, security, and operational excellence, enabling you to seamlessly deploy and manage on Azure. With this template, you can create one or multiple Logical Networks on your cluster.
366
+
367
+
### Steps to use the Terraform template
346
368
369
+
1. Download the Terraform template from [Azure verified module](https://registry.terraform.io/modules/Azure/avm-res-azurestackhci-logicalnetwork/azurerm/0.4.0).
370
+
2. Navigate to the **examples** folder in the repository, and look for the following subfolders:
371
+
- **default**: Creates one logical network with a static IP configuration.
372
+
- **static**: Creates one logical network with a static IP configuration.
373
+
- **dhcp**: Creates one logical network with a dynamic IP configuration.
0 commit comments