How to deploy an asp.net website in windows azure - c#

I have a asp.net website that's in asp.net 2.0. How to deploye in azure?

You question is very vague due to the fact that now there are three way you can deploy your ASP.NET website to Windows Azure. :
Windows Azure Web Sites:
This is in preview phase and released very recently. You can create a free website by signing up to Windows Azure Preview and create upto 10 free shared websites using the information provided below:
Deploying an ASP.NET Web Application to a Windows Azure Web Site and SQL Database
Windows Azure Virtual Machine:
In this method you create your own Virtual Machine with IIS and then deploy your ASP.NET application directly to it. The Virtual Machine is persisted so anything you will deploy to your virtual machine will persist.
Create a Virtual Machine Running Windows Server 2008 R2
Windows Azure Web Role
This is the PaaS based Windows Azure Cloud service where you can deploy to your application directly to Windows Azure cloud using Windows Azure SDK as described below:
Deploying an ASP.NET Web Application to a Windows Azure Cloud Service and SQL Database
As there is lot of information above and you might be overwhelm, I would suggest just stick with the option #1. Signup for Windows Azure Preview and create your "Windows Azure Website" and start from there.

Related

How to deploy an ASP.NET Web App to Azure with an existing SQL Server database (Azure Data Studio)

I have an ASP.NET Web App that utilizes a SQL Server database with Entity Framework in Azure Data Studio, along with Docker as a container. I recently published my web app to Azure, and none of my data from my web app migrated to my published web app. I have already added a SQL Server as well in Azure.
Keep in mind I am using Visual Studio 2019 on the MAC. I have seen a tutorial online where you can select a service dependency for an azure database, but I can't find that feature on my VS. How would I go about connecting my SQL Server database to my published web app?
In the app service in azure portal, under configuration you can add a connection string to your sql server database

Host Selenium C# project on Azure

I have a selenium C# project build using Chrome driver that scrapes 5 different websites for prices and adds the data into SQL. They project works pretty fine on local machine. I want to deploy it on Azure server.
Which Azure service to be used for this?
Is there any code sample availabe?
Host Selenium C# project on Azure
This SO thread discussed "Running Selenium on Azure Web App", and we can find Selenium project seems can not run in the sandbox that Azure Web Apps run under.
Azure Virtual Machines is another hosting option, if possible, you can create a Azure Virtual Machine and migrate your project to that VM.

Publishing Azure Mobile App to Azure portal

so i created my Azure Mobile App (Preview) project in visual studio, so just like Azure API App (preview) you can publish your project to azure by right clicking the project and click publish and you will see Azure API App Preview then you can now publish it to azure, but not in Azure Mobile app. so anyone who know how to publish it to azure? Please assume that I already created an Azure Mobile App in the portal and i just want to update it.
Found it, I just need to select the Web App and i will see my Mobile App there. i use this reference
https://github.com/Azure/azure-content/blob/master/includes/app-service-mobile-dotnet-backend-publish-service.md

Accessing Couchbase from Azure website

I created a MVC4 application connected accessing a Couchbase 2.0 server (installed on a virtual machine somewhere else). From my dev environment, it is working correctly but when the site is published on an Azure website, it cannot access Couchbase anymore. Couchbase 2.0 is accessed on a rest interface on the port 8091.
The answer is :
It doesn't work when the application is deployed as an Azure Website.
Accessing a external Couchbase server works with an application deployed as a webrole is working.
Thanks for your helps.

Mvc3 application to windowazure

I want to convert my MVC - 3 project to WindowAzure project. I downloaded SDK for VWD express 2010. Can anybody please guide to do this?
This should help you: Migrating an Existing ASP.NET App to run on Windows Azure
This TechEd 2010 Presentation on Using Microsoft Visual Studio 2010 to Build Applications That Run on Windows Azure by Jim Nakashima should get you going
To start with, you don't need to make any changes in your MVC application to move to Windows Azure. Once you have Azure SDK (June 2012) Installed, you will have an option with your Solution properties as "Add Windows Azure Cloud Service Project" to move your MVCx application to Windows Azure. There will not be any change to your main application, but this way your application will be part of Windows Azure Application and run as a Web Role there.
Now if your Azure Application is set as Startup project and if you run your application, this will launch your application in Windows Azure Emulator so you can test your MVCx application in Windows Azure Emulator.
Finally you would need to make necessary code changes (i.e. Database connection etc) to successfully run your application as Windows Azure Cloud Service in cloud. This is all depend on what kind of your application is and how you would want to run your application in cloud.

Categories