Skip to content

Commit a8b339e

Browse files
authored
Merge pull request #192668 from MikeRayMSFT/20220323-delete-directly-connected-mi
Add tabbed conceptual for deployment type.
2 parents d90ebeb + 0df09e8 commit a8b339e

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

articles/azure-arc/data/delete-managed-instance.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ demo-mi 1/1 10.240.0.4:32023 Ready
3232

3333
## Delete Azure Arc-enabled SQL Managed Instance
3434

35-
To delete a SQL Managed Instance, run the following command:
35+
To delete a SQL Managed Instance, run the appropriate command for your deployment type. For example:
36+
37+
### [Indirectly connected mode](#tab/indirectly)
3638

3739
```azurecli
38-
az sql mi-arc delete -n <NAME_OF_INSTANCE> --k8s-namespace <namespace> --use-k8s
40+
az sql mi-arc delete -n <instance_name> --k8s-namespace <namespace> --use-k8s
3941
```
4042

4143
Output should look something like this:
@@ -45,6 +47,21 @@ Output should look something like this:
4547
Deleted demo-mi from namespace arc
4648
```
4749

50+
### [Directly connected mode](#tab/directly)
51+
52+
```azurecli
53+
az sql mi-arc delete -n <instance_name> -g <resource_group>
54+
```
55+
56+
Output should look something like this:
57+
58+
```azurecli
59+
# az sql mi-arc delete -n demo-mi -g my-rg
60+
Deleted demo-mi from namespace arc
61+
```
62+
63+
---
64+
4865
## Reclaim the Kubernetes Persistent Volume Claims (PVCs)
4966

5067
A PersistentVolumeClaim (PVC) is a request for storage by a user from Kubernetes cluster while creating and adding storage to a SQL Managed Instance. Deleting a SQL Managed Instance does not remove its associated [PVCs](https://kubernetes.io/docs/concepts/storage/persistent-volumes/). This is by design. The intention is to help the user to access the database files in case the deletion of instance was accidental. Deleting PVCs is not mandatory. However it is recommended. If you don't reclaim these PVCs, you'll eventually end up with errors as your Kubernetes cluster will run out of disk space or usage of the same SQL Managed Instance name while creating new instance might cause inconsistencies. To reclaim the PVCs, take the following steps:

0 commit comments

Comments
 (0)