Skip to content

Commit 150efe1

Browse files
ps update for auth
1 parent 469e144 commit 150efe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/expressroute/expressroute-howto-erdirect.md

Lines changed: 2 additions & 2 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 $ERDirect -Name $Name
359359
$ERDirectAuthorization
360360
```
361361
@@ -373,7 +373,7 @@ ExpressRoute Direct and ExpressRoute circuit(s) in different subscriptions or Az
373373
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 -Location $Location -SkuTier $SkuTier -SkuFamily $SkuFamily -BandwidthInGbps $BandwidthInGbps -AuthorizationKey $ERDirect.AuthorizationKey
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)