Skip to content

Commit 238cd48

Browse files
authored
Merge pull request #1424 from MicrosoftDocs/master
merge to live
2 parents f19704f + ab59471 commit 238cd48

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+420
-456
lines changed

connected-environment/TOC.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@
22

33
# [Get Started](get-started.md)
44
##[.NET Core (VS Code & CLI)](get-started-netcore-01.md)
5-
###[1. Install Tools](get-started-netcore-01.md)
6-
###[2. Create a Dev Environment in Azure](get-started-netcore-02.md)
7-
###[3. Create an ASP.NET Web App](get-started-netcore-03.md)
8-
###[4. Debug a Container in Kubernetes](get-started-netcore-04.md)
5+
###[1. Install tools](get-started-netcore-01.md)
6+
###[2. Create a dev environment in Azure](get-started-netcore-02.md)
7+
###[3. Create an ASP.NET web app](get-started-netcore-03.md)
8+
###[4. Debug a container in Kubernetes](get-started-netcore-04.md)
99
###[5. Call another container](get-started-netcore-05.md)
10-
###[6. Team Development](get-started-netcore-06.md)
10+
###[6. Work in a shared dev environment](get-started-netcore-06.md)
1111
###[7. Summary](get-started-netcore-07.md)
1212

1313
##[.NET Core (Visual Studio 2017)](get-started-netcore-visualstudio-01.md)
14-
###[1. Install Tools](get-started-netcore-visualstudio-01.md)
15-
###[2. Create an ASP.NET Web App](get-started-netcore-visualstudio-02.md)
16-
###[3. Create a Dev Environment in Azure](get-started-netcore-visualstudio-03.md)
17-
###[4. Debug a Container in Kubernetes](get-started-netcore-visualstudio-04.md)
14+
###[1. Install tools](get-started-netcore-visualstudio-01.md)
15+
###[2. Create an ASP.NET web app](get-started-netcore-visualstudio-02.md)
16+
###[3. Create a dev environment in Azure](get-started-netcore-visualstudio-03.md)
17+
###[4. Debug a container in Kubernetes](get-started-netcore-visualstudio-04.md)
1818
###[5. Call another container](get-started-netcore-visualstudio-05.md)
19-
###[6. Team Development](get-started-netcore-visualstudio-06.md)
19+
###[6. Work in a shared dev environment](get-started-netcore-visualstudio-06.md)
2020
###[7. Summary](get-started-netcore-visualstudio-07.md)
2121

2222
##[Node.js (VS Code & CLI)](get-started-nodejs-01.md)
23-
###[1. Install Tools](get-started-nodejs-01.md)
24-
###[2. Create a Dev Environment in Azure](get-started-nodejs-02.md)
23+
###[1. Install tools](get-started-nodejs-01.md)
24+
###[2. Create a dev environment in Azure](get-started-nodejs-02.md)
2525
###[3. Create a Node.js Web App](get-started-nodejs-03.md)
26-
###[4. Debug a Container in Kubernetes](get-started-nodejs-04.md)
26+
###[4. Debug a container in Kubernetes](get-started-nodejs-04.md)
2727
###[5. Call another container](get-started-nodejs-05.md)
28-
###[6. Team Development](get-started-nodejs-06.md)
28+
###[6. Work in a shared dev environment](get-started-nodejs-06.md)
2929
###[7. Summary](get-started-nodejs-07.md)
3030

31+
# [Troubleshoot](troubleshooting.md)
3132

connected-environment/common/build-and-run-in-k8s-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## Build and Run Code in Kubernetes
2-
Let's run our code! In the terminal window, run this command from the **root code folder**, i.e. webfrontend:
1+
## Build and run code in Kubernetes
2+
Let's run our code! In the terminal window, run this command from the **root code folder**, webfrontend:
33

44
```cmd
55
vsce up
@@ -13,11 +13,11 @@ Keep an eye on the command's output, you'll notice several things as it progress
1313
1. Assuming the above stages complete successfully, you should begin to see `stdout` (and `stderr`) output as the container starts up.
1414

1515
> [!Note]
16-
> These steps will take longer the first time the `up` command is run - they are considerably shortened on subsequent runs.
16+
> These steps will take longer the first time the `up` command is run, but subsequent runs should be quicker.
1717
18-
## Test the App
18+
## Test the web app
1919
Scan the console output for information about the public URL that was created by the `up` command. It will be in the form:
2020

2121
`Running at public URL: https://<servicename>-<environmentname>.vsce.io`
2222

23-
Open this URL in a browser window - or better yet, from a mobile device - and you should see the web app load! As the container executes, `stdout` and `stderr` output is streamed to the terminal window.
23+
Open this URL in a browser window - or better yet, from a mobile device - and you should see the web app load. As the container executes, `stdout` and `stderr` output is streamed to the terminal window.

connected-environment/common/create-env-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Create a Kubernetes Development Environment in Azure
1+
## Create a Kubernetes development environment in Azure
22
With Connected Environment, you can create Kubernetes-based environments that are fully managed by Azure and optimized for development. The command creates an environment named `mydevenvironment` in `eastus`. You'll need to enter a unique environment name.
33
```cmd
44
vsce env create --name mydevenvironment --location eastus
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
## Ensure the Development Environment Was Successfully Created
2-
In the previous section, we kicked off the `vsce env create` command to create a development environment in Azure. It takes several minutes to complete, so check back that it was successfully created. You can always check the environments you have access to, and their status, with this command: `vsce env list`.
1+
## Ensure the development environment was successfully created
2+
In the previous section, we kicked off the `vsce env create` command to create a development environment in Azure. It can take about 7 minutes to complete, so check back that it was successfully created. You can always check the environments you have access to, and their status, with this command: `vsce env list`.

connected-environment/common/init-debug-assets-vscode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Initialize Debug Assets with the VS Code Extension
1+
## Initialize debug assets with the VS Code extension
22
We first need to configure our code project so VS Code will communicate with our development environment in Azure. The VS Code extension for Connected Environment provides a helper command to set up debug configuration.
33

44
Open the **Command Palette** (using the **View | Command Palette** menu), and use auto-complete to type and select this command: `Connected Environment: Create configuration files for connected development`.

connected-environment/common/install-cli-and-vscode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Install the Connected Environment CLI
2-
There is minimal local machine setup required with Connected Environment. Most of your development environment's configuration will be in the cloud, making it easily shareable with others.
2+
Connected Environment requires minimal local machine setup. Most of your development environment's configuration gets stored in the cloud, and is shareable with other users.
33

44
### Install on Mac
55
Download and install the Connected Environment CLI:
@@ -15,7 +15,7 @@ curl -L https://aka.ms/get-vsce-mac | bash
1515
### Install on Linux
1616
Coming soon...
1717

18-
## Kubernetes Debugging with VS Code
18+
## Get Kubernetes debugging for VS Code
1919
While you can use the Connected Environment CLI as a standalone tool, rich features like Kubernetes debugging are available for .NET Core and Node.js developers using VS Code.
2020

2121
1. If you don't have it, install [VS Code](https://code.visualstudio.com/Download).
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
In this guide, you will learn how to:
22

3-
> [!div class="checklist"]
4-
> * Create a Kubernetes-based environment in Azure that is optimized for development.
5-
> * Iteratively develop code in containers using VS Code and the command-line.
6-
> * Productively develop and test your code in a team environment.
3+
1. Create a Kubernetes-based environment in Azure that is optimized for development.
4+
1. Iteratively develop code in containers using VS Code and the command line.
5+
1. Productively develop and test your code in a team environment.
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
So far we've run our application's code as if we were the only developer working on the app. In this section, we'll learn how Connected Environment streamlines team development by making it easy to:
1+
So far we've run our application's code as if we were the only developer working on the app. In this section, we'll learn how Connected Environment streamlines team development:
22
* Enable a team of developers to work in the same development environment.
33
* Supports each developer iterating on their code in isolation and without fear of breaking others.
4-
* Easily test code end-to-end, prior to code commit, without having to create mocks or simulate dependencies.
4+
* Test code end-to-end, prior to code commit, without having to create mocks or simulate dependencies.
55

6-
## Challenges with Developing Microservices
6+
## Challenges with developing microservices
77
Our sample application isn't very complex at the moment. But in real-world development, challenges soon emerge as more services are added and the development team grows.
88

9-
Picture yourself working on a service that interacts with tens of other services.
9+
Picture yourself working on a service that interacts with dozens of other services.
1010

11-
1. It can become unrealistic to run everything locally for development. Your dev machine may simply not have enough resources to run the entire app; or maybe your app has endpoints that need to be publicly reachable (e.g. your app responds to a webhook from a SaaS app).
12-
1. You can try to only run the services that you depend on, but this means you'd need know the full closure of dependencies (i.e. dependencies of dependencies). Or, it's simply a matter of not easily knowing how to build and run your dependencies because you didn't work on them.
13-
1. Some developers resort to simulating, or mocking up, most of their service dependencies. This can help sometimes, but managing those mocks can soon take on its own development effort. Plus, this leads to your dev environment looking very different to production, and subtle bugs can creep in.
11+
1. It can become unrealistic to run everything locally for development. Your dev machine may not have enough resources to run the entire app. Or, perhaps your app has endpoints that need to be publicly reachable (for example, your app responds to a webhook from a SaaS app).
12+
1. You can try to only run the services that you depend on, but this means you'd need know the full closure of dependencies (for example, dependencies of dependencies). Or, it's a matter of not easily knowing how to build and run your dependencies because you didn't work on them.
13+
1. Some developers resort to simulating, or mocking up, many of their service dependencies. This can help sometimes, but managing those mocks can soon take on its own development effort. Plus, this leads to your dev environment looking very different to production, and subtle bugs can creep in.
1414
1. It follows that doing any type of end-to-end testing becomes difficult. Integration testing can only realistically happen post-commit, which means we see problems later in the development cycle.
1515

1616
![](../media/microservices-challenges.png)
1717

1818

19-
## Work in a Shared Development Environment
20-
With Connected Environment, you can easily set up a *shared* development environment in Azure. Each developer can focus on just their part of the application, and can iteratively develop *pre-commit code* in an environment that already contains all the other services and cloud resources that their scenarios depend on. Dependencies are always up to date, and developers are working in a way that mirrors production.
19+
## Work in a shared development environment
20+
With Connected Environment, you can set up a *shared* development environment in Azure. Each developer can focus on just their part of the application, and can iteratively develop *pre-commit code* in an environment that already contains all the other services and cloud resources that their scenarios depend on. Dependencies are always up to date, and developers are working in a way that mirrors production.
2121

22-
## Work in Your Own Space
23-
As you develop code for your service, and before you're ready to check it in, code often won't be in a good state - you're still iteratively shaping it, testing it, and experimenting with solutions. Connected Environment provides the concept of a **space**, which allows you to work in isolation, and without the fear of breaking your team members.
22+
## Work in your own space
23+
As you develop code for your service, and before you're ready to check it in, code often won't be in a good state. You're still iteratively shaping it, testing it, and experimenting with solutions. Connected Environment provides the concept of a **space**, which allows you to work in isolation, and without the fear of breaking your team members.
2424

2525
> [!Note]
2626
> Before you proceed, close all VS Code windows for both services, and then run `vsce up -d` in each of the service's root folders. (This is a Preview limitation.)
2727
28-
Now let's take a closer look at where the services are currently running. Run the `vsce list` command, and you'll see output similar to the following:
28+
Let's take a closer look at where the services are currently running. Run the `vsce list` command, and you'll see output similar to the following:
2929

3030
```
3131
Name Space Chart Ports Updated Access Points
@@ -34,14 +34,14 @@ mywebapi mainline mywebapi-0.1.0 80/TCP 2m ago <not attached>
3434
webfrontend mainline webfrontend-0.1.0 80/TCP 1m ago https://webfrontend-contosodev.vsce.io
3535
```
3636

37-
The Space column shows that both services are running in a space named `mainline`. Anyone who opens the public URL and navigates to the web app will invoke the code path we previously wrote that runs through both services. Now suppose we want to continue developing `mywebapi` - how can we do this and not interrupt other developers who are using the dev environment? To do that, we'll set up our own space.
37+
The Space column shows that both services are running in a space named `mainline`. Anyone who opens the public URL and navigates to the web app will invoke the code path we previously wrote that runs through both services. Now suppose we want to continue developing `mywebapi`. How can we do this and not interrupt other developers who are using the dev environment? To do that, we'll set up our own space.
3838

39-
## Create a Space
39+
## Create a space
4040
To run our own version of `mywebapi` in a space other than `mainline`, we create our own space:
4141
```
4242
vsce space create --name scott
4343
```
4444

45-
In the example above, I've used my name for the new space so that it is easily identifiable to my peers that that's the space I'm working in, but you can call it anything you'd like and be flexible about what it means, like 'sprint4' or 'demo'.
45+
In the example above, I've used my name for the new space so that it is identifiable to my peers that that's the space I'm working in, but you can call it anything you'd like and be flexible about what it means, like 'sprint4' or 'demo'.
4646

4747
Run the `vsce space list` command to see a list of all the spaces in the dev environment. An asterisk (*) appears next to the currently selected space. In our case, the space named 'scott' was automatically selected when it was created. You can select another space at any time with the `vsce space select` command.

connected-environment/common/team-development-2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ webfrontend mainline webfrontend-0.1.0 80/TCP 5h ago https://scott-webf
1010

1111
![](../media/space-routing.png)
1212

13-
This built-in capability of Connected Environment enables you easily test code end-to-end in a shared evironment without requiring each developer to re-create the full stack of services in their space. Note that this routing requires propagation headers to be forwarded in your app code, as illustrated in the previous step of this guide.
13+
This built-in capability of Connected Environment enables you test code end-to-end in a shared evironment without requiring each developer to re-create the full stack of services in their space. Note that this routing requires propagation headers to be forwarded in your app code, as illustrated in the previous step of this guide.
1414

15-
## Test Code Running in the 'Scott' Space
16-
To test our new version of `mywebapi` in conjunction with `webfrontend`, open your browser to the public access point URL for webfrontend and navigate to the About page. You should see your new message displayed.
15+
## Test code in a space
16+
To test our new version of `mywebapi` in conjunction with `webfrontend`, open your browser to the public access point URL for webfrontend and go to the About page. You should see your new message displayed.
1717

18-
Now, remove the "scott-" part of the URL, and refresh the browser - you should see the old behavior (exhibited by the `mywebapi` version running in `mainline`).
18+
Now, remove the "scott-" part of the URL, and refresh the browser. You should see the old behavior (exhibited by the `mywebapi` version running in `mainline`).

connected-environment/common/vsce-init.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## Initialize Code for Docker and Kubernetes Development
2-
So far, we have a basic web app that can run locally - we'll now containerize it by creating assets that define the app's container and how it will deploy to Kubernetes. This is easy to do with Connected Environment:
1+
## Initialize code for Docker and Kubernetes development
2+
So far, we have a basic web app that can run locally. We'll now containerize it by creating assets that define the app's container and how it will deploy to Kubernetes. This is easy to do with Connected Environment:
33

44
1. Launch VS Code and open the `webfrontend` folder. (You can ignore any default prompts to add debug assets or restore the project.)
55
1. Open the Integrated Terminal in VS Code (using the **View | Integrated Terminal** menu).
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Well done!
1+
## Well done
22
You've completed the getting started guide! You learned how to:
33

44
> [!div class="checklist"]
55
> * Create a Kubernetes-based environment in Azure that is optimized for development.
6-
> * Iteratively develop code in containers using VS Code and the command-line.
6+
> * Iteratively develop code in containers using VS Code and the command line.
77
> * Independently develop two separate services, and used Kubernetes' DNS service discovery to make a call to another service.
88
> * Productively develop and test your code in a team environment.

connected-environment/get-started-netcore-01.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Getting Started on Connected Environment with .NET Core
1+
# Get Started on Connected Environment with .NET Core
22

33
[!INCLUDE[](common/learning-objectives.md)]
44

@@ -9,4 +9,4 @@
99
We're now ready to create a Kubernetes-based development environment in Azure.
1010

1111
> [!div class="nextstepaction"]
12-
> [Create a Dev Environment in Azure](get-started-netcore-02.md)
12+
> [Create a dev environment in Azure](get-started-netcore-02.md)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Getting Started on Connected Environment with .NET Core
1+
# Get Started on Connected Environment with .NET Core
22

3-
Previous step: [Install Tools](get-started-netcore-01.md)
3+
Previous step: [Install tools](get-started-netcore-01.md)
44

55
[!INCLUDE[](common/sign-into-azure.md)]
66

77
[!INCLUDE[](common/create-env-cli.md)]
88

9-
While we're waiting for the environment to be create, let's start developing code!
9+
While we're waiting for the environment to be create, let's start developing code.
1010

1111
> [!div class="nextstepaction"]
1212
> [Create a .NET Core container in Kubernetes](get-started-netcore-03.md)

0 commit comments

Comments
 (0)