Skip to content

Commit 5d00064

Browse files
Merge pull request #209359 from raghavendermareddy/patch-75
Update ps instructions
2 parents 0b1c09c + 8eced3d commit 5d00064

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

articles/expressroute/expressroute-howto-erdirect.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,28 @@ ExpressRoute Direct and ExpressRoute circuit(s) in different subscriptions or Az
335335

336336
1. To enroll in the preview, send an e-mail to [email protected] with the ExpressRoute Direct and target ExpressRoute circuit Azure subscription IDs. You'll receive an e-mail once the feature get enabled for your subscriptions.
337337

338+
339+
1. Sign in to Azure and select the ExpressRoute Direct subscription.
340+
341+
```powershell
342+
Connect-AzAccount
343+
344+
Select-AzSubscription -Subscription "<SubscriptionID or SubscriptionName>"
345+
```
346+
347+
348+
1. . Get ExpressRoute Direct details
349+
350+
```powershell
351+
Get-AzExpressRoutePort
352+
353+
$ERPort = Get-AzExpressRoutePort -Name $Name -ResourceGroupName $ResourceGroupName
354+
```
355+
338356
1. Create the ExpressRoute Direct authorization by running the following commands in PowerShell:
339357

340358
```powershell
341-
Add-AzExpressRoutePortAuthorization -Name $Name -ExpressRoutePort $ERPort
359+
Add-AzExpressRoutePortAuthorization -Name $AuthName -ExpressRoutePort $ERPort
342360
```
343361
344362
Sample output:
@@ -355,7 +373,7 @@ ExpressRoute Direct and ExpressRoute circuit(s) in different subscriptions or Az
355373
1. Verify the authorization was created successfully and store ExpressRoute Direct authorization into a variable:
356374
357375
```powershell
358-
$ERDirectAuthorization = Get-AzExpressRoutePortAuthorization -ExpressRoutePortObject $ERPort -Name $Name
376+
$ERDirectAuthorization = Get-AzExpressRoutePortAuthorization -ExpressRoutePortObject $ERPort -Name $AuthName
359377
$ERDirectAuthorization
360378
```
361379
@@ -373,7 +391,9 @@ ExpressRoute Direct and ExpressRoute circuit(s) in different subscriptions or Az
373391
1. Redeem the authorization to create the ExpressRoute Direct circuit in different subscription or Azure Active Directory tenant with the following command:
374392
375393
```powershell
376-
New-AzExpressRouteCircuit -Name $Name -ResourceGroupName $RGName -Location $Location -SkuTier $SkuTier -SkuFamily $SkuFamily -BandwidthInGbps $BandwidthInGbps -AuthorizationKey $$ERDirectAuthorization.AuthorizationKey
394+
Select-AzSubscription -Subscription "<SubscriptionID or SubscriptionName>"
395+
396+
New-AzExpressRouteCircuit -Name $Name -ResourceGroupName $RGName -Location $Location -SkuTier $SkuTier -SkuFamily $SkuFamily -BandwidthInGbps $BandwidthInGbps -AuthorizationKey $ERDirectAuthorization.AuthorizationKey
377397
```
378398
## Next steps
379399

0 commit comments

Comments
 (0)