Docs Documentation Learn Q&a code Samples Top of Form Bottom of Form Learn



Download 0.64 Mb.
Page9/17
Date16.09.2022
Size0.64 Mb.
#59526
1   ...   5   6   7   8   9   10   11   12   ...   17
azure study
Preview your web app

  1. After deployment successfully completes for your app, select Go to resource. The portal shows the web app overview pane.



  1. To preview your new web app's default content, select its URL at the top right. The placeholder page that loads indicates that your web app is up and running, and ready to receive deployment of your app's code.


Leave the browser tab with the new app's placeholder page open. You'll come back to it after you've deployed your app.
Need help? See our troubleshooting guide or provide specific feedback by reporting an issue.
English (United States)
Theme

  • Previous Version Docs


  • Blog


  • Contribute


  • Privacy & Cookies


  • Terms of Use


  • Trademarks


  • © Microsoft 2021

Skip to main content

  • Docs

  • Documentation

  • Learn

  • Q&A

  • Code Samples

Top of Form
Bottom of Form


Learn

  • Products

  • Roles

  • Learn TV

  • Certifications

  • FAQ & Help

LEVEL 1300/1799 XP

  • Docs


  • Learn


  • Browse


  • Host a web application with Azure App Service


  • Prepare the web application code

  • Bookmark

Previous

  • Unit 4 of 8

Next
Prepare the web application code
Completed100 XP

Top of Form
Choose your development language
C# Java Node.js Python
Bottom of Form
In this unit, you'll learn how to create the code for your web application, and integrate it into a source control repository.
Bootstrap a web application
Now that you created the resources for deploying your web application, you have to prepare the code you want to deploy. There are many ways to bootstrap a new web application, so what we'll see here may be different to what you're used to. The goal is to quickly provide you a starting point to complete a full cycle up to the deployment.
Note
All the code and commands shown on this page are only for explanation purpose, you do not need to execute any of them. We'll do this in the next exercise.
The dotnet command-line tool that's part of the .NET SDK allows you to directly create the code for a new web application. In particular, the dotnet new can be used to generate a new application from a template:
BashCopy
dotnet new mvc --name
This command will create a new ASP.NET Core MVC application in a new folder with the name specified.
Adding your code to source control
After your web application code is ready, the next step is usually to put the code into a source control repository, such as Git. If you have Git installed on your machine, running these commands on your source code folder will initialize the repository.
BashCopy
git init
git add .
git commit -m "Initial commit"
These commands will allow you to initialize a local Git repository, and create a first commit with your code. The immediate benefits you gain is the ability to keep a history of your changes with commits. Later on, you'll also be able to synchronize your local repository with a remote repository, for example hosted on GitHub. This will allow you to set up continuous integration and continuous deployment (CI/CD). While using a source control repository is recommended for production applications, it's not a requirement to be able to deploy an application to Azure App Service.
Note
Using CI/CD enables more frequent code deployment in a reliable manner, by automating builds, tests and deployments for every code change. It allows delivering new features and bug fixes for your application faster and more effectively.

Download 0.64 Mb.

Share with your friends:
1   ...   5   6   7   8   9   10   11   12   ...   17




The database is protected by copyright ©ininet.org 2024
send message

    Main page