Regarding application deployement in Azure using visual studio - asp.net

I have signed up for a free azure account. I am trying to deploy my application in azure through visual studio 2017,but the drop down box for the subscriptions is always blank and I'm not able to go forward. I have also restarted visual studio after my subscription.

It often caused by cache issue. You need to sign out and remove all the account from Visual Studio Account setting panel. After that, please restart your Visual Studio and login your Azure account again.
If it also doesn't work for your, you could publish your web application to Azure Web App by downloading profile from Azure portal. Steps below are for your reference.
Create Azure Web App on Azure portal.
Get publish profile from Azure portal.
Choose import profile when deploying your web application using Web Deploy.

Related

How to host website and webapi using PAAS model on windows azure

I have a asp.net website and web api project. I am trying to host them on windows azure using the PAAS model. At present in my local dev environment I have hosted the website and web api as shown in the screenshot below:
Both the asp.net website and web api are attached to different Visual Studio Solutions. The web api project is referenced within the asp.net website.
At present for website I use Visual Studio 2013 for publishing the package. I want to host the web site and the web api in the same pattern done in local dev envrionment on azure using the PAAS model.
Can anyone help me to resolve this issue?
In VS2015 and possibly in VS2013Z(I cannot confirm since I don't have it installed anymore), you can just right click on the API/web project and select 'Publish' in the context menu. In the 'Publish Web' dialog, select the 'Microsoft Azure App Service'. Follow the instructions in selecting your azure account and resource group.
Not quite if this is what your are looking for.

Create new ASP.NET 5 project for existing Azure App Service

I've finally gotten around to familiarizing myself with Azure. I've created several App Services on a new App Service Plan. I've created a SQL Server instance and a SQL Server DB. My intention is to create new MVC sites, one for each App Service I created. I got the Azure SDK all set up and went about trying to create my first site, but now I'm stuck. It seems Microsoft expected me to create the projects in Visual Studio first, and allow the Azure SDK to create a corresponding App Service in Azure for the new projects. This isn't what I've done. So, I've encountered a screen where Visual Studio is asking me to put in details (Web App Name, Resource Group, App Service Plan) for the new App Service, but it doesn't let me choose from a list of existing App Services.
How can I associate the project I'm creating in Visual Studio with the existing App Service I already created in the Azure Portal?
This is the dialog I encountered while creating a new Web Application in Visual Studio and selecting the option to host in Azure. Notice there's a text box to enter a new App Service (Web App) name, but no drop-down to select previously existing App Services.
Azure Web Apps can be created in either direction. You should be able to create them either via Visual Studio or directly in the Azure Portal.
I'm assuming that you've already performed the following steps:
In Solution Explorer, right-click web app project.
In popup menu, select "Publish"
Select Azure subscription to see if any Web Apps exist.
From here on forward, you should be able to create a new Web App or select an existing Web App. Since you're not seeing your existing Web App, let's try to troubleshoot.
In the Publish dialog, create a new Web App (in Visual Studio).
In the Azure Portal, check to see if that Web App was created.
In case you have more than 1 subscription (e.g. free, BizSpark, MSDN from work), this will confirm whether you're looking at the same subscription in both places.
I've included a screenshot below to show you that I have multiple subscriptions, each of which contains a different set of Web Apps.
Hope that helps!

How do I stop visual studio 2015 for web iis service

When launching my MVC app built using this tutorial, it uses IIS Express as server. When I want to go back to edit my application the IIS Express server doesn't stop the page, so next time I launch my MVC app it has not changed.
I can not stop the service using the IIS Express manager or windows service manager because Visual Studio Express 2015 for Web is the service owner.
Under my project properties, I can find settings for Servers under the Web tab, but nothing useful. Where / how can I make Visual Studio stop the service when I stop debugging my project?
I solved the issue by opening my project properties Web tab and clicking on the button Create Virtual Directory. Now I can stop the IIS Express service using IIS Express manager from the status bar.

Publishing ASP.net to Azure VM

There is LOTS of information on publishing asp to Azure Cloud Web Service and so forth but I cannot find a lot on publishing it to an azure VM.
Also another problem is anything I find assumes I have started a project with azure enabled from the start. Which I haven't done, so I would have to somehow convert it, again I have seen many ways of doing this on the web based on different requirements.
So how would I publish an ASP.net project (that has no reference to azure) to an azure VM.
Thanks
Install Web Deploy into your VM and publish directly through Visual Studio
http://www.iis.net/downloads/microsoft/web-deploy

How to only deploy changed project files in Windows Azure?

I am working on a web project in ASP.NET which is integrated with Salesforce. I have published my web project in Windows Azure. Now I have some changes in particular files and I want to deploy these changes only rather than complete project.
If you are using Web Deploy from within Visual studio, it will automatically only deploy the changed files in a differential manner. Alternatively, if you are using Azure VM's or a Cloud Service (which is actually VM's), you can connect to the machine(s) using RDP and update select files manually. You can get the RDP information to the machine from the Azure Portal.
http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-log-on-windows-server/

Resources