- Setting up VSTS Release Management
-
In order to automate deployment, create a Deployment Condition.
-
Trigger deployment automatically whenever a release has been created.
-
Now you can test the entire pipeline. Change someting in your code (e.g. appending a
!
to the title) and check your code in. The build should be triggered automatically. The release should be created after the successful build. The release should be immediately published to Azure App Services.
-
Right-click on solution and add new Test Settings named Cloud.
-
Change load test from Test Iterations to Run Duration as VSTS does not support test iteration setting.
-
Select the test location you want to use (ideally the location where you deployed you web app to).
-
Watch load test running in the cloud. Analyze load test results in Visual Studio and in Visual Studio Online (web report). Test test will probably fail.
-
Discussion points:
- Discuss the consequences of this result (our app has a scalability problem)
- Use Application Insights (see also exercise 4) to detect the source of the problem (requests to Blob Storage start to fail after a certain period of time).
-
In the web test's request properties, set think time to five seconds.
If you have time left, you could additionally cover topics like:
- Setup an additional build agent in a VM