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/virtual-network/ip-services/virtual-networks-static-private-ip-arm-ps.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
-
title: Create a VM with a static private IP address - Azure PowerShell
2
+
title: 'Create a VM with a static private IP address - Azure PowerShell'
3
3
description: Learn how to create a virtual machine with a static private IP address using Azure PowerShell.
4
4
author: asudbring
5
5
ms.author: allensu
6
6
ms.service: virtual-network
7
7
ms.subservice: ip-services
8
8
ms.topic: how-to
9
-
ms.date: 10/01/2021
9
+
ms.date: 10/27/2022
10
10
ms.custom: template-how-to
11
11
---
12
12
@@ -28,6 +28,7 @@ An Azure resource group is a logical container into which Azure resources are de
28
28
Create a resource group with [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) named **myResourceGroup** in the **eastus2** location.
29
29
30
30
```azurepowershell-interactive
31
+
## Create resource group. ##
31
32
$rg =@{
32
33
Name = 'myResourceGroup'
33
34
Location = 'eastus2'
@@ -99,7 +100,9 @@ $nic | Set-AzNetworkInterface
99
100
```
100
101
101
102
> [!WARNING]
102
-
> Though you can add private IP address settings to the operating system, we recommend not doing so until after reading [Add a private IP address to an operating system](virtual-network-network-interface-addresses.md#private).
103
+
> From within the operating system of a VM, you shouldn't statically assign the *private* IP that's assigned to the Azure VM. Only do static assignment of a private IP when it's necessary, such as when [assigning many IP addresses to VMs](virtual-network-multiple-ip-addresses-portal.md).
104
+
>
105
+
>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. Learn more about [private IP address](virtual-network-network-interface-addresses.md#private) settings.
- Learn more about [public IP addresses](public-ip-addresses.md#public-ip-addresses) in Azure.
115
118
- Learn more about all [public IP address settings](virtual-network-public-ip-address.md#create-a-public-ip-address).
116
119
- Learn more about [private IP addresses](private-ip-addresses.md) and assigning a [static private IP address](virtual-network-network-interface-addresses.md#add-ip-addresses) to an Azure virtual machine.
117
-
- Learn more about creating [Linux](../../virtual-machines/windows/tutorial-manage-vm.md?toc=%2fazure%2fvirtual-network%2ftoc.json) and [Windows](../../virtual-machines/windows/tutorial-manage-vm.md?toc=%2fazure%2fvirtual-network%2ftoc.json) virtual machines.
120
+
- Learn more about creating [Linux](../../virtual-machines/windows/tutorial-manage-vm.md) and [Windows](../../virtual-machines/windows/tutorial-manage-vm.md) virtual machines.
0 commit comments