1. Home
  2. Training Library
  3. Microsoft Azure
  4. Courses
  5. Getting Started with Azure App Service

App Service Deployment from Azure Repo

The course is part of these learning paths

Microsoft Azure for Solution Architects
27
10
15
AZ-104 Exam Preparation: Microsoft Azure Administrator
21
7
17
1
more_horizSee 2 more
Start course
Overview
Difficulty
Beginner
Duration
1h 22m
Students
4738
Ratings
3.6/5
starstarstarstar-halfstar-border
Description

You’ve got an idea for a great web app, or maybe you’ve already started building it. The next question is how are you going to get it out there on the Internet?

In this course, you will learn how you can quickly and easily set up a website and publish your app to the world with Azure App Service. Of course, web apps are a lot more complex and varied than just HTML pages and we will see how App Service supports a range of programming languages, frameworks, and even operating systems. We will explore features that greatly simplify application deployment and management, as well as those that will increase your app’s functionality like authentication and accessing on-premise data. App Service as with other Azure products has a raft of tools for monitoring and logging so you can make sure your app is performing optimally.

For any feedback, queries, or suggestions relating to this course, please contact us at support@cloudacademy.com.

Learning Objectives

  • Deploy apps using the Azure App Service
  • Create a web app using the Azure Portal
  • Create a web app using Visual Studio
  • Understand the configuration and diagnostic capabilities available from Azure App Service
  • Understand the advanced features of the service such as container deployment and deployment slots

Intended Audience

This is a beginner level course suited developers or anyone wanting to know how to deploy web apps to the Azure cloud.

Prerequisites

To get the most from this course, you should have a basic understanding of the software development lifecycle, while knowing how to code would be a plus.

Course source code

.NET 5.0 demo code

https://github.com/cloudacademy/get-started-app-service-net5.git

 

Docker Hub

https://hub.docker.com/r/hallamw/lorrymobileapi

 

.NET Core 3.1 demo code

https://github.com/cloudacademy/azure-get-started-app-service.git

 

 

 

Transcript

The impression I get from the Azure Repos integration from the App Service end is that Microsoft wants you to set up continuous integration and deployment from Azure DevOps. Connecting an Azure repo from App Service is easy and fuss-free in limited and specific circumstances.

I have here a repo that I cloned from https://github.com/cloudacademy/azure-get-started-app-service.git and upgraded the LorryLogAPI project to .NET 5.

Two critical factors for this deployment to work are that the repo must be private, and it must include a solution file. Targeting just project files doesn't work in my experience. On the plus side, you don't have to set up a service connection within the DevOps project – which, when you think about it, would defeat the purpose of integrating from the Azure App Service end.

In the portal, I've created a Windows OS app service. In Deployment Center, I'll connect to the Azure Repo, which is linked via my Microsoft login, by selecting the hallam0349 organization, the LorryLog project and repository, and the master branch. After saving, if we go into logs, we can see the first action is deleting the azure-pipelines.yml file, even though one didn't exist. This seems like an initializing, clean slate kind of exercise.  Going back to the repo, we can see that no pipelines have been created, so there is nothing to customize, and all of the deployment functionality is happening from the App Service end.

I don't want to deploy the whole solution, just the LorryLogAPI project. To target a specific project, go into the app service's settings configuration and add a new application setting called project with the path to the project file as the value. Click OK and save the configuration settings. Now I'll go back to the Deployment center and redeploy by clicking the sync button. The initial automatically kicked off deployment failed as it tried to deploy the whole solution, not because I've misspelled upgrade. Now the deployment is running and will take a little while to complete. Successfully completed, and the app service is deployed and working.

About the Author
Avatar
Hallam Webber
Software Architect
Students
14804
Courses
27
Learning Paths
3

Hallam is a software architect with over 20 years experience across a wide range of industries. He began his software career as a  Delphi/Interbase disciple but changed his allegiance to Microsoft with its deep and broad ecosystem. While Hallam has designed and crafted custom software utilizing web, mobile and desktop technologies, good quality reliable data is the key to a successful solution. The challenge of quickly turning data into useful information for digestion by humans and machines has led Hallam to specialize in database design and process automation. Showing customers how leverage new technology to change and improve their business processes is one of the key drivers keeping Hallam coming back to the keyboard.