Posts

Showing posts with the label azure

Solved: Unable to publish to Azure App Service from Visual Studio

Image
I recently created an Azure App Service and tried to publish a new ASP.NET Core web app using its publish profile downloaded. When i did that, I encountered an error: Web deployment task failed. (Could not connect to the remote computer ("[redacted].scm.azurewebsites.net"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Lear more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.) The requested resource does not exist, or the request URL is incorrect. Error details: Could not connect to the remote computer ("[redacted].scm.azurewebsites.net"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Lear more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. The remote server returned an error: (404) Not Found. Here...

Azure Quickstart: SQL Azure

Image
In a previous post, we talked about hosting a web app with Azure app services . Now, we are going to see how to setup a SQL database on the Azure platform. Creating an Azure SQL Database To create an Azure SQL database, follow these steps: 1. Click on SQL databases on the hub on the left. That will take you to the SQL databases blade, where you can see your existing databases. 2. Click on the Add button or on the Create sql database button. The blade to create the SQL database will appear: 3. Fill in all of the required fields. Database name : This will be the name of the database, for use in the connection string. Subscription : This is the name of the subscription where this SQL database will be a part of. Resource group : This is the name of the resource group where this SQL database will be a part of. Select source : We are creating a new, empty database, so select Blank database. Server : This is the SQL Server instance where the database will live. One SQL ...

Azure Quickstart: Web Hosting with App Services

Image
There was a time when hosting a web application and the backing infrastructure was a long and rather expensive process. But with the advent of the cloud, this process has become much, much easier. This post is about setting up a web application in Azure. Within minutes, you can get your own web app up in Azure. Let's get started! Creating an Azure Account The first step is to create an account on Azure. To do that, you need the following: A Microsoft account A mobile phone (for identity verification) A credit card (for identity verification) The credit card details are needed only for identity verification purposes. It will not get charged unless you explicitly tell Azure to. Here is the registration link: https://azure.microsoft.com/en-us/free/ Congratulations, you now have an Azure account! Accessing the Azure Portal The Azure portal is the starting page in Azure. From it, you can create web apps, create other resources (there are a lot to choose from), view...

End-to-End Image Upload with Azure Storage, AngularJS, and Web API

Image
A common feature in web applications is image upload. Images can be stored on disk, in the database, or in some other server. In this post we will take the third approach and store images using Azure Storage. We will also be using AngularJS on the front-end and Web API in the back-end.

Adding an SQL Azure Linked Server

Image
When adding an SQL Azure Linked Server through SSMS, you will encounter an error if you go through the normal way (Server Objects > Linked Servers > New Linked Server). That is because the New Linked Server wizard does not allow you to specify the catalog name if the chosen Server Type is SQL Server, which should be chosen when adding an SQL Azure Linked Server. To accomplish this, the stored procedure sp_addlinkedserver should be used.