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
## Connect a virtual network in the same subscription to a circuit
52
-
You can connect a virtual network gateway to an ExpressRoute circuit by using the following cmdlet. Make sure that the virtual network gateway is created and is ready for linking before you run the cmdlet:
51
+
## Connect a virtual network
52
+
53
+
# [**Maximum Resiliency**](#tab/maximum)
54
+
55
+
**Maximum resiliency** (Recommended): provides the highest level of resiliency to your virtual network. It provides two redundant connections from the virtual network gateway to two different ExpressRoute circuits in different ExpressRoute locations.
56
+
57
+
### Clone the script
58
+
59
+
To create maximum resiliency connections, clone the setup script from GitHub.
# Change to the directory where the script is located.
65
+
CD azure-docs-powershell-samples/expressroute/
66
+
```
67
+
68
+
Run the **New-AzHighAvailabilityVirtualNetworkGatewayConnections.ps1** script to create high availability connections. The following example shows how to create two new connections to two ExpressRoute circuits.
If you want to create a new connection and use an existing one, you can use the following example. This example creates a new connection to a second ExpressRoute circuit and uses an existing connection to the first ExpressRoute circuit.
**Standard resiliency**: provides a single redundant connection from the virtual network gateway to a single ExpressRoute circuit.
93
+
You can connect a virtual network gateway to an ExpressRoute circuit using the **New-AzVirtualNetworkGatewayConnection** cmdlet. Make sure that the virtual network gateway is created and is ready for linking before you run the cmdlet.
## Connect a virtual network in a different subscription to a circuit
61
104
You can share an ExpressRoute circuit across multiple subscriptions. The following figure shows a simple schematic of how sharing works for ExpressRoute circuits across multiple subscriptions.
0 commit comments