Skip to content

Commit 7fd2962

Browse files
Merge pull request #265783 from halkazwini/ps-ps
Peering Service: Freshness: Create or change a Peering Service connection using PowerShell
2 parents d468581 + 83df624 commit 7fd2962

File tree

1 file changed

+13
-21
lines changed

1 file changed

+13
-21
lines changed

articles/peering-service/powershell.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
11
---
22
title: Create or change a Peering Service connection - Azure PowerShell
33
description: Learn how to create or change a Peering Service connection using PowerShell.
4-
services: peering-service
54
author: halkazwini
5+
ms.author: halkazwini
66
ms.service: peering-service
77
ms.topic: how-to
8-
ms.date: 01/19/2023
9-
ms.author: halkazwini
10-
ms.custom: template-how-to, devx-track-azurepowershell, engagement-fy23
8+
ms.date: 02/08/2024
9+
ms.custom: devx-track-azurepowershell
10+
11+
#CustomerIntent: As an administrator, I want to learn how to create and manage a Peering Service connection using Azure PowerShell so I can enhance the connectivity to Microsoft services over the public internet.
1112
---
1213

1314
# Create or change a Peering Service connection using PowerShell
1415

15-
> [!div class="op_single_selector"]
16-
> * [Portal](azure-portal.md)
17-
> * [PowerShell](powershell.md)
18-
> * [Azure CLI](cli.md)
19-
2016
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.
2117

22-
In this article, you'll learn how to create and change a Peering Service connection using PowerShell.
18+
In this article, you learn how to create and change a Peering Service connection using Azure PowerShell. To learn how to manage a Peering Service connection using the Azure portal or Azure CLI, see [Create, change, or delete a Peering Service connection using the Azure portal](azure-portal.md) or [Create, change, or delete a Peering Service connection using the Azure CLI](cli.md).
2319

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.
25-
26-
[!INCLUDE [cloud-shell-try-it.md](../../includes/cloud-shell-try-it.md)]
27-
28-
If you decide to install and use PowerShell locally instead, this article requires you to use Azure PowerShell module version 1.0.0 or later. To find the installed version, run `Get-Module -ListAvailable Az`. For installation and upgrade information, see [Install Azure PowerShell module](/powershell/azure/install-azure-powershell).
20+
## Prerequisites
2921

30-
Finally, if you're running PowerShell locally, you'll also need to run `Connect-AzAccount`. That command creates a connection with Azure.
22+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
3123

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.
24+
- Azure Cloud Shell or Azure PowerShell installed locally.
3325

34-
## Prerequisites
26+
The steps in this article run the Azure PowerShell cmdlets interactively in [Azure Cloud Shell](/azure/cloud-shell/overview). To run the commands in the Cloud Shell, select **Open Cloudshell** at the upper-right corner of a code block. Select **Copy** to copy the code and then paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal.
3527

36-
- An Azure subscription.
28+
You can also [install Azure PowerShell locally](/powershell/azure/install-azure-powershell) to run the cmdlets. This article requires the Azure PowerShell module version 1.0.0 or later. To find the installed version, run `Get-Module -ListAvailable Az`. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-Az-ps). If you run PowerShell locally, sign in to Azure using the [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) cmdlet.
3729

38-
- A connectivity provider. For more information, see [Peering Service partners](./location-partners.md).
30+
- A connectivity provider. For more information, see [Peering Service partners](location-partners.md).
3931

4032
## Register your subscription with the resource provider and feature flag
4133

@@ -104,7 +96,7 @@ To remove the Peering Service prefix, use [Remove-AzPeeringServicePrefix](/power
10496
Remove-AzPeeringServicePrefix -ResourceGroupName myResourceGroup -Name myPeeringService -PrefixName myPrefix
10597
```
10698

107-
## Next steps
99+
## Related content
108100

109101
- To learn more about Peering Service connections, see [Peering Service connection](connection.md).
110102
- To learn more about Peering Service connection telemetry, see [Access Peering Service connection telemetry](connection-telemetry.md).

0 commit comments

Comments
 (0)