Skip to content

Commit 8de4158

Browse files
Merge pull request #235692 from halkazwini/ip-asn-ps
Internet Peering: Updates: Associate peer ASN to Azure subscription using PowerShell
2 parents 4f7f174 + 9efd087 commit 8de4158

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

articles/internet-peering/howto-subscription-association-powershell.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Associate peer ASN to Azure subscription - PowerShell
3-
description: Associate peer ASN to Azure subscription using PowerShell.
3+
description: Learn how to associate peer ASN to Azure subscription using PowerShell.
44
services: internet-peering
55
author: halkazwini
66
ms.service: internet-peering
77
ms.topic: how-to
8-
ms.date: 01/23/2023
8+
ms.date: 04/24/2023
99
ms.author: halkazwini
1010
ms.custom: template-how-to, devx-track-azurepowershell, engagement-fy23
1111
---
@@ -16,7 +16,7 @@ ms.custom: template-how-to, devx-track-azurepowershell, engagement-fy23
1616
> - [Azure portal](howto-subscription-association-portal.md)
1717
> - [PowerShell](howto-subscription-association-powershell.md)
1818
19-
Before you submit a peering request, you should first associate your ASN with Azure subscription using the steps below.
19+
Before you submit a peering request, you should first associate your ASN with Azure subscription using the steps in this article.
2020

2121
If you prefer, you can complete this guide using the [Azure portal](howto-subscription-association-portal.md).
2222

@@ -29,13 +29,13 @@ If you prefer, you can complete this guide using the [Azure portal](howto-subscr
2929
[!INCLUDE [Account](./includes/account-powershell.md)]
3030

3131
### Register for peering resource provider
32-
Register for peering resource provider in your subscription using the command below. If you don't execute this, then Azure resources required to set up peering aren't accessible.
32+
Register for peering resource provider in your subscription using [Register-AzResourceProvider](/powershell/module/az.resources/register-azresourceprovider). If you don't execute this, then Azure resources required to set up peering aren't accessible.
3333

3434
```powershell
3535
Register-AzResourceProvider -ProviderNamespace Microsoft.Peering
3636
```
3737

38-
You can check the registration status using the commands below:
38+
You can check the registration status using [Get-AzResourceProvider](/powershell/module/az.resources/get-azresourceprovider):
3939
```powershell
4040
Get-AzResourceProvider -ProviderNamespace Microsoft.Peering
4141
```
@@ -48,12 +48,8 @@ Get-AzResourceProvider -ProviderNamespace Microsoft.Peering
4848
Below is an example to update peer information.
4949

5050
```powershell
51-
New-AzPeerAsn `
52-
-Name "Contoso_1234" `
53-
-PeerName "Contoso" `
54-
-PeerAsn 1234 `
55-
56-
-Phone "+1 (555) 555-5555"
51+
$contactDetails = New-AzPeerAsnContactDetail -Role Noc -Email "[email protected]" -Phone "+1 (555) 555-5555"
52+
New-AzPeerAsn -Name "Contoso_1234" -PeerName "Contoso" -PeerAsn 1234 -ContactDetail $contactDetails
5753
```
5854

5955
> [!NOTE]
@@ -63,11 +59,11 @@ A subscription can have multiple ASNs. Update the peering information for each A
6359

6460
Peers are expected to have a complete and up-to-date profile on [PeeringDB](https://www.peeringdb.com). We use this information during registration to validate the peer's details such as NOC information, technical contact information, and their presence at the peering facilities etc.
6561

66-
Note that in place of **{subscriptionId}** in the output above, actual subscription ID will be displayed.
62+
In place of **{subscriptionId}** in the output, actual subscription ID is displayed.
6763

6864
## View status of a PeerASN
6965

70-
Check for ASN Validation state using the command below:
66+
Check for ASN Validation state using [Get-AzPeerAsn](/powershell/module/az.peering/get-azpeerasn):
7167

7268
```powershell
7369
Get-AzPeerAsn

0 commit comments

Comments
 (0)