Skip to content

Commit 7396fe1

Browse files
committed
Edit private endpoint
1 parent 82a4976 commit 7396fe1

File tree

1 file changed

+2
-42
lines changed

1 file changed

+2
-42
lines changed

articles/app-service/scripts/powershell-deploy-private-endpoint.md

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'PowerShell: Deploy Private Endpoint for Web App with PowerShell'
3-
description: Learn how to use PowerShell to deploy Private Endpoint for your Web App
3+
description: Learn how to use PowerShell to deploy Private Endpoint for your Web App.
44
author: ericgre
55
ms.assetid: e1cc08d5-91cf-49d7-8d0a-c0e7bd2046ac
66
ms.topic: sample
@@ -10,14 +10,7 @@ ms.service: azure-app-service
1010
ms.custom: devx-track-azurepowershell
1111
---
1212

13-
# Create an App Service app and deploy Private Endpoint using PowerShell
14-
15-
This sample script creates an app in App Service with its related resources, and then deploys a Private Endpoint.
16-
17-
[!INCLUDE [cloud-shell-try-it.md](~/reusable-content/ce-skilling/azure/includes/cloud-shell-try-it.md)]
18-
19-
20-
## Sample script
13+
# Sample script to deploy Private Endpoint using PowerShell
2114

2215
```azurepowershell-interactive
2316
# Parameters
@@ -88,36 +81,3 @@ $dnsZoneGroup = New-AzPrivateDnsZoneGroup -Name "myZoneGroup" `
8881
-PrivateEndpointName $privateEndpoint.Name `
8982
-PrivateDnsZoneConfig $dnsConfig
9083
```
91-
92-
93-
## Clean up deployment
94-
95-
After the script sample has been run, the following command can be used to remove the resource group, web app, and all related resources.
96-
97-
```powershell
98-
Remove-AzResourceGroup -Name myResourceGroup -Force
99-
```
100-
101-
102-
## Script explanation
103-
104-
This script uses the following commands. Each command in the table links to command specific documentation.
105-
106-
| Command | Notes |
107-
|---|---|
108-
| [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) | Creates a resource group in which all resources are stored. |
109-
| [New-AzAppServicePlan](/powershell/module/az.websites/new-azappserviceplan) | Creates an App Service plan. |
110-
| [New-AzWebApp](/powershell/module/az.websites/new-azwebapp) | Creates a web app. |
111-
| [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig) | Creates a virtual network subnet configuration. |
112-
| [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork) | Creates a virtual network. |
113-
| [New-AzPrivateLinkServiceConnection](/powershell/module/az.network/new-azprivatelinkserviceconnection) | Creates a private link service connection configuration. |
114-
| [New-AzPrivateEndpoint](/powershell/module/az.network/new-azprivateendpoint) | Creates a private endpoint. |
115-
| [New-AzPrivateDnsZone](/powershell/module/az.privatedns/new-azprivatednszone) | Creates a new private DNS zone. |
116-
| [New-AzPrivateDnsVirtualNetworkLink](/powershell/module/az.privatedns/new-azprivatednsvirtualnetworklink) | Creates a new private DNS virtual network link. |
117-
| [New-AzPrivateDnsZoneConfig](/powershell/module/az.network/new-azprivatednszoneconfig) | Creates DNS zone configuration of the private dns zone group. |
118-
| [New-AzPrivateDnsZoneGroup](/powershell/module/az.network/new-azprivatednszonegroup) | Creates a private DNS zone group in the specified private endpoint. |
119-
120-
## Next steps
121-
122-
- For more information on the Azure PowerShell module, see [Azure PowerShell documentation](/powershell/azure/).
123-
- Additional Azure PowerShell samples for Azure App Service Web Apps can be found in the [Azure PowerShell samples](../samples-powershell.md).

0 commit comments

Comments
 (0)