Skip to content

Commit c84443f

Browse files
committed
[Dev Spaces] remove portal create
1 parent 909e04c commit c84443f

12 files changed

+73
-51
lines changed

articles/dev-spaces/get-started-netcore-visualstudio.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,59 @@ In this guide, you will learn how to:
2020
> [!Note]
2121
> **If you get stuck** at any time, see the [Troubleshooting](troubleshooting.md) section.
2222
23+
## Install the Azure CLI
24+
Azure Dev Spaces requires minimal local machine setup. Most of your dev space's configuration gets stored in the cloud, and is shareable with other users. Start by downloading and running the [Azure CLI](/cli/azure/install-azure-cli?view=azure-cli-latest).
2325

24-
## Create a Kubernetes cluster enabled for Azure Dev Spaces
26+
### Sign in to Azure CLI
27+
Sign in to Azure. Type the following command in a terminal window:
28+
29+
```azurecli
30+
az login
31+
```
32+
33+
> [!Note]
34+
> If you don't have an Azure subscription, you can create a [free account](https://azure.microsoft.com/free).
35+
36+
#### If you have multiple Azure subscriptions...
37+
You can view your subscriptions by running:
2538

26-
1. Sign in to the Azure portal at https://portal.azure.com.
27-
1. Choose **Create a resource** > search for **Kubernetes** > select **Kubernetes Service** > **Create**.
39+
```azurecli
40+
az account list --output table
41+
```
2842

29-
Complete the following steps under each heading of the *Create Kubernetes cluster* form and verify your selected [region supports Azure Dev Spaces][supported-regions].
43+
Locate the subscription which has *True* for *IsDefault*.
44+
If this isn't the subscription you want to use, you can change the default subscription:
3045

31-
- **PROJECT DETAILS**: select an Azure subscription and a new or existing Azure resource group.
32-
- **CLUSTER DETAILS**: enter a name, region, version, and DNS name prefix for the AKS cluster.
33-
- **SCALE**: select a VM size for the AKS agent nodes and the number of nodes. If you’re getting started with Azure Dev Spaces, one node is enough to explore all the features. The node count can be easily adjusted any time after the cluster is deployed. Note that the VM size can’t be changed once an AKS cluster has been created. However, once an AKS cluster has been deployed, you can easily create a new AKS cluster with larger VMs and use Dev Spaces to redeploy to that larger cluster if you need to scale up.
46+
```azurecli
47+
az account set --subscription <subscription ID>
48+
```
3449

35-
![Kubernetes configuration settings](media/common/Kubernetes-Create-Cluster-2.PNG)
50+
## Create a Kubernetes cluster enabled for Azure Dev Spaces
3651

52+
At the command prompt, create the resource group in a [region that supports Azure Dev Spaces][supported-regions].
3753

38-
Select **Next: Authentication** when complete.
54+
```azurecli
55+
az group create --name MyResourceGroup --location <region>
56+
```
3957

40-
1. Choose your desired setting for Role-based Access Control (RBAC). Azure Dev Spaces supports clusters with RBAC enabled, or disabled.
58+
Create a Kubernetes cluster with the following command:
4159

42-
![RBAC setting](media/common/k8s-RBAC.PNG)
60+
```azurecli
61+
az aks create -g MyResourceGroup -n MyAKS --location <region> --generate-ssh-keys
62+
```
4363

44-
1. Select **Review + create** and then **Create** when complete.
64+
It takes a few minutes to create the cluster.
65+
66+
### Configure your AKS cluster to use Azure Dev Spaces
67+
68+
Enter the following Azure CLI command, using the resource group that contains your AKS cluster, and your AKS cluster name. The command configures your cluster with support for Azure Dev Spaces.
69+
70+
```azurecli
71+
az aks use-dev-spaces -g MyResourceGroup -n MyAKS
72+
```
73+
74+
> [!IMPORTANT]
75+
> The Azure Dev Spaces configuration process will remove the `azds` namespace in the cluster, if it exists.
4576
4677
## Get the Visual Studio tools
4778
Install the latest version of [Visual Studio 2019](https://www.visualstudio.com/vs/) on Windows with the Azure Development workload.

articles/dev-spaces/how-dev-spaces-works-cluster-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Azure Dev Spaces provides you with multiple ways to rapidly iterate and debug Ku
1313

1414
## Prepare your AKS cluster
1515

16-
To prepare your AKS cluster for Dev Spaces, verify your AKS cluster is in a region [supported by Azure Dev Spaces][supported-regions] and you are running Kubernetes 1.10.3 or later. To enable Azure Dev Spaces on your cluster from the Azure portal, navigate to your cluster, click *Dev Spaces*, change *Use Dev Spaces* to *Yes*, and click *Save*. You can also enable Azure Dev Spaces from the Azure CLI by running `az aks use-dev-spaces`.
16+
To prepare your AKS cluster for Dev Spaces, verify your AKS cluster is in a region [supported by Azure Dev Spaces][supported-regions] and you are running Kubernetes 1.10.3 or later. You can enable Azure Dev Spaces from the Azure CLI by running `az aks use-dev-spaces`.
1717

1818
For an example of setting up an AKS cluster for Dev Spaces, see the [team development quickstart][quickstart-team].
1919

articles/dev-spaces/how-to/dev-spaces-business-continuity.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ Enabling Dev Spaces on AKS clusters in different regions allows you to resume us
2121

2222
For general information about multi-region deployments of AKS, see [Plan for multi-region deployment](https://docs.microsoft.com/azure/aks/operator-best-practices-multi-region#plan-for-multiregion-deployment)
2323

24-
### Enable Dev Spaces via the Azure portal
25-
26-
Select the **Dev Spaces** menu item under the settings of each cluster in the Azure portal. Then choose the option to enable Dev Spaces and save.
27-
28-
![Enabling Dev Spaces via Azure portal](../media/common/enable-dev-spaces.jpg)
29-
30-
Repeat this process for each cluster.
31-
3224
### Enable Dev Spaces via the Azure CLI
3325

3426
You can also enable Dev Spaces at the command line:

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,6 @@ Deleting Azure Dev Spaces Controller 'MyAKS' in resource group 'MyResourceGroup'
5555

5656
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.
5757

58-
## Enable or remove Azure Dev Spaces using the Azure portal
59-
60-
Before you can enable Dev Spaces using the Azure portal, you need:
61-
* An Azure subscription. If you don't have an Azure subscription, you can create a [free account][az-portal-create-account].
62-
* [An AKS cluster][create-aks-portal] in a [supported region][supported-regions].
63-
64-
To enable Azure Dev Spaces using the Azure portal:
65-
1. Sign in to the [Azure portal][az-portal].
66-
1. Navigate to your AKS cluster.
67-
1. Select the *Dev Spaces* menu item.
68-
1. Change *Enable Dev Spaces* to *Yes* and click *Save*.
69-
70-
![Enable Dev Spaces in the Azure portal](../media/how-to-setup-dev-spaces/enable-dev-spaces-portal.png)
71-
72-
Enabling Azure Dev Spaces using the Azure portal **does not** install any client-side tools for Azure Dev Spaces.
73-
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-
7658
## Install the client-side tools
7759

7860
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:
@@ -89,7 +71,6 @@ Learn how Azure Dev Spaces helps you develop more complex applications across mu
8971
> [Team development in Azure Dev Spaces][team-development-qs]
9072
9173
[create-aks-cli]: ../../aks/kubernetes-walkthrough.md#create-a-resource-group
92-
[create-aks-portal]: ../../aks/kubernetes-walkthrough-portal.md#create-an-aks-cluster
9374
[install-cli]: /cli/azure/install-azure-cli?view=azure-cli-latest
9475
[supported-regions]: https://azure.microsoft.com/global-infrastructure/services/?products=kubernetes-service
9576
[team-development-qs]: ../quickstart-team-development.md

articles/dev-spaces/how-vs-code-works-with-dev-spaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The Dockerfile, Helm chart, and `azds.yaml` files are the same assets generated
3030

3131
After you generate the assets for your project, you can run your Java, Node.js, and .NET Core services in an existing dev space from Visual Studio Code. In the *Debug* page of Visual Studio Code, you can invoke the launch configuration from the `.vscode` directory to run your project.
3232

33-
You must create your AKS cluster and enable Azure Dev Spaces in your cluster outside of Visual Studio Code. For example, you can use the Azure CLI or the Azure portal to do this setup. You can reuse existing Dockerfiles, Helm charts, and `azds.yaml` files created outside of Visual Studio Code, such as the assets generated by running `azds prep`. If you do reuse assets generated outside of Visual Studio Code, you still need to have a `.vscode` directory. This `.vscode` directory can be regenerated by Visual Studio code and the Azure Dev Spaces extension and will not overwrite your existing assets.
33+
You must create your AKS cluster and enable Azure Dev Spaces in your cluster outside of Visual Studio Code. You can reuse existing Dockerfiles, Helm charts, and `azds.yaml` files created outside of Visual Studio Code, such as the assets generated by running `azds prep`. If you do reuse assets generated outside of Visual Studio Code, you still need to have a `.vscode` directory. This `.vscode` directory can be regenerated by Visual Studio code and the Azure Dev Spaces extension and will not overwrite your existing assets.
3434

3535
For .NET Core projects, you must have the [C# extension][csharp-extension] installed to run your .NET service from Visual Studio Code. Also for Java projects using Maven, you must have the [Java Debugger for Azure Dev Spaces extension][java-extension] installed as well as [Maven installed and configured][maven] to run your Java service from Visual Studio Code.
3636

Binary file not shown.
Binary file not shown.
-72.1 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)