Skip to content

Commit edf6638

Browse files
committed
tab changes
1 parent ff84988 commit edf6638

5 files changed

+41
-45
lines changed

articles/virtual-network/accelerated-networking-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.devlang: na
99
ms.topic: how-to
1010
ms.tgt_pltfrm: vm-windows
1111
ms.workload: infrastructure
12-
ms.date: 03/09/2023
12+
ms.date: 03/20/2023
1313
ms.author: allensu
1414
---
1515

articles/virtual-network/create-vm-accelerated-networking-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tags: azure-resource-manager
88
ms.service: virtual-network
99
ms.topic: how-to
1010
ms.workload: infrastructure-services
11-
ms.date: 03/10/2023
11+
ms.date: 03/20/2023
1212
ms.author: allensu
1313
ms.custom: fasttrack-edit, devx-track-azurecli
1414
---

articles/virtual-network/create-vm-accelerated-networking-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: how-to
99
ms.tgt_pltfrm: vm-windows
1010
ms.custom: devx-track-azurepowershell
1111
ms.workload: infrastructure
12-
ms.date: 03/16/2023
12+
ms.date: 03/20/2023
1313
ms.author: allensu
1414
---
1515

articles/virtual-network/virtual-network-manage-subnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: asudbring
77
ms.service: virtual-network
88
ms.topic: how-to
99
ms.workload: infrastructure-services
10-
ms.date: 03/18/2023
10+
ms.date: 03/20/2023
1111
ms.author: allensu
1212
---
1313

articles/virtual-network/virtual-network-network-interface.md

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: asudbring
66
ms.service: virtual-network
77
ms.custom: devx-track-azurecli, devx-track-azurepowershell
88
ms.topic: how-to
9-
ms.date: 03/13/2023
9+
ms.date: 03/20/2023
1010
ms.author: allensu
1111
---
1212

@@ -23,19 +23,16 @@ A VM you create in the Azure portal has one NIC with default settings. You can c
2323
To run the procedures in this article, you need the following prerequisites:
2424

2525
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
26-
2726
- An existing Azure virtual network. To create one, see [Quickstart: Create a virtual network by using the Azure portal](quick-create-portal.md).
28-
2927
- To run the following procedures, sign in to the [Azure portal](https://portal.azure.com) with your Azure account.
3028

31-
In the procedures, you can replace the example names with your own values.
29+
In the procedures, you can replace the example names with your own values.
3230

3331
# [Azure CLI](#tab/azure-cli)
3432

35-
To run the procedures in this article, you need the following prerequisites:
33+
To run the examples in this article, you need the following prerequisites:
3634

3735
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
38-
3936
- An existing Azure virtual network. To create one, see [Quickstart: Create a virtual network by using Azure CLI](quick-create-cli.md).
4037

4138
You can run the commands either in the [Azure Cloud Shell](/azure/cloud-shell/overview) or from Azure CLI on your computer.
@@ -46,16 +43,15 @@ You can run the commands either in the [Azure Cloud Shell](/azure/cloud-shell/ov
4643

4744
If you're prompted, install the Azure CLI extension on first use. For more information, [Use extensions with the Azure CLI](/cli/azure/azure-cli-extensions-overview).
4845

49-
Then run [az login](/cli/azure/reference-index#az-login) to connect to Azure. For more information, see [Sign in with Azure CLI](/cli/azure/authenticate-azure-cli).
46+
Run [az login](/cli/azure/reference-index#az-login) to connect to Azure. For more information, see [Sign in with Azure CLI](/cli/azure/authenticate-azure-cli).
5047

51-
In the following procedures, you can replace the example placeholder names with your own values.
48+
In the following code examples, you can replace the example placeholder names with your own values.
5249

5350
# [PowerShell](#tab/azure-powershell)
5451

5552
To run the procedures in this article, you need the following prerequisites:
5653

5754
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
58-
5955
- An existing Azure virtual network. To create one, see [Quickstart: Create a virtual network by using Azure PowerShell](quick-create-powershell.md).
6056

6157
You can run the commands either in the [Azure Cloud Shell](/azure/cloud-shell/overview) or from PowerShell on your computer.
@@ -68,13 +64,13 @@ You can run the commands either in the [Azure Cloud Shell](/azure/cloud-shell/ov
6864

6965
Then run `Connect-AzAccount` to connect to Azure. For more information, see [Sign in with Azure PowerShell](/powershell/azure/authenticate-azureps).
7066

71-
In the following procedures, you can replace the example placeholder names with your own values.
67+
In the following code examples, you can replace the example placeholder names with your own values.
7268

7369
---
7470

7571
### Permissions
7672

77-
To work with NICs, your account must be assigned to the [network contributor](../role-based-access-control/built-in-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json#network-contributor) role or to a [custom role](../role-based-access-control/custom-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json) that is assigned the appropriate actions from the following list:
73+
To work with NICs, your account must be assigned to the [network contributor](../role-based-access-control/built-in-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json#network-contributor) role or to a [custom role](../role-based-access-control/custom-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json) that's assigned the appropriate actions from the following list:
7874

7975
| Action | Name |
8076
| --------- | ------------- |
@@ -102,7 +98,7 @@ The portal doesn't provide the option to assign the NIC to application security
10298

10399
To create a NIC, use the following procedure.
104100

105-
# [Portal](#tab/network-interface-portal)
101+
# [Portal](#tab/azure-portal)
106102

107103
1. In the [Azure portal](https://portal.azure.com), search for and select *network interfaces*.
108104
1. On the **Network interfaces** page, select **Create**.
@@ -112,7 +108,7 @@ To create a NIC, use the following procedure.
112108

113109
1. Select **Review + create**, and when validation passes, select **Create**.
114110

115-
# [Azure CLI](#tab/network-interface-cli)
111+
# [Azure CLI](#tab/azure-cli)
116112

117113
The following example creates an Azure public IP address and associates it with the NIC.
118114

@@ -139,7 +135,7 @@ The following example creates an Azure public IP address and associates it with
139135
--public-ip-address myPublicIP
140136
```
141137

142-
# [PowerShell](#tab/network-interface-powershell)
138+
# [PowerShell](#tab/azure-powershell)
143139

144140
The following example creates an Azure public IP address and associates it with the NIC.
145141

@@ -220,7 +216,7 @@ You can configure the following settings for a NIC:
220216

221217
You can view most settings for a NIC after you create it. The portal doesn't display the DNS suffix or application security group membership for the NIC. You can use Azure PowerShell or Azure CLI to view the DNS suffix and application security group membership.
222218

223-
# [Portal](#tab/network-interface-portal)
219+
# [Portal](#tab/azure-portal)
224220

225221
1. In the [Azure portal](https://portal.azure.com), search for and select **Network interfaces**.
226222
1. On the **Network interfaces** page, select the NIC you want to view.
@@ -256,7 +252,7 @@ You can view most settings for a NIC after you create it. The portal doesn't dis
256252

257253
:::image type="content" source="./media/virtual-network-network-interface/effective-routes.png" alt-text="Screenshot of effective routes.":::
258254

259-
# [Azure CLI](#tab/network-interface-cli)
255+
# [Azure CLI](#tab/azure-cli)
260256

261257
Use [az network nic list](/cli/azure/network/nic#az-network-nic-list) to view all NICs in the subscription.
262258

@@ -270,7 +266,7 @@ Use [az network nic show](/cli/azure/network/nic#az-network-nic-show) to view th
270266
az network nic show --name myNIC --resource-group myResourceGroup
271267
```
272268

273-
# [PowerShell](#tab/network-interface-powershell)
269+
# [PowerShell](#tab/azure-powershell)
274270

275271
Use [Get-AzNetworkInterface](/powershell/module/az.network/get-aznetworkinterface) to view NICs in the subscription or view settings for a NIC.
276272

@@ -292,7 +288,7 @@ You can change most settings for a NIC after you create it.
292288

293289
Azure DHCP assigns the DNS server to the NIC within the VM operating system. The NIC can inherit the settings from the virtual network, or use its own unique settings that override the setting for the virtual network. For more information about name resolution settings for a NIC, see [Name resolution for virtual machines](virtual-networks-name-resolution-for-vms-and-role-instances.md).
294290

295-
# [Portal](#tab/network-interface-portal)
291+
# [Portal](#tab/azure-portal)
296292

297293
1. In the [Azure portal](https://portal.azure.com), search for and select **Network interfaces**.
298294
1. On the **Network interfaces** page, select the NIC you want to change from the list.
@@ -310,7 +306,7 @@ Azure DHCP assigns the DNS server to the NIC within the VM operating system. The
310306

311307
1. Select **Save**.
312308

313-
# [Azure CLI](#tab/network-interface-cli)
309+
# [Azure CLI](#tab/azure-cli)
314310

315311
Use [az network nic update](/cli/azure/network/nic#az-network-nic-update) to change the DNS server setting from inherited to a custom setting. Replace the DNS server IP addresses with your custom IP addresses.
316312

@@ -330,7 +326,7 @@ az network nic update \
330326
--dns-servers null
331327
```
332328

333-
# [PowerShell](#tab/network-interface-powershell)
329+
# [PowerShell](#tab/azure-powershell)
334330

335331
Use [Set-AzNetworkInterface](/powershell/module/az.network/set-aznetworkinterface) to change the DNS server setting from inherited to a custom setting. Replace the DNS server IP addresses with your custom IP addresses.
336332

@@ -379,13 +375,13 @@ IP forwarding is typically used with user-defined routes. For more information,
379375

380376
While IP forwarding is an Azure setting, the VM must also run an application that's able to forward the traffic, such as a firewall, WAN optimization, or load balancing application. A VM that runs network applications is often called a network virtual appliance (NVA). You can view a list of ready-to-deploy NVAs in the [Azure Marketplace](https://azuremarketplace.microsoft.com/marketplace/apps?search=network%20virtual%20appliances).
381377

382-
# [Portal](#tab/network-interface-portal)
378+
# [Portal](#tab/azure-portal)
383379

384380
1. On the NIC's page, select **IP configurations** in the left navigation.
385381
1. On the **IP configurations** page, under **IP forwarding settings**, select **Enabled** or **Disabled**, the default, to change the setting.
386382
1. Select **Save**.
387383

388-
# [Azure CLI](#tab/network-interface-cli)
384+
# [Azure CLI](#tab/azure-cli)
389385

390386
Use [az network nic update](/cli/azure/network/nic#az-network-nic-update) to enable or disable the IP forwarding setting.
391387

@@ -407,7 +403,7 @@ az network nic update \
407403
--ip-forwarding false
408404
```
409405

410-
# [PowerShell](#tab/network-interface-powershell)
406+
# [PowerShell](#tab/azure-powershell)
411407

412408
Use [Set-AzNetworkInterface](/powershell/module/az.network/set-aznetworkinterface) to enable or disable the IP forwarding setting.
413409

@@ -445,7 +441,7 @@ $nic | Set-AzNetworkInterface
445441

446442
You can change the subnet, but not the virtual network, that a NIC is assigned to.
447443

448-
# [Portal](#tab/network-interface-portal)
444+
# [Portal](#tab/azure-portal)
449445

450446
1. On the NIC's page, select **IP configurations** in the left navigation.
451447
1. On the **IP configurations** page, under **IP configurations**, if any private IP addresses listed have **(Static)** next to them, change the IP address assignment method to dynamic. All private IP addresses must be assigned with the dynamic assignment method to change the subnet assignment for the NIC.
@@ -461,7 +457,7 @@ You can change the subnet, but not the virtual network, that a NIC is assigned t
461457

462458
After assigning the NIC to a new subnet, you can assign a static IPv4 address from the new subnet address range if you choose. For more information about adding, changing, and removing IP addresses for a NIC, see [Configure IP addresses for an Azure network interface](./ip-services/virtual-network-network-interface-addresses.md).
463459

464-
# [Azure CLI](#tab/network-interface-cli)
460+
# [Azure CLI](#tab/azure-cli)
465461

466462
Use [az network nic ip-config update](/cli/azure/network/nic#az-network-nic-ip-config-update) to change the subnet of the NIC.
467463

@@ -474,7 +470,7 @@ az network nic ip-config update \
474470
--vnet-name myVNet
475471
```
476472

477-
# [PowerShell](#tab/network-interface-powershell)
473+
# [PowerShell](#tab/azure-powershell)
478474

479475
Use [Set-AzNetworkInterfaceIpConfig](/powershell/module/az.network/set-aznetworkinterfaceipconfig) to change the subnet of the NIC.
480476

@@ -509,7 +505,7 @@ You can add NICs only to application security groups in the same virtual network
509505

510506
You can use the portal to add or remove a NIC for an application security group only if the NIC is attached to a VM. Otherwise, use PowerShell or Azure CLI. For more information, see [Application security groups](./network-security-groups-overview.md#application-security-groups) and [How to create an application security group](manage-network-security-group.md).
511507

512-
# [Portal](#tab/network-interface-portal)
508+
# [Portal](#tab/azure-portal)
513509

514510
To add or remove a NIC for an application security group on a VM, follow this procedure:
515511

@@ -523,7 +519,7 @@ To add or remove a NIC for an application security group on a VM, follow this pr
523519
1. Select the application security groups you want to add the NIC to, or deselect the application security groups you want to remove the NIC from.
524520
1. Select **Save**.
525521

526-
# [Azure CLI](#tab/network-interface-cli)
522+
# [Azure CLI](#tab/azure-cli)
527523

528524
Use [az network nic ip-config update](/cli/azure/network/nic#az-network-nic-ip-config-update) to set the application security group.
529525

@@ -535,7 +531,7 @@ az network nic ip-config update \
535531
--application-security-groups myASG
536532
```
537533

538-
# [PowerShell](#tab/network-interface-powershell)
534+
# [PowerShell](#tab/azure-powershell)
539535

540536
Use [Set-AzNetworkInterfaceIpConfig](/powershell/module/az.network/set-aznetworkinterfaceipconfig) to set the application security group.
541537

@@ -572,13 +568,13 @@ $nic | Set-AzNetworkInterface
572568

573569
### Associate or dissociate a network security group
574570

575-
# [Portal](#tab/network-interface-portal)
571+
# [Portal](#tab/azure-portal)
576572

577573
1. On the NIC's page, select **Network security group** in the left navigation.
578574
1. On the **Network security group** page, select the network security group you want to associate, or select **None** to dissociate the NSG.
579575
1. Select **Save**.
580576

581-
# [Azure CLI](#tab/network-interface-cli)
577+
# [Azure CLI](#tab/azure-cli)
582578

583579
Use [az network nic update](/cli/azure/network/nic#az-network-nic-update) to set the network security group for the NIC.
584580

@@ -589,7 +585,7 @@ az network nic update \
589585
--network-security-group myNSG
590586
```
591587

592-
# [PowerShell](#tab/network-interface-powershell)
588+
# [PowerShell](#tab/azure-powershell)
593589

594590
Use [Set-AzNetworkInterface](/powershell/module/az.network/set-aznetworkinterface) to set the network security group for the NIC.
595591

@@ -615,19 +611,19 @@ You can delete a NIC if it's not attached to a VM. If the NIC is attached to a V
615611

616612
To detach the NIC from the VM, complete the steps in [Remove a network interface from a VM](virtual-network-network-interface-vm.md#remove-a-network-interface-from-a-vm). A VM must always have at least one NIC attached to it, so you can't delete the only NIC from a VM.
617613

618-
# [Portal](#tab/network-interface-portal)
614+
# [Portal](#tab/azure-portal)
619615

620616
To delete a NIC, on the **Overview** page for the NIC you want to delete, select **Delete** from the top menu bar, and then select **Yes**.
621617

622-
# [Azure CLI](#tab/network-interface-cli)
618+
# [Azure CLI](#tab/azure-cli)
623619

624620
Use [az network nic delete](/cli/azure/network/nic#az-network-nic-delete) to delete the NIC.
625621

626622
```azurecli-interactive
627623
az network nic delete --name myNIC --resource-group myResourceGroup
628624
```
629625

630-
# [PowerShell](#tab/network-interface-powershell)
626+
# [PowerShell](#tab/azure-powershell)
631627

632628
Use [Remove-AzNetworkInterface](/powershell/module/az.network/remove-aznetworkinterface) to delete the NIC.
633629

@@ -645,7 +641,7 @@ If you have communication problems with a VM, network security group rules or ef
645641

646642
The effective security rules for each NIC attached to a VM are a combination of the rules you created in an NSG and [default security rules](./network-security-groups-overview.md#default-security-rules). Understanding the effective security rules for a NIC might help you determine why you're unable to communicate to or from a VM. You can view the effective rules for any NIC that's attached to a running VM.
647643

648-
# [Portal](#tab/network-interface-portal)
644+
# [Portal](#tab/azure-portal)
649645

650646
1. In the [Azure portal](https://portal.azure.com), search for and select *virtual machines*.
651647
1. On the **Virtual machines** page, select the VM you want to view settings for.
@@ -654,15 +650,15 @@ The effective security rules for each NIC attached to a VM are a combination of
654650
1. On the NIC's page, select **Effective security rules** under **Help** in the left navigation.
655651
1. Review the list of effective security rules to determine if the rules are correct for your required inbound and outbound communications. For more information about security rules, see [Network security group overview](network-security-groups-overview.md).
656652

657-
# [Azure CLI](#tab/network-interface-cli)
653+
# [Azure CLI](#tab/azure-cli)
658654

659655
Use [az network nic list-effective-nsg](/cli/azure/network/nic#az-network-nic-list-effective-nsg) to view the list of effective security rules.
660656

661657
```azurecli-interactive
662658
az network nic list-effective-nsg --name myNIC --resource-group myResourceGroup
663659
```
664660

665-
# [PowerShell](#tab/network-interface-powershell)
661+
# [PowerShell](#tab/azure-powershell)
666662

667663
Use [Get-AzEffectiveNetworkSecurityGroup](/powershell/module/az.network/get-azeffectivenetworksecuritygroup) to view the list of effective security rules.
668664

@@ -682,20 +678,20 @@ The effective routes for the NIC or NICs attached to a VM are a combination of:
682678

683679
Understanding the effective routes for a NIC might help you determine why you can't communicate with a VM. You can view the effective routes for any NIC that's attached to a running VM.
684680

685-
# [Portal](#tab/network-interface-portal)
681+
# [Portal](#tab/azure-portal)
686682

687683
1. On the page for the NIC that's attached to the VM, select **Effective routes** under **Help** in the left navigation.
688684
1. Review the list of effective routes to see if the routes are correct for your required inbound and outbound communications. For more information about routing, see [Routing overview](virtual-networks-udr-overview.md).
689685

690-
# [Azure CLI](#tab/network-interface-cli)
686+
# [Azure CLI](#tab/azure-cli)
691687

692688
Use [az network nic show-effective-route-table](/cli/azure/network/nic#az-network-nic-show-effective-route-table) to view a list of the effective routes.
693689

694690
```azurecli-interactive
695691
az network nic show-effective-route-table --name myNIC --resource-group myResourceGroup
696692
```
697693

698-
# [PowerShell](#tab/network-interface-powershell)
694+
# [PowerShell](#tab/azure-powershell)
699695

700696
Use [Get-AzEffectiveRouteTable](/powershell/module/az.network/get-azeffectiveroutetable) to view a list of the effective routes.
701697

0 commit comments

Comments
 (0)