Skip to content

Commit 95d5096

Browse files
authored
Merge pull request #105324 from lalexedwards/patch-4
Adding warnings for the deletion commands
2 parents a34fa55 + 14e4cf9 commit 95d5096

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

articles/devtest-labs/samples-cli.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: Azure CLI Samples
3-
description: Learn about Azure CLI scripts. With these samples, you can create a virtual machine and then start, stop, and delete it in Azure Lab Services.
3+
description: Learn about Azure CLI scripts. With these samples, you can create a virtual machine and then start, stop, and delete it in Azure DevTest Labs.
44
ms.topic: sample
55
ms.author: rosemalcolm
66
author: RoseHJM
77
ms.date: 02/02/2022
88
---
99

10-
# Azure CLI Samples for Azure Lab Services
10+
# Azure CLI Samples for Azure DevTest Labs
1111

12-
This article includes sample bash scripts built for Azure CLI for Azure Lab Services.
12+
This article includes sample bash scripts built for Azure CLI for Azure DevTest Labs.
1313

1414
| Script | Description |
1515
|---|---|
@@ -59,6 +59,9 @@ This script uses the following commands:
5959

6060
This Azure CLI script stops and deletes a virtual machine in a lab.
6161

62+
> [!CAUTION]
63+
> Deleting VMs and labs is permanent, and cannot be undone.
64+
6265
:::code language="powershell" source="../../cli_scripts/devtest-lab/stop-delete-virtual-machine-in-lab/stop-delete-virtual-machine-in-lab.sh":::
6366

6467
This script uses the following commands:
@@ -72,6 +75,9 @@ This script uses the following commands:
7275

7376
Run the following command to remove the resource group, VM, and all related resources.
7477

78+
> [!CAUTION]
79+
> Deleting the resource group for the lab is permanent, and cannot be undone. This will remove ALL resources under the group and can not be restored.
80+
7581
```azurecli
7682
az group delete --name $resourceGroupName
7783
```

0 commit comments

Comments
 (0)