- Creating App Services Web Apps
- Publish web apps manuall from Visual Studio
- Basic configuration (here: enable remote debugging) of web apps
- Connecting to Azure using Visual Studio Server Explorer
- Remote debugging of web apps
-
Open Azure Portal and sign in.
-
Add Web App named
PracticalDevOps-Dev
(you might have to replace this with another name if it has already been taken) to the resource groupPracticalDevOps-Dev
. Make sure that the App Service plan is in the same Data Center Region as your storage account.
-
Discussion points:
- Introduction to Azure App Services Web Apps
- Difference IaaS vs. PaaS (control vs. cost-efficiency)
-
In the Extensions tool, add Application Insights to your web app.
-
Discussion points:
- Why manual deployment only for dev environments?
- Value of automating build-, test-, and deployment processes
- Describe different publishing methods for Web Apps (WebDeploy, FTP, Kudu/Git)
-
Connect to your Azure subscription as choose the previously created Web App as your deployment target. Make sure you deploy a Debug version of your app.
-
Watch Visual Studio deploying your Web API using WebDeploy.
-
Discussion points:
- Security-related issues regarding publishing profiles, publish settings files, etc.
-
Try to open
http://practicaldevops-dev.azurewebsites.net/api/books
. You should receive results. Refresh the page multiple times. -
Look for telemetry from your deployed application in Application Insights.
-
Open the web test created in exercise 3.
-
Run web test to see if it succeeds for deployed version.
-
Open the load test created in exercise 3.
-
Run load test to see performance for deployed version.
-
Discussion points:
- Troubleshooting options for Web Apps
-
Enable remote debugging for your web app in the Azure portal.
-
Open Visual Studio's Server Explorer and attach a debugger to your deployed web app. This operation may take a few moments.
-
Open
Controllers/BooksController.cs
and set a breakpoint (F9) to the first line of theGet
method. This operation may take a few moments. -
Open
http://practicaldevops-dev.azurewebsites.net/api/books
in a browser and note how you can debug the deployed version of your web app with your local Visual Studio.
If you have time left, you could additionally cover topics like:
- Show Kudu scm service at
https://<sitename>.scm.azurewebsites.net/
- Show FTP access to Web Apps (e.g. for downloading logs)
- Show Visual Studio Online for interactive access to Web App content
- Demonstrate deployment slots and VIP swaps
- Move on to exercise 6 as it is a bit longer. You could use the additional time to dive deeper into build-, test-, and release-automation.