Currently I have MVC2 web application(on going). If I'm to use Azure PaaS (Platform as a Service), Can I use the existing project. Or should I create new project (using Cloud service project template)? Can it be migrated? And what kind of effort will it take for migration? Or should I rewrite the entire application with new project template?
You don't have to rewrite the project itself, you can simply add another project to your solution (which is a cloud project) and then point it to your other project in the associated definitions.
This is a useful technique when you already have existing projects that you want to migrate to Azure.
Not sure if this would work with MVC 2 web application but you can simply try to convert the web application to Cloud Services project by right clicking on your project in Visual Studio (I used VS 2013), then Convert context menu and then selecting Convert to Microsoft Azure Cloud Service Project.
Related
So I'm trying to deploy a test site to Azure.
The site has a database which was built in SQL server management studios, then I used ADO.NET Entity Data model to import the database into visual studios. Then I just used scaffolding to create CRUD operations.
How do I deploy this web app to Azure?
I used a database first so I'm not sure if that's a problem
I've tried following some tutorials but they seem to have different UI
eg. https://learn.microsoft.com/en-us/aspnet/mvc/overview/getting-started/database-first-development/publish-to-azure
First you want to go into Tools in your nav menu and check for 'Get Tools And Features'. Make sure you have Azure tools installed, and from there you'll be able to access the Azure menu to publish your web app directly from Visual Studio. You can also do this in VS Code, however you'll need the official Azure extension from Microsoft.
I never notests this but if you create a new asp.net MVC website in visual studio you get full azure integration without knowing it. Turns out all of my applications, while hosted on my own server, are logging everything they do with Azure.
If I remove all azure dependencies from my project it won't build anymore. Is there a way to remove this feature from my asp.net project template? I really don't like this, for one, my inbox is exploding with "Data collection for .... has reached it's daily cap" emails and two, I feel violated in my privacy, why does Microsoft have know everthing of my projects?
Sorry for the possible duplicate question, but Google really isn't my friend on this one.
Actually, when you create a new project with default options you don't get any Azure integrations.
If your application is with Azure AD authentication, you should disable this when creating the new project.
If your application is doing logging on Azure, you can disable Application Insights.
I'm taking over a project from someone who is no longer avaiable to ask how/why their prjoect works.
I have two solutions, one a MVC project and the other a Web API. The MVC project calls the separate API solution to do some validation of data. If I start up the Web API project it runs on localhost:64633. Then I need to start up the MVC project so that I can step through the code and all the way through the Web API.
Thing is that the MVC project runs on localhost:64633 as well so once I have the API running and then try to debug the MVC project I get an error "Unable to start program localhost:64633. An operation is not legal in the current state.".
How can I debug both the MVC project and Web API project at the same time?
Run Your project using local IIS server, follow below steps for that
Right click on project file choose property
Go to Web tab, under the Servers header choose Local IIS
Then click "Create virtual Directory" button
Do above steps to both project. please try now
Note : Run both project with in single solution, automatically debug both project at a time.(Just suggestion only)
I have solution that consist of several project (frontend - MVC, access layer - codefirst and business layer).
What should I do to deploy these project to single azure web apps ?
Thank you,
You can deploy multiple projects in single Azure web app using Application Settings -> virtual applications and directories to set multiple project locations and marking them as application.
Check this blog - This explains the steps
http://blogs.msdn.com/b/tomholl/archive/2014/09/22/deploying-multiple-virtual-directories-to-a-single-azure-website.aspx
I have a ASP.Net MVC Project in a solution which contains multiple other Class library projects (which are dependencies of MVC project).
Now I want to automate the process of creating multiple DEV AzureWebsites and publish the MVC project (along with its dependencies) through Azure PowerShell Cmdlets.
I know how to create AzureWebsite and other Cmdlets, but I am not sure about how to publish VS MVC Project, take that folder and deploy it in AzureWebsite. Please let me know my options.
PS - I do not want to Visual Studio -> Right Click publish option, because I need to create multiple instances of Dev AzureWebsites.
Good news. The script to do this is already written for you. In Visual Studio, take a look in the PublishScripts folder of your solution. There you will find the scripts and parameter file for your solution. You can use these to publish to other Web Apps (formerly Websites).
The dependencies will be included in the package file that is generated so no additional steps are needed for that.