Skip to content

Commit f44a434

Browse files
committed
initial commit - Tabs consolidation
1 parent cd67eaf commit f44a434

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

articles/virtual-network/ip-services/virtual-networks-static-private-ip-arm-pportal.md

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: 'Create a VM with a static private IP address - Azure portal'
3-
description: Learn how to create a virtual machine with a static private IP address using the Azure portal.
4-
ms.date: 08/24/2023
2+
title: 'Create a VM with a static private IP address'
3+
description: Learn to create a virtual machine with a static private IP address using the Azure portal, Azure PowerShell, or Azure CLI.
4+
ms.date: 11/19/2024
55
ms.author: mbender
66
author: mbender-ms
77
ms.service: azure-virtual-network
@@ -10,14 +10,34 @@ ms.topic: how-to
1010
ms.custom: template-how-to, engagement-fy23
1111
---
1212

13-
# Create a virtual machine with a static private IP address using the Azure portal
13+
# Create a virtual machine with a static private IP address
1414

1515
When you create a virtual machine (VM), it's automatically assigned a private IP address from a range that you specify. This IP address is based on the subnet in which the VM is deployed, and the VM keeps this address until the VM is deleted. Azure dynamically assigns the next available private IP address from the subnet you create a VM in. If you want to assign a specific IP address in this subnet for your VM, use a static IP address.
1616

1717
## Prerequisites
1818

19+
# [Azure portal](#tab/azureportal)
20+
1921
- An Azure account with an active subscription. You can [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
2022

23+
# [Azure PowerShell](#tab/azurepowershell)
24+
25+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
26+
- Azure PowerShell installed locally or Azure Cloud Shell
27+
28+
If you choose to install and use PowerShell locally, this article requires the Azure PowerShell module version 5.4.1 or later. Run `Get-Module -ListAvailable Az` to find the installed version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-azure-powershell). If you're running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure.
29+
30+
# [Azure CLI](#tab/azurecli)
31+
32+
[!INCLUDE [azure-cli-prepare-your-environment.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment.md)]
33+
34+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
35+
- This tutorial requires version 2.0.28 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
36+
37+
---
38+
39+
# [Azure portal](#tab/azureportal)
40+
2141
## Create a VM
2242

2343
Use the following steps to create a VM, and its virtual network and subnet:
@@ -60,7 +80,13 @@ Use the following steps to create a VM, and its virtual network and subnet:
6080

6181
[!INCLUDE [ephemeral-ip-note.md](~/reusable-content/ce-skilling/azure/includes/ephemeral-ip-note.md)]
6282

83+
# [Azure PowerShell](#tab/azurepowershell)
84+
# [Azure CLI](#tab/azurecli)
85+
86+
---
87+
6388
## Change private IP address to static
89+
# [Azure portal](#tab/azureportal)
6490

6591
In this procedure, you change the private IP address from **dynamic** to **static** for the VM you created previously:
6692

@@ -92,7 +118,13 @@ In this procedure, you change the private IP address from **dynamic** to **stati
92118
>
93119
>If you manually set the private IP address within the operating system, make sure it matches the private IP address assigned to the Azure [network interface](virtual-network-network-interface-addresses.md#change-ip-address-settings). Otherwise, you can lose connectivity to the VM. For more information, see [private IP address settings](virtual-network-network-interface-addresses.md#private).
94120
121+
# [Azure PowerShell](#tab/azurepowershell)
122+
# [Azure CLI](#tab/azurecli)
123+
124+
---
125+
95126
## Clean up resources
127+
# [Azure portal](#tab/azureportal)
96128

97129
When you're finished, delete the resource group and all of the resources it contains:
98130

@@ -101,7 +133,10 @@ When you're finished, delete the resource group and all of the resources it cont
101133
1. From the **myResourceGroup** screen, select **Delete resource group**.
102134

103135
1. Enter *myResourceGroup* for **Enter resource group name to confirm deletion**, and then select **Delete**.
136+
# [Azure PowerShell](#tab/azurepowershell)
137+
# [Azure CLI](#tab/azurecli)
104138

139+
---
105140
## Next steps
106141

107142
- Learn more about [static public IP addresses](public-ip-addresses.md#ip-address-assignment) in Azure.

0 commit comments

Comments
 (0)