Skip to content

Commit 51fd79d

Browse files
committed
Add delete with powershell doc
1 parent 3799d77 commit 51fd79d

File tree

5 files changed

+55
-11
lines changed

5 files changed

+55
-11
lines changed

articles/azure-app-configuration/powershell-samples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The following table includes links to PowerShell scripts built using the [Az.App
1616
|**Create store**||
1717
| [Create a configuration store with the specified parameters](scripts/powershell-create-service.md) | Creates an Azure App Configuration store with some specified parameters. |
1818
|**Delete store**||
19-
| [Delete a configuration store](/powershell/module/az.appconfiguration/Remove-AzAppConfigurationStore) | Deletes an Azure App Configuration store. |
19+
| [Delete a configuration store](scripts/powershell-delete-service.md) | Deletes an Azure App Configuration store. |
2020
| [Purge a deleted configuration store](/powershell/module/az.appconfiguration/Clear-AzAppConfigurationDeletedStore) | Purges a deleted Azure App Configuration store, permanently removing all data. |
2121
|**Get and list stores**||
2222
| [Get a deleted configuration store](/powershell/module/az.appconfiguration/Get-AzAppConfigurationDeletedStore) | Gets a deleted Azure App Configuration store. |

articles/azure-app-configuration/scripts/cli-create-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.author: malev
1212
ms.custom: devx-track-azurecli
1313
---
1414

15-
# Create an Azure App Configuration store with PowerShell
15+
# Create an Azure App Configuration store with the Azure CLI
1616

1717
This sample script creates a new instance of Azure App Configuration using the Azure CLI in a new resource group.
1818

articles/azure-app-configuration/scripts/cli-delete-service.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ms.author: malev
1313
ms.custom: devx-track-azurecli
1414
---
1515

16-
# Delete an Azure App Configuration store
16+
# Delete an Azure App Configuration store with the Azure CLI
1717

18-
This sample script deletes an instance of Azure App Configuration.
18+
This sample script deletes an instance of Azure App Configuration using the Azure CLI.
1919

2020
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2121

articles/azure-app-configuration/scripts/powershell-create-service.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ ms.author: malev
1111
ms.custom: devx-track-azurepowershell
1212
---
1313

14-
# Create an Azure App Configuration store
14+
# Create an Azure App Configuration store with Powershell
1515

16-
This sample script creates a new instance of Azure App Configuration in a new resource group.
16+
This sample script creates a new instance of Azure App Configuration in a new resource group using Powershell.
1717

1818
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
1919

@@ -25,13 +25,13 @@ To execute the sample scripts, you need a functional setup of [Azure PowerShell]
2525
## Sample script
2626

2727
```powershell
28-
# Create resource group
28+
# Create a resource group
2929
New-AzResourceGroup -Name <resource-group-name> -Location <location>
3030
31-
# Create App Configuration store
31+
# Create an App Configuration store
3232
New-AzAppConfigurationStore -Name <store-name> -ResourceGroupName <resource-group-name> -Location <location> -Sku <sku>
3333
34-
# Get the AppConfig connection string
34+
# Get the App Configuration connection string
3535
Get-AzAppConfigurationStoreKey -Name <store-name> -ResourceGroupName <resource-group-name>
3636
```
3737

@@ -51,10 +51,10 @@ This script uses the following commands to create a new resource group and an Ap
5151
|---|---|
5252
| [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) | Creates a resource group in which all resources are stored. |
5353
| [New-AzAppConfigurationStore](/powershell/module/az.appconfiguration/new-azappconfigurationstore) | Creates an App Configuration store resource. |
54-
| [Get-AzAppConfigurationStoreKey](/powershell/module/az.appconfiguration/get-azappconfigurationstorekey) | List access keys for an App Configuration store. |
54+
| [Get-AzAppConfigurationStoreKey](/powershell/module/az.appconfiguration/get-azappconfigurationstorekey) | Lists access keys for an App Configuration store. |
5555

5656
## Next steps
5757

58-
For more information about Azure PowerShell, see [Azure PowerShell documentation](/powershell/azure/).
58+
For more information about Azure PowerShell, check out the [Azure PowerShell documentation](/powershell/azure/).
5959

6060
More App Configuration script samples for PowerShell can be found in the [Azure App Configuration PowerShell samples](../powershell-samples.md).
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: PowerShell script sample - Delete an Azure App Configuration store
3+
titleSuffix: Azure App Configuration
4+
description: Delete an Azure App Configuration store using a sample PowerShell script. See reference article links to commands used in the script.
5+
services: azure-app-configuration
6+
author: maud-lv
7+
ms.service: azure-app-configuration
8+
ms.topic: sample
9+
ms.date: 01/24/2023
10+
ms.author: malev
11+
ms.custom: devx-track-azurepowershell
12+
---
13+
14+
# Delete an Azure App Configuration store with PowerShell
15+
16+
This sample script deletes an instance of Azure App Configuration using Powershell.
17+
18+
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
19+
20+
To execute this sample script, you need a functional setup of [Azure PowerShell](/powershell/azure/).
21+
22+
1. Open a PowerShell window with admin rights and run `Install-Module -Name Az` to install Azure PowerShell
23+
1. Run: `Install-Module -Name Az.AppConfiguration` to install the App Configuration module.
24+
25+
## Sample script
26+
27+
```powershell
28+
# Delete an App Configuration store
29+
Remove-AzAppConfigurationStore -Name <store-name> -ResourceGroupName <resource-group-name>
30+
```
31+
32+
## Script explanation
33+
34+
This script uses the following command to delete an App Configuration store. Each command in the table links to command specific documentation.
35+
36+
| Command | Notes |
37+
|---|---|
38+
| [Remove-AzAppConfigurationStore](/powershell/module/az.appconfiguration/Remove-AzAppConfigurationStore) | Deletes an App Configuration store. |
39+
40+
## Next steps
41+
42+
For more information about Azure PowerShell, check out the [Azure PowerShell documentation](/powershell/azure/).
43+
44+
More App Configuration script samples for PowerShell can be found in the [Azure App Configuration PowerShell samples](../powershell-samples.md).

0 commit comments

Comments
 (0)