You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Tutorial: Register a Peering Service connection using Azure PowerShell
13
+
# Create or change a Peering Service connection using PowerShell
15
14
16
-
In this tutorial, you'll learn how to register Peering Service using Azure PowerShell.
15
+
> [!div class="op_single_selector"]
16
+
> *[Portal](azure-portal.md)
17
+
> *[PowerShell](powershell.md)
18
+
> *[Azure CLI](cli.md)
17
19
18
-
Azure Peering Service is a networking service that enhances customer connectivity to Microsoft cloud services such as Microsoft 365, Dynamics 365, software as a service (SaaS) services, Azure, or any Microsoft services accessible via the public internet. In this article, you'll learn how to register a Peering Service connection by using Azure PowerShell.
20
+
Azure Peering Service is a networking service that enhances connectivity to Microsoft cloud services such as Microsoft 365, Dynamics 365, software as a service (SaaS) services, Azure, or any Microsoft services accessible via the public internet.
19
21
20
-
If you don't have an Azure subscription, create an [account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) now.
22
+
In this article, you'll learn how to create and change a Peering Service connection using PowerShell.
23
+
24
+
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
@@ -27,109 +31,82 @@ Finally, if you're running PowerShell locally, you'll also need to run `Connect-
27
31
28
32
Use the Azure PowerShell module to register and manage Peering Service. You can register or manage Peering Service from the PowerShell command line or in scripts.
29
33
34
+
## Prerequisites
30
35
31
-
## Prerequisites
32
-
You must have the following:
33
-
34
-
### Azure account
35
-
36
-
You must have a valid and active Microsoft Azure account. This account is required to set up the Peering Service connection. Peering Service is a resource within Azure subscriptions.
36
+
- An Azure subscription.
37
37
38
-
### Connectivity provider
38
+
- A connectivity provider. For more information, see [Peering Service partners](./location-partners.md).
39
39
40
-
You can work with an internet service provider or internet exchange partner to obtain Peering Service to connect your network with the Microsoft network.
40
+
## Register your subscription with the resource provider and feature flag
41
41
42
-
Make sure that the connectivity providers are partnered with Microsoft.
43
-
44
-
### Register a subscription with the resource provider and feature flag
45
-
46
-
Before you proceed to the steps of registering Peering Service, register your subscription with the resource provider and feature flag by using Azure PowerShell. The Azure PowerShell commands are specified here:
42
+
Before you proceed to the steps of creating Peering Service, register your subscription with the resource provider and feature flag using [Register-AzResourceProvider](/powershell/module/az.resources/register-azresourceprovider) and [Register-AzProviderFeature](/powershell/module/az.resources/get-azproviderfeature):
Run the following commands in Azure PowerShell to acquire the location and service provider to which the Peering Service should be enabled.
51
+
## List Peering Service locations and service providers
58
52
59
-
GetPeering Service locations:
53
+
Use [Get-AzPeeringServiceCountry](/powershell/module/az.peering/get-azpeeringservicecountry) to list the countries where Peering Service is available and [Get-AzPeeringServiceLocation](/powershell/module/az.peering/get-azpeeringservicelocation) to list the available metro locations in each country where you can get the Peering Service:
60
54
61
55
```azurepowershell-interactive
62
-
# Gets a list of available countries
56
+
# List the countries available for Peering Service.
63
57
Get-AzPeeringServiceCountry
64
-
# Gets a list of metro locations serviced by country
Use [Get-AzPeeringServiceProvider](/powershell/module/az.peering/get-azpeeringserviceprovider) to get a list of available [Peering Service providers](location-partners.md):
69
63
70
64
```azurepowershell-interactive
71
65
Get-AzPeeringServiceProvider
72
66
```
73
67
74
-
### Register the Peering Service connection
68
+
##Create a Peering Service connection
75
69
76
-
Register the Peering Service connection by using the following set of commands via Azure PowerShell. This example registers the Peering Service named myPeeringService.
70
+
Create a Peering Service connection using [New-AzPeeringService](/powershell/module/az.peering/new-azpeeringservice):
New-AzPeeringService -ResourceGroupName myResourceGroup -Name myPeeringService -PeeringLocation Virginia -PeeringServiceProvider Contoso
84
74
```
85
75
86
-
### Register the Peering Service prefix
76
+
##Add the Peering Service prefix
87
77
88
-
Register the prefix that's provided by the connectivity provider by executing the following commands via Azure PowerShell. This example registers the prefix named myPrefix.
78
+
Use [New-AzPeeringServicePrefix](/powershell/module/az.peering/new-azpeeringserviceprefix) to add the prefix provided to you by the connectivity provider:
0 commit comments