You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/dev-spaces/get-started-netcore-visualstudio.md
+43-12Lines changed: 43 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,28 +20,59 @@ In this guide, you will learn how to:
20
20
> [!Note]
21
21
> **If you get stuck** at any time, see the [Troubleshooting](troubleshooting.md) section.
22
22
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).
23
25
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:
25
38
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
+
```
28
42
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:
30
45
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.
## Create a Kubernetes cluster enabled for Azure Dev Spaces
36
51
52
+
At the command prompt, create the resource group in a [region that supports Azure Dev Spaces][supported-regions].
37
53
38
-
Select **Next: Authentication** when complete.
54
+
```azurecli
55
+
az group create --name MyResourceGroup --location <region>
56
+
```
39
57
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:
41
59
42
-

60
+
```azurecli
61
+
az aks create -g MyResourceGroup -n MyAKS --location <region> --generate-ssh-keys
62
+
```
43
63
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.
45
76
46
77
## Get the Visual Studio tools
47
78
Install the latest version of [Visual Studio 2019](https://www.visualstudio.com/vs/) on Windows with the Azure Development workload.
Copy file name to clipboardExpand all lines: articles/dev-spaces/how-dev-spaces-works-cluster-setup.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Azure Dev Spaces provides you with multiple ways to rapidly iterate and debug Ku
13
13
14
14
## Prepare your AKS cluster
15
15
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`.
17
17
18
18
For an example of setting up an AKS cluster for Dev Spaces, see the [team development quickstart][quickstart-team].
Copy file name to clipboardExpand all lines: articles/dev-spaces/how-to/dev-spaces-business-continuity.md
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,6 @@ Enabling Dev Spaces on AKS clusters in different regions allows you to resume us
21
21
22
22
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)
23
23
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
-

29
-
30
-
Repeat this process for each cluster.
31
-
32
24
### Enable Dev Spaces via the Azure CLI
33
25
34
26
You can also enable Dev Spaces at the command line:
Copy file name to clipboardExpand all lines: articles/dev-spaces/how-to/install-dev-spaces.md
-19Lines changed: 0 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,24 +55,6 @@ Deleting Azure Dev Spaces Controller 'MyAKS' in resource group 'MyResourceGroup'
55
55
56
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
57
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
-

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
-
76
58
## Install the client-side tools
77
59
78
60
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
89
71
> [Team development in Azure Dev Spaces][team-development-qs]
Copy file name to clipboardExpand all lines: articles/dev-spaces/how-vs-code-works-with-dev-spaces.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The Dockerfile, Helm chart, and `azds.yaml` files are the same assets generated
30
30
31
31
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.
32
32
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.
34
34
35
35
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.
0 commit comments