@@ -9,14 +9,13 @@ ms.topic: how-to
9
9
ms.date : 12/06/2019
10
10
ms.author : duau
11
11
ms.custom : devx-track-azurepowershell
12
-
13
12
---
13
+
14
14
# Connect a virtual network to an ExpressRoute circuit using PowerShell (classic)
15
15
> [ !div class="op_single_selector"]
16
16
> * [ Azure portal] ( expressroute-howto-linkvnet-portal-resource-manager.md )
17
17
> * [ PowerShell] ( expressroute-howto-linkvnet-arm.md )
18
18
> * [ Azure CLI] ( expressroute-howto-linkvnet-cli.md )
19
- > * [ Video - Azure portal] ( https://azure.microsoft.com/documentation/videos/azure-expressroute-how-to-create-a-connection-between-your-vpn-gateway-and-expressroute-circuit )
20
19
> * [ PowerShell (classic)] ( expressroute-howto-linkvnet-classic.md )
21
20
>
22
21
@@ -51,14 +50,12 @@ You can link a virtual network to an ExpressRoute circuit by using the following
51
50
New-AzureDedicatedCircuitLink -ServiceKey "*****************************" -VNetName "MyVNet"
52
51
Provisioned
53
52
```
54
-
55
53
## Remove a virtual network link to a circuit
56
54
You can remove a virtual network link to an ExpressRoute circuit by using the following cmdlet. Make sure that the current subscription is selected for the given virtual network.
57
55
58
56
``` powershell
59
57
Remove-AzureDedicatedCircuitLink -ServiceKey "*****************************" -VNetName "MyVNet"
60
58
```
61
-
62
59
63
60
## Connect a virtual network in a different subscription to a circuit
64
61
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.
@@ -98,13 +95,13 @@ New-AzureDedicatedCircuitLinkAuthorization -ServiceKey "************************
98
95
99
96
Return:
100
97
101
- ``` powershell
102
- Description : Dev-Test Links
103
- Limit : 2
104
- LinkAuthorizationId : **********************************
105
-
106
- Used : 0
107
- ```
98
+ ``` powershell
99
+ Description : Dev-Test Links
100
+ Limit : 2
101
+ LinkAuthorizationId : **********************************
102
+
103
+ Used : 0
104
+ ```
108
105
109
106
** Reviewing authorizations**
110
107
@@ -115,25 +112,25 @@ Get-AzureDedicatedCircuitLinkAuthorization -ServiceKey: "***********************
115
112
```
116
113
Return:
117
114
118
- ``` powershell
119
- Description : EngineeringTeam
120
- Limit : 3
121
- LinkAuthorizationId : ####################################
122
-
123
- Used : 1
124
-
125
- Description : MarketingTeam
126
- Limit : 1
127
- LinkAuthorizationId : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
128
-
129
- Used : 0
130
-
131
- Description : Dev-Test Links
132
- Limit : 2
133
- LinkAuthorizationId : &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
134
-
135
- Used : 2
136
- ```
115
+ ``` powershell
116
+ Description : EngineeringTeam
117
+ Limit : 3
118
+ LinkAuthorizationId : ####################################
119
+
120
+ Used : 1
121
+
122
+ Description : MarketingTeam
123
+ Limit : 1
124
+ LinkAuthorizationId : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
125
+
126
+ Used : 0
127
+
128
+ Description : Dev-Test Links
129
+ Limit : 2
130
+ LinkAuthorizationId : &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
131
+
132
+ Used : 2
133
+ ```
137
134
138
135
** Updating authorizations**
139
136
@@ -145,13 +142,13 @@ Set-AzureDedicatedCircuitLinkAuthorization -ServiceKey "************************
145
142
146
143
Return:
147
144
148
- ``` powershell
149
- Description : Dev-Test Links
150
- Limit : 5
151
- LinkAuthorizationId : &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
152
-
153
- Used : 0
154
- ```
145
+ ``` powershell
146
+ Description : Dev-Test Links
147
+ Limit : 5
148
+ LinkAuthorizationId : &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
149
+
150
+ Used : 0
151
+ ```
155
152
156
153
** Deleting authorizations**
157
154
@@ -173,17 +170,17 @@ Get-AzureAuthorizedDedicatedCircuit
173
170
174
171
Return:
175
172
176
- ``` powershell
177
- Bandwidth : 200
178
- CircuitName : ContosoIT
179
- Location : Washington DC
180
- MaximumAllowedLinks : 2
181
- ServiceKey : &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
182
- ServiceProviderName : equinix
183
- ServiceProviderProvisioningState : Provisioned
184
- Status : Enabled
185
- UsedLinks : 0
186
- ```
173
+ ``` powershell
174
+ Bandwidth : 200
175
+ CircuitName : ContosoIT
176
+ Location : Washington DC
177
+ MaximumAllowedLinks : 2
178
+ ServiceKey : &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
179
+ ServiceProviderName : equinix
180
+ ServiceProviderProvisioningState : Provisioned
181
+ Status : Enabled
182
+ UsedLinks : 0
183
+ ```
187
184
188
185
** Redeeming link authorizations**
189
186
@@ -195,11 +192,11 @@ New-AzureDedicatedCircuitLink –servicekey "&&&&&&&&&&&&&&&&&&&&&&&&&&" –Vnet
195
192
196
193
Return:
197
194
198
- ``` powershell
199
- State VnetName
200
- ----- --------
201
- Provisioned SalesVNET1
202
- ```
195
+ ``` powershell
196
+ State VnetName
197
+ ----- --------
198
+ Provisioned SalesVNET1
199
+ ```
203
200
204
201
Run this command in the newly linked subscription for the virtual network:
205
202
@@ -210,3 +207,4 @@ New-AzureDedicatedCircuitLink -ServiceKey "*****************************" -VNetN
210
207
## Next steps
211
208
212
209
For more information about ExpressRoute, see the [ ExpressRoute FAQ] ( expressroute-faqs.md ) .
210
+
0 commit comments