Skip to content

Commit 2fea15a

Browse files
committed
docs: Replace VM include with inline SSH key VM creation and split resource group
1 parent 4785632 commit 2fea15a

1 file changed

Lines changed: 85 additions & 7 deletions

File tree

articles/virtual-network/deploy-container-networking-docker-linux.md

Lines changed: 85 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: asudbring
66
ms.author: allensu
77
ms.service: azure-virtual-network
88
ms.topic: how-to
9-
ms.date: 08/28/2023
9+
ms.date: 02/23/2026
1010
ms.custom:
1111
- template-how-to
1212
- linux-related-content
@@ -22,6 +22,24 @@ The Azure CNI plugin enables per container/pod networking for stand-alone docker
2222

2323
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn).
2424

25+
## Create a resource group
26+
27+
1. In the portal, search for and select **Resource groups**.
28+
29+
1. Select **+ Create**.
30+
31+
1. In the **Basics** tab of **Create a resource group**, enter, or select the following information:
32+
33+
| Setting | Value |
34+
| ------- | ----- |
35+
| Subscription | Select your subscription. |
36+
| Resource group | Enter **test-rg**. |
37+
| Region | Select **East US 2**. |
38+
39+
1. Select **Review + create**.
40+
41+
1. Select **Create**.
42+
2543
## Create a virtual network
2644

2745
The following procedure creates a virtual network with a resource subnet.
@@ -36,7 +54,7 @@ The following procedure creates a virtual network with a resource subnet.
3654
|---|---|
3755
| **Project details** | |
3856
| Subscription | Select your subscription. |
39-
| Resource group | Select **Create new**. </br> Enter **test-rg** for the name. </br> Select **OK**. |
57+
| Resource group | Select **test-rg**. |
4058
| **Instance details** | |
4159
| Name | Enter **vnet-1**. |
4260
| Region | Select **East US 2**. |
@@ -92,7 +110,55 @@ Azure Bastion uses your browser to connect to VMs in your virtual network over S
92110

93111
It can take a few minutes for the Bastion host to deploy. You can continue with the steps while the Bastion host is deploying.
94112

95-
[!INCLUDE [create-test-virtual-machine-linux.md](~/reusable-content/ce-skilling/azure/includes/create-test-virtual-machine-linux.md)]
113+
## Create a virtual machine
114+
115+
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
116+
117+
1. Select **+ Create** then **Azure virtual machine**.
118+
119+
1. In **Create a virtual machine** enter, or select the following information in the **Basics** tab:
120+
121+
| Setting | Value |
122+
| ------- | ----- |
123+
| **Project details** | |
124+
| Subscription | Select your subscription. |
125+
| Resource group | Select **test-rg**. |
126+
| **Instance details** | |
127+
| Virtual machine name | Enter **vm-1**. |
128+
| Region | Select **(US) East US 2**. |
129+
| Availability options | Select **No infrastructure redundancy required**. |
130+
| Security type | Select **Standard**. |
131+
| Image | Select **Ubuntu Server 24.04 LTS - x64 Gen2**. |
132+
| VM architecture | Leave the default of **x64**. |
133+
| Size | Select a size. |
134+
| **Administrator account** | |
135+
| Authentication type | Select **SSH public key**. |
136+
| Username | Enter a username. |
137+
| SSH public key source | Select **Generate new key pair**. |
138+
| Key pair name | Enter **vm-1-key**. |
139+
| **Inbound port rules** | |
140+
| Public inbound ports | Select **None**. |
141+
142+
1. Select **Next: Disks** then **Next: Networking**.
143+
144+
1. In the Networking tab, enter, or select the following information:
145+
146+
| Setting | Value |
147+
| ------- | ----- |
148+
| **Network interface** | |
149+
| Virtual network | Select **vnet-1**. |
150+
| Subnet | Select **subnet-1 (10.0.0.0/24)**. |
151+
| Public IP | Select **None**. |
152+
| Network interface (NIC) network security group | Select **Advanced**. |
153+
| Configure network security group | Select **Create new**.</br> In **Name** enter **nsg-1**.</br> Select **OK**. |
154+
155+
1. Leave the rest of the options at the defaults and select **Review + create**.
156+
157+
1. Select **Create**.
158+
159+
1. A **Generate new key pair** pop-up appears. Select **Download private key and create resource**.
160+
161+
1. The private key file downloads to your computer. Save the private key file to a known location on your computer. This key is used to connect to the virtual machine with Azure Bastion in a later step.
96162

97163
## Add IP configuration
98164

@@ -145,9 +211,15 @@ Sign-in to the virtual machine you created previously with the Azure Bastion hos
145211

146212
1. Select **vm-1**.
147213

148-
1. In the **Overview** of **vm-1**, select **Connect** then **Bastion**.
214+
1. In the **Overview** of **vm-1**, select **Connect** then **Connect via Bastion**.
149215

150-
1. Enter the username and password you created when you deployed the virtual machine in the previous steps.
216+
1. In the **Bastion** connection page, enter or select the following information:
217+
218+
| Setting | Value |
219+
| ------- | ----- |
220+
| Authentication Type | Select **SSH Private Key from Local File**. |
221+
| Username | Enter the username you created. |
222+
| Local File | Select the **vm-1-key** private key file you downloaded. |
151223

152224
1. Select **Connect**.
153225

@@ -167,9 +239,15 @@ For more information about the Azure CNI plugin, see [Microsoft Azure Container
167239

168240
1. Select **vm-1**.
169241

170-
1. In the **Overview** of **vm-1**, select **Connect** then **Bastion**.
242+
1. In the **Overview** of **vm-1**, select **Connect** then **Connect via Bastion**.
243+
244+
1. In the **Bastion** connection page, enter or select the following information:
171245

172-
1. Enter the username and password you created when you deployed the virtual machine in the previous steps.
246+
| Setting | Value |
247+
| ------- | ----- |
248+
| Authentication Type | Select **SSH Private Key from Local File**. |
249+
| Username | Enter the username you created. |
250+
| Local File | Select the **vm-1-key** private key file you downloaded. |
173251

174252
1. Select **Connect**.
175253

0 commit comments

Comments
 (0)