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



Download 0.64 Mb.
Page13/17
Date16.09.2022
Size0.64 Mb.
#59526
1   ...   9   10   11   12   13   14   15   16   17
azure study
Deploy with ZIP deploy
Let's deploy our .NET application with ZIP deploy.
First, use dotnet publish to build the final app files and zip to package them into a zip file.
BashCopy
cd ~/BestBikeApp
dotnet publish -o pub
cd pub
zip -r site.zip *
Finally, perform the deployment with az webapp deployment source config-zip. Replace  in the following command with the name of your Azure web app and run it.
BashCopy
az webapp deployment source config-zip \
--src site.zip \
--resource-group [sandbox resource group name] \
--name
The deployment will take a couple minutes, during which time you'll see status output.
Verify the deployment
Let's browse to our application to see it live. Navigate back to the open browser tab containing the placeholder page and refresh it. If the placeholder page appears again, your App Service instance hasn't fully restarted yet, so wait a moment and try again. When you refresh after your app has restarted, you'll see the splash page for a new ASP.NET Core web app.
You have successfully hosted your new ASP.NET Core application on App Service!
Next unit: Summary
Continue
Need help? See our troubleshooting guide or provide specific feedback by reporting an issue.
English (United States)
Theme


  • Blog


  • Contribute


  • Privacy & Cookies


  • Terms of Use


  • Trademarks


  • © Microsoft 2021

Azure Cloud Shell
This module requires a sandbox to complete. A sandbox gives you access to Azure resources. Your Azure subscription will not be charged. The sandbox may only be used to complete training on Microsoft Learn. Use for any other reason is prohibited, and may result in permanent loss of access to the sandbox.
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 1600/1799 XP

  • Docs


  • Learn


  • Browse



  • Summary

  • Bookmark

Previous

  • Unit 8 of 8

Summary
200 XP

  • 2 minutes

You've successfully created and deployed a web application to Azure App Service.
App Service simplifies managing and controlling your web app in comparison to traditional hosting options. Your App Service Plan can help you reduce the time and effort spent running and managing your web app, and provide advanced cloud features such as autoscaling and Git integration.

Download 0.64 Mb.

Share with your friends:
1   ...   9   10   11   12   13   14   15   16   17




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

    Main page