Skip to content

Commit 7c25fea

Browse files
Merge pull request #208926 from raghavendermareddy/patch-73
Update PS for circuit and port in diff sub
2 parents b9bfa3a + 7e7790a commit 7c25fea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/expressroute/expressroute-howto-erdirect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ ExpressRoute Direct and ExpressRoute circuit(s) in different subscriptions or Az
355355
1. Verify the authorization was created successfully and store ExpressRoute Direct authorization into a variable:
356356
357357
```powershell
358-
$ERDirectAuthorization = Get-AzExpressRoutePortAuthorization -ExpressRoutePortObject $ERDirect
358+
$ERDirectAuthorization = Get-AzExpressRoutePortAuthorization -ExpressRoutePortObject $ERPort -Name $Name
359359
$ERDirectAuthorization
360360
```
361361
@@ -370,10 +370,10 @@ ExpressRoute Direct and ExpressRoute circuit(s) in different subscriptions or Az
370370
CircuitResourceUri :on
371371
```
372372
373-
1. Redeem the authorization to create the ExpressRoute Direct circuit with the following command:
373+
1. Redeem the authorization to create the ExpressRoute Direct circuit in different subscription or Azure Active Directory tenant with the following command:
374374
375375
```powershell
376-
New-AzExpressRouteCircuit -Name $Name -ResourceGroupName $RGName -ExpressRoutePort $ERDirect -Location $Location -SkuTier $SkuTier -SkuFamily $SkuFamily -BandwidthInGbps $BandwidthInGbps -Authorization $ERDirect.Authorization
376+
New-AzExpressRouteCircuit -Name $Name -ResourceGroupName $RGName -Location $Location -SkuTier $SkuTier -SkuFamily $SkuFamily -BandwidthInGbps $BandwidthInGbps -AuthorizationKey $$ERDirectAuthorization.AuthorizationKey
377377
```
378378
## Next steps
379379

0 commit comments

Comments
 (0)