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
description: Configure IPv6 endpoints in virtual network with an Azure PowerShell script and find links to command-specific documentation to help with the PowerShell sample.
5
-
services: virtual-network
6
5
author: asudbring
7
-
manager: twooley
8
6
ms.service: virtual-network
9
-
ms.topic: how-to
10
-
ms.workload: infrastructure-services
11
-
ms.date: 07/15/2019
7
+
ms.topic: sample
8
+
ms.date: 04/05/2023
12
9
ms.author: allensu
13
10
ms.custom: devx-track-azurepowershell
14
11
---
15
12
16
13
# Configure IPv6 endpoints in virtual network with Azure PowerShell script sample
17
14
18
-
This article shows you how to deploy a dual stack (IPv4 + IPv6) application in Azure that includes a dual stack virtual network with a dual stack subnet, a load balancer with dual (IPv4 + IPv6) front-end configurations, VMs with NICs that have a dual IP configuration, dual network security group rules, and dual public IPs.
19
-
20
-
You can execute the script from the Azure [Cloud Shell](https://shell.azure.com/powershell), or from a local PowerShell installation. If you use PowerShell locally, this script requires the Azure Az PowerShell module version 1.0.0 or later. To find the installed version, run `Get-Module -ListAvailable Az`. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps). If you are running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure.
This article shows you how to deploy a dual stack (IPv4 + IPv6) application in Azure that includes a dual stack virtual network with a dual stack subnet. A load balancer with dual (IPv4 + IPv6) front-end configurations, VMs with NICs that have a dual IP configuration, dual network security group rules, and dual public IPs are also deployed.
23
16
24
17
## Prerequisites
25
-
Before you deploy a dual stack application in Azure, you must configure your subscription only once for this preview feature using the following Azure PowerShell:
It takes up to 30 minutes for feature registration to complete. You can check your registration status by running the following Azure PowerShell command:
- Azure PowerShell installed locally or Azure Cloud Shell.
43
22
44
-
## Sample script
23
+
- Sign in to Azure PowerShell and ensure you've selected the subscription with which you want to use this feature. For more information, see [Sign in with Azure PowerShell](/powershell/azure/authenticate-azureps).
45
24
25
+
- Ensure your `Az.Network` module is 4.3.0 or later. To verify the installed module, use the command `Get-InstalledModule -Name Az.Network`. If the module requires an update, use the command `Update-Module -Name Az.Network` if necessary.
46
26
27
+
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-Az-ps). If you're running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure.
@@ -252,12 +232,12 @@ This script uses the following commands to create a resource group, virtual mach
252
232
|[New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork)| Creates an Azure virtual network and subnet. |
253
233
|[New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress)| Creates a public IP address with a static IP address and an associated DNS name. |
254
234
|[New-AzLoadBalancer](/powershell/module/az.network/new-azloadbalancer)| Creates an Azure load balancer. |
255
-
|[New-AzLoadBalancerProbeConfig](/powershell/module/az.network/new-azloadbalancerprobeconfig)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic is not routed to the VM. |
256
-
|[New-AzLoadBalancerRuleConfig](/powershell/module/az.network/new-azloadbalancerruleconfig)| Creates a load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it is routed to port 80 one of the VMs in the load balancer set. |
235
+
|[New-AzLoadBalancerProbeConfig](/powershell/module/az.network/new-azloadbalancerprobeconfig)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic isn't routed to the VM. |
236
+
|[New-AzLoadBalancerRuleConfig](/powershell/module/az.network/new-azloadbalancerruleconfig)| Creates a load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it's routed to port 80 one of the VMs in the load balancer set. |
257
237
|[New-AzNetworkSecurityGroup](/powershell/module/az.network/new-aznetworksecuritygroup)| Creates a network security group (NSG), which is a security boundary between the internet and the virtual machine. |
258
238
|[New-AzNetworkSecurityRuleConfig](/powershell/module/az.network/new-aznetworksecurityruleconfig)| Creates an NSG rule to allow inbound traffic. In this sample, port 22 is opened for SSH traffic. |
259
239
|[New-AzNetworkInterface](/powershell/module/az.network/new-aznetworkinterface)| Creates a virtual network card and attaches it to the virtual network, subnet, and NSG. |
260
-
|[New-AzAvailabilitySet](/powershell/module/az.compute/new-azavailabilityset)| Creates an availability set. Availability sets ensure application uptime by spreading the virtual machines across physical resources such that if failure occurs, the entire set is not affected. |
240
+
|[New-AzAvailabilitySet](/powershell/module/az.compute/new-azavailabilityset)| Creates an availability set. Availability sets ensure application uptime by spreading the virtual machines across physical resources such that if failure occurs, the entire set isn't affected. |
261
241
|[New-AzVMConfig](/powershell/module/az.compute/new-azvmconfig)| Creates a VM configuration. This configuration includes information such as VM name, operating system, and administrative credentials. The configuration is used during VM creation. |
262
242
|[New-AzVM](/powershell/module/az.compute/new-azvm)| Creates the virtual machine and connects it to the network card, virtual network, subnet, and NSG. This command also specifies the virtual machine image to be used and administrative credentials. |
263
243
|[Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup)| Deletes a resource group including all nested resources. |
@@ -266,4 +246,4 @@ This script uses the following commands to create a resource group, virtual mach
266
246
267
247
For more information on the Azure PowerShell, see [Azure PowerShell documentation](/powershell/azure/).
268
248
269
-
Additional networking PowerShell script samples can be found in the [Azure Networking Overview documentation](../powershell-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).
249
+
More networking PowerShell script samples can be found in the [Azure Networking Overview documentation](../powershell-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).
0 commit comments