X

Running ASP.NET Core 5 RC applications on Azure App Service

Although .NET 5 is officially in RC and not yet officially supported on Azure cloud we can still deploy ASP.NET Core web applications built for .NET 5 to Azure App Services. I made my first ASP.NET Core 5.0 deployment to Azure App Service this week. There has been no problems on Azure side and my application is running very stable. Here’s how I did it.

Prerequisites

To try ASP.NET Core on .NET 5 and Azure App Service out you need the following things:

For testing I strongly recommend to go with clean App Service Plan and App Service to not affect any live systems you have. After you are done with prerequisites it’s time to create test application.

Creating web application

Run Visual Studio 2019 Preview and create new ASP.NET Core Web Application. Here’s the screenshot with settings I used.

After creating web application you should see classic ASP.NET Core project structure in Visual Studio.

Run your application to make sure there are no issues with Visual Studio 2019 Preview or .NET Core 5. You should see default ASP.NET Core application in your browser.

If there were no issues with application and tooling then let’s publish it to Azure cloud.

Publishing ASP.NET Core 5 application to App Service

Right click on your ASP.NET Core 5 project in Visual Studio 2019 Preview and select publish. Follow these steps:

  1. Select Azure as publishing target and click Next
  2. Select Azure App Service as specific target and click Next
  3. From Azure app service instances list select the instance you created and click Finish

Visual Studio creates publishing profile and opens it automatically.

Click on pen icon after Deployment mode field and select Self-contained as deployment mode. By default target runtime is changed to win-x86. You can leave it like it is but you can also switch over to win-x64. Click Save when done. This is how publishing window should look like after these changes.

And there’s only one thing left to do – click Publish button. After publishing Visual Studio will automatically open your application in new browser window.

NB! If you once published application to App Service then next times publishing may fail. Sometimes there is error about no permissions to write over your application files. If this error comes then just restart your App Service and try again. Make sure you don’t click anywhere in browser window where your application is opened as it will load libraries again.

References

Liked this post? Empower your friends by sharing it!

View Comments (183)

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  • 🗂 Notification- TRANSFER 1.695252 BTC. GET >> https://graph.org/Message--04804-03-25?hs=192e9c1bc497a24121c90151a8dfdfb2& 🗂 says:

    u7tma7

  • To my surprise, I learned a lot from this piece. You have a gift for putting complex ideas into simple terms, and the examples you supplied really helped drive home your points. Your information is quite thorough, and I am grateful to you for that.

  • 📘 + 1.450683 BTC.NEXT - https://graph.org/Message--05654-03-25?hs=192e9c1bc497a24121c90151a8dfdfb2& 📘 says:

    13f1ig

  • I appreciate you taking the time to write and share this insightful piece. Your analysis is quite thorough, and I really enjoy reading your work. This article taught me a lot, and I will be using it again and again. You are doing an excellent job.

  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  • 🔍 + 1.838910 BTC.NEXT - https://graph.org/Message--04804-03-25?hs=192e9c1bc497a24121c90151a8dfdfb2& 🔍 says:

    aner3a

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • 📅 + 1.402309 BTC.GET - https://graph.org/Ticket--58146-05-02?hs=192e9c1bc497a24121c90151a8dfdfb2& 📅 says:

    lmias2

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  • 🔌 Ticket; Process 1,818544 BTC. Receive =>> https://graph.org/Ticket--58146-05-02?hs=192e9c1bc497a24121c90151a8dfdfb2& 🔌 says:

    c7t1bq

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • ✏ Reminder: Operation 1,43869 BTC. Receive >>> https://graph.org/Ticket--58146-05-02?hs=192e9c1bc497a24121c90151a8dfdfb2& ✏ says:

    lxvess

  • 🔍 Notification: SENDING 1,914267 BTC. Assure => https://yandex.com/poll/HYTE3DqXnHUqpZMyFqetue?hs=192e9c1bc497a24121c90151a8dfdfb2& 🔍 says:

    r7erl2

  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  • ⚙ + 1.65933 BTC.NEXT - https://yandex.com/poll/Ef2mNddcUzfYHaPDepm53G?hs=192e9c1bc497a24121c90151a8dfdfb2& ⚙ says:

    zrman8

  • 🖨 Ticket- TRANSACTION 1,622783 BTC. Verify >> https://yandex.com/poll/T1TnDbUc4R9aLX7Nzhj1Cy?hs=192e9c1bc497a24121c90151a8dfdfb2& 🖨 says:

    rihlgm

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • Thank you very much for sharing, I learned a lot from your article. Very cool. Thanks.

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  • 📜 + 1.264849 BTC.NEXT - https://yandex.com/poll/7HqNsFACc4dya6qN3zJ4f5?hs=192e9c1bc497a24121c90151a8dfdfb2& 📜 says:

    ytq56t

  • Your article helped me a lot, is there any more related content? Thanks!

  • 🔉 Message: Operation 1,136843 BTC. Get >> https://yandex.com/poll/enter/BXidu5Ewa8hnAFoFznqSi9?hs=192e9c1bc497a24121c90151a8dfdfb2& 🔉 says:

    l3jfsw

  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  • I do trust all the ideas youve presented in your post They are really convincing and will definitely work Nonetheless the posts are too short for newbies May just you please lengthen them a bit from next time Thank you for the post

  • The author has a deep understanding of this topic and explains it very clearly. It is very helpful to me. Thank you for sharing!

  • Hello there, just changed into alert to your blog via Google, and located that it's really informative. I’m gonna watch out for brussels. I’ll be grateful in case you continue this in future. Lots of people shall be benefited from your writing. Cheers!

  • 📣 + 1.428685 BTC.GET - https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 📣 says:

    9vthcj

  • 🔐 Notification; SENDING 1,110223 bitcoin. Go to withdrawal =>> https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 🔐 says:

    jtpbyu

  • 🔒 + 1.891033 BTC.NEXT - https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 🔒 says:

    ixjox2

  • 📱 + 1.135662 BTC.GET - https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 📱 says:

    5w3me7

  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  • 🗑 + 1.510170 BTC.NEXT - https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 🗑 says:

    n1yku9

  • Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

  • Your article helped me a lot, is there any more related content? Thanks!

  • 📘 + 1.129895 BTC.NEXT - https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 📘 says:

    v7lgb1

  • Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

  • Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

  • 📉 Email; Operation 1,574468 BTC. Receive > https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 📉 says:

    dae8ow

  • 📝 Message- + 1,776532 BTC. Get =>> https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 📝 says:

    pu0b7s

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • 🖱 Email; SENDING 1,98414 BTC. Receive =>> https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 🖱 says:

    3tkg8t

  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  • 📲 Ticket- TRANSACTION 1,443431 BTC. Receive =>> https://graph.org/Payout-from-Blockchaincom-06-26?hs=192e9c1bc497a24121c90151a8dfdfb2& 📲 says:

    bc06kf

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • ✂ 🔐 Verification Pending - 0.9 BTC deposit blocked. Unlock now > https://graph.org/ACQUIRE-DIGITAL-CURRENCY-07-23?hs=192e9c1bc497a24121c90151a8dfdfb2& ✂ says:

    pzzx39

  • Fantastic beat ! I wish to apprentice while you amend your website, how could i subscribe for a blog website? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear concept

  • 📜 ACCOUNT ALERT: Unauthorized transaction of 0.9 Bitcoin. Cancel? >> https://graph.org/COLLECT-BTC-07-23?hs=192e9c1bc497a24121c90151a8dfdfb2& 📜 says:

    y2qabq

  • 🔏 Network: Deposit 0.5 Bitcoin incomplete. Fix here => https://graph.org/OBTAIN-CRYPTO-07-23?hs=192e9c1bc497a24121c90151a8dfdfb2& 🔏 says:

    yp12j3

  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  • * * * Win Free Cash Instantly: http://www.alkon-vvs.ru/index.php?ripq3x * * * hs=192e9c1bc497a24121c90151a8dfdfb2* ххх* says:

    1koakc

  • 📈 💰 Bitcoin Credit - 0.42 BTC added. Withdraw here → https://graph.org/WITHDRAW-BITCOIN-07-23?hs=192e9c1bc497a24121c90151a8dfdfb2& 📈 says:

    dg6k7k

  • I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

Related Post