Skip to content

Commit cbb343f

Browse files
authored
Merge pull request #106615 from zr-msft/ds-add-remove-callout
[Dev Spaces] Added remove steps
2 parents 9a0823f + b1c8b44 commit cbb343f

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

articles/dev-spaces/how-to/install-dev-spaces.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords: "Docker, Kubernetes, Azure, AKS, Azure Kubernetes Service, containers,
1111

1212
This article shows you several ways to enable Azure Dev Spaces on an AKS cluster as well as install the client-side tools.
1313

14-
## Enable Azure Dev Spaces using the CLI
14+
## Enable or remove Azure Dev Spaces using the CLI
1515

1616
Before you can enable Dev Spaces using the CLI, you need:
1717
* An Azure subscription. If you don't have an Azure subscription, you can create a [free account][az-portal-create-account].
@@ -44,7 +44,18 @@ Managed Kubernetes cluster 'myAKSCluster' in resource group 'myResourceGroup' is
4444

4545
The `use-dev-spaces` command also installs the Azure Dev Spaces CLI.
4646

47-
## Enable Azure Dev Spaces using the Azure portal
47+
To remove Azure Dev Spaces from your AKS cluster, use the `azds remove` command. For example:
48+
49+
```azurecli
50+
$ azds remove -g MyResourceGroup -n MyAKS
51+
Azure Dev Spaces Controller 'MyAKS' in resource group 'MyResourceGroup' that targets resource 'MyAKS' in resource group 'MyResourceGroup' will be deleted. This will remove Azure Dev Spaces instrumentation from the target resource for new workloads. Continue? (y/N): y
52+
53+
Deleting Azure Dev Spaces Controller 'MyAKS' in resource group 'MyResourceGroup' that targets resource 'MyAks' in resource group 'MyResourceGroup' (takes a few minutes)...
54+
```
55+
56+
The above command removes Azure Dev Spaces from the *MyAKS* cluster in *MyResourceGroup*. Any namespaces you created with Azure Dev Spaces will remain along with their workloads, but new workloads in those namespaces will not be instrumented with Azure Dev Spaces. In addition, if you restart any existing pods instrumented with Azure Dev Spaces, you may see errors. Those pods must be redeployed without Azure Dev Spaces tooling. To fully remove Azure Dev Spaces from your cluster, delete all pods in all namespaces where Azure Dev Spaces was enabled.
57+
58+
## Enable or remove Azure Dev Spaces using the Azure portal
4859

4960
Before you can enable Dev Spaces using the Azure portal, you need:
5061
* An Azure subscription. If you don't have an Azure subscription, you can create a [free account][az-portal-create-account].
@@ -60,6 +71,8 @@ To enable Azure Dev Spaces using the Azure portal:
6071

6172
Enabling Azure Dev Spaces using the Azure portal **does not** install any client-side tools for Azure Dev Spaces.
6273

74+
To remove Azure Dev Spaces from your AKS cluster, change *Enable Dev Spaces* to *No* and click *Save*. Any namespaces you created with Azure Dev Spaces will remain along with their workloads, but new workloads in those namespaces will not be instrumented with Azure Dev Spaces. In addition, if you restart any existing pods instrumented with Azure Dev Spaces, you may see errors. Those pods must be redeployed without Azure Dev Spaces tooling. To fully remove Azure Dev Spaces from your cluster, delete all pods in all namespaces where Azure Dev Spaces was enabled.
75+
6376
## Install the client-side tools
6477

6578
You can use the Azure Dev Spaces client-side tools to interact with dev spaces on an AKS cluster from your local machine. There are several ways to install the client-side tools:

0 commit comments

Comments
 (0)