In this article, I will be explaining how to publish your .Net Core application using Azure Service plan.
How to host your database with Azure?
What is the Azure Service Plan?
According to Microsoft, "In App Service, an app runs in an
App Service plan. An App Service plan defines a set of compute resources for a web app to run. These compute resources are analogous to the
server farm in conventional web hosting. One or more apps can be configured to run on the same computing resources (or in the same App Service plan)." Read more about Azure Service Plan
here.
Why would I host my application with Azure Service Plan?
- Multiple languages and frameworks - Web Apps has first-class support for ASP.NET, ASP.NET Core, Java, Ruby, Node.js, PHP, or Python. You can also run PowerShell and other scripts or executables as background services.
- DevOps optimization - Set up continuous integration and deployment with Visual Studio Team Services, GitHub, BitBucket, Docker Hub, or Azure Container Registry. Promote updates through test and staging environments. Manage your apps in Web Apps by using Azure PowerShellor the cross-platform command-line interface (CLI).
- Global scale with high availability - Scale up or out manually or automatically. Host your apps anywhere in Microsoft's global datacenter infrastructure, and the App Service SLA promises high availability.
- Connections to SaaS platforms and on-premises data - Choose from more than 50 connectors for enterprise systems (such as SAP), SaaS services (such as Salesforce), and internet services (such as Facebook). Access on-premises data using Hybrid Connections and Azure Virtual Networks.
- Security and compliance - App Service is ISO, SOC, and PCI compliant. Authenticate users with Azure Active Directory or with social login (Google, Facebook, Twitter, and Microsoft). Create IP address restrictions and manage service identities.
- Application templates - Choose from an extensive list of application templates in the Azure Marketplace, such as WordPress, Joomla, and Drupal.
- Visual Studio integration - Dedicated tools in Visual Studio streamline the work of creating, deploying, and debugging.
- API and mobile features - Web Apps provides turn-key CORS support for RESTful API scenarios, and simplifies mobile app scenarios by enabling authentication, offline data sync, push notifications, and more.
- Serverless code - Run a code snippet or script on-demand without having to explicitly provision or manage infrastructure, and pay only for the compute time your code actually uses (see Azure Functions). Read more here
How to do it?
First, let's set up our Azure Service Plan:
It takes a while until it's successfully set up by Azure, when it is ready you are going to see something like this,
When ready, download your "Publish Profile":
Now, it's time to configure your Visual Studio:
Right click in your project, click on "Publish",
Import your profile (downloaded before from Azure portal) here,
And here we have our application running hosted with Azure Service Plan,
Congratulations, you have successfully published your application using Azure Service Plan!