Posts

Showing posts from November, 2019

Publish a .Net Core Web API with Entity Framework Core to Azure (App Service) - Express Guide

Image
Azure - SQL Database ( https://azure.microsoft.com/en-us/pricing/details/sql-database/single/ ) - ~$4.8971/month 1. Create SQL Server database instance Azure provides different options for SQL Databases: Databases offer the following deployment options: As a single database -With its own set of resources managed via a database server. A single database is similar to a contained database in SQL Server. This option is optimized for modern application development of new cloud-born applications. Hyperscale and serverless options are available. An elastic pool -Is a collection of databases with a shared set of resources managed via a database server. Single databases can be moved into and out of an elastic pool. This option is optimized for modern application development of new cloud-born applications using the multi-tenant SaaS application pattern. Elastic pools provide a cost-effective solution for managing the performance of multiple databases that have variable usage patt...

Publish .Net Core Web API to Azure (App Service) - Express Guide

Image
Required Azure Services - App Service ( https://azure.microsoft.com/en-us/pricing/details/app-service/linux/ ) - Have a Free tier Create Azure App Service (Web App) 1. Login to your Azure portal. 2. Search for 'App Services' and select it 3. From the App Services window click on 'Add' - This will redirect you to create Azure Web App page 4. Select your Azure Subscription and Resource group (Create new one if you don't have any) 5. Give instance name, select Publish mode as Code 6. Select your Runtime Stack (.Net or .Net Core version which supports your application). 7.You can select either Windows or Linux as Operating System. I used Linux because I'm hosting a .net Core Web API with Entity Framework Core. NOTE: If your app is .Net standard application you have to select Windows. 8. Select Region as you like. 9. Select App Service Plan. - Create new App Service plan if you like or you can keep the auto generated name. - Select Sku (Stock Keeping ...