There is an Azure WebRole and the approproate Service in a solution. Solution is unser source control. The problem is that my team-mate gets the sources to his workstation, opens them in Visual Studio, runs the service and gets the WebRole deployed on local IIS, while I can only see it on IISExpress in the same workflow.
We compared the settings of projects in Visual Studio and could not find differences.
We compared the source files after running them from Visual Studio and did not find differences,
Can anybody tell us is there a way to explicitly set the target IIS engine for deploying a Web Role in Visual Studio?
Look at the properties for the Azure project
You should be able to set it to use IIS instead of express.
Related
When I right click on the Web Project in the Solution Explorer of Visual Studio 2017, I don't see an option 'Add Existing Project as Azure Web Job'.
I did install Nuget-packages such as Microsoft.Web.WebJobs.Publish for the web project.
I am following this link https://learn.microsoft.com/en-us/azure/app-service-web/websites-dotnet-deploy-webjobs#convertlink to enable automatic WebJobs deployment with a web project.
Ideally, I am supposed to see like this, but that highlighted option is not shown in my visual studio 2017
Click to see image for how actually visual studio should have shown me an option
I don't see an option 'Add Existing Project as Azure Web Job'.
As far as I know, Visual Studio does not support to deploy WebJobs with ASP.NET Core Web Application currently.
But this feature is available in ASP.NET Web Application.
If you can not see 'Add Existing Project as Azure Web Job' option in your ASP.NET Web Application, you can try to repair or reinstall your Visual Studio and upgrade/reinstall your Azure SDK.
Currently I'm building an ASP.NET MVC project using the new Team Foundation Build 2015 (former Build vNext) feature in Visual Studio Online and I can do a successful deployment to an Azure Website easily.
Also I have a private server with Windows Server 2012 and IIS (you can not access it via the Internet) and I wonder if there is any way to make a deployment from my build in Visual Studio Online. Is it possible?
Yes, it is possible.
You need to set up a on-premise build server machine and register it to the visual studio online account. Please check steps in this blog for the details: http://myalmblog.com/2014/04/configuring-on-premises-build-server-for-visual-studio-online/
I created a website in the Azure portal, but now I can't find out how to import this into a TFS project. I have visual studio 2013. They seem completely disconnected in terms of importing a project from what the Azure portal creates. Thanks!
Jerelo - the way you solve your issue depends what type of website you deployed and how it was deployed originally. Many of the pre-baked Website images for items like Drupal or Wordpess are not designed to be imported into TFS and auto-deployed.
You would need to download your files via FTP (http://blogs.msdn.com/b/kaushal/archive/2014/08/02/microsoft-azure-web-site-connect-to-your-site-via-ftp-and-upload-download-files.aspx) and then setup source-control deployments by selecting the "Set up deployment from source control" option in the Portal.
Visual Studio Online is the only TFS source you'll be able to use right now, otherwise you have Dropbox, Git or Mercurial deployments Detailed options are listed here: https://github.com/Azure/azure-content/blob/master/articles/web-sites-deploy.md
I have a single web project that I want deploy in Azure.
I want to create one IIS web site per country and I want to be able to deploy each web site independently (not all of them at a time). How to do this?
Well,
you have two options:
Use Windows Azure WebSites to host your websites
Use Windows Azure Accelerator for WebRoles or your own project similar to that approach.
However you have to note that the second option is a project that is no longer being supported due to avialability of Azure Websites. With Azure Websites, you can have almost everything you get with the Accelerator. You can host your websites on a dedicated instances, and manage them individually. You can update/deploy your website data via FTP/GIT/TFS/WebDeploy, whichever method you are most happy with. The only downside of websites which I see, is the lack of Startup Tasks and the ability to customize your environment (Windows, IIS settings, etc).
When you have set up your Azure account you can go the the web sites section and start the construction of your Azure web spaces, the interface in the preview is very straight forward to use and intuitive.
For deployment using the publish command in from Visual Studio 2012 (which I found the easiest) here are the steps you will need to undertake:
For each of your countries you will need to set up the web site
in azure.
Then for each of those web sites you have created go
to their dashboard page and download the publish profile settings.
It is these settings that you can import into you Visual Studio
solution by selecting the publish command and browsing for the
settings profile file you downloaded and importing it.
Then in future when
you right click on the web site in your solution and select publish
it will publish to your web site in Azure.
I have created a fictional website for Spain below is the link you will need in order to initiate a publish from Visual Studio.
------------ EDIT -------------
For Visual Studio 2010 I met some difficulties trying to publish, in fact the publish profile you can download was not importable to Visual Studio 2010, well at least I could not figure it out.
Instead I created a deployment user by clicking on the 'Reset Deployment Credentials' link on the Azure dashboard (see the link in the image), created the user and then published via FTP from Visual Studio 2010.
What I would like to flag up is the maintenance issue of having one site for each country rather than one site with Localization, (if it is a language issue). A small change multiplied just 20 times for 20 different countries becomes a larger task and if you have lots of little changes it soon becomes a large task to maintain them all.
We have a web app migrated to Windows Azure. It is being deployed from inside the Visual Studio 2010 with the latest Azure SDK installed. Everything works fine except for the fact that we have some dependencies on Windows Server 2008 R2 and I need to change OS family manually through their management web portal after each deployment (Cloud Services -> Configure -> operating system).
I guess there should be an option to make this a default choice but I haven't found anything in the azure project settings inside the visual studio. Does anyone know a way to avoid doing this manually?
You can do it via the Service Configuration File in Visual Studio, just put a osFamily="2" attribute in the ServiceConfiguration element of your ServiceConfiguration.Cloud.cscfg file.
A generally good default is the asterisk (*) which will ensure you have the most up-to-date guest OS available. (Note: As Robert Muehsig points out in his comment below, the asterisk only works with osVersion, not osFamiliy)
How to Upgrade the Windows Azure Guest OS by Modifying the Service Configuration File: http://msdn.microsoft.com/en-us/library/windowsazure/gg456324.aspx
Windows Azure Service Configuration Schema (.cscfg File): http://msdn.microsoft.com/en-us/library/windowsazure/ee758710.aspx