Database change needed for hosting over Azure - asp.net-mvc

I've developed a product for my customer using ASP.Net MVC 3 and SQL Server 2008 R2. My customer wants me to host it over Azure. The access will be given to my customer's clients.
I found many posts talking about "NO CODE CHANGE REQUIRED FOR HOSTING OVER AZURE" But my questions is
My customer's client's will have there own set of data, how that will get mapped? My current application, if hosted in premise will serve it's purpose to the fullest. What if I need to use the same schema for 100 clients OVER AZURE? Do I need to database schema to address say 100 clients?
Thanks
VJ

Related

Publish ASP.NET MVC app with SQL Server database to free Azure account

Just want to know that I have my ASP.NET MVC application and related SQL Server database. I have signed up for a free Azure account.
I want to know if I can publish my app and database to Azure with this free account. The purpose of that, I want to check how the things are working properly and also since I working from home, selected user's want to see the progress of my project.
you need to have paid subscription for SQL server feature. Try finding SQL server express also know that SQL server will separately require you to pay SQL server license key. I would suggest to look into free SQL server hosting accounts instead of directly using Azure SQL server.

Deploying the same site N times

With our company, we sell a service to our customers,
this is a website which let customers enter some parameters and informations, and then, they can query a web service to get
the previous informations computed. These web sites are hosted on our servers.
We would have on our servers one database per client (dbo.Client1, dbo.Client2...) with the same schema.
And we would like to provide a different url for each client :
expl :
www.client1.service.com www.client1.ws.com/compute
www.client2.service.com www.client2.ws.com/compute
But i'm wondering how to deploy easily the web services and the web site?
Do i have to deploy one web service and one website per client (with different web config)?
And maybe create multiple deployment scripts ?
Or is it possible to imagine one instance of each (web service and web site), listening on several addresses, and creating different
connection string according to the entry point of the request (is it even possible with MVC or WCF ?)
Any other idea ?
I don't know what is the best practice here.
Thank you.
if anybody read that question one day, i solve my problem using multi-tenant solution, which allow me to deploy only one instance of the site.
The site handle the webrequest, and according to the host, connect to different database.

How to explore and edit manually and directly a database entry which is hosted in azure web sites? ASP MVC

In visual studio, when we use local db, we can explore the database tables and therefore edit or delete any entry manually and directly. How to do the same thing in a website which is already deployed to the azure web sites?
I am currently having problem in one or two rows data, which referes to some invalid data. I could fix it easily by removing the rows, but I don't know how to do so. please help me.
Which Database are you using in your website in Azure Webiste?
For Azure Table Storage, you can use Azure Storage Explorer. http://azurestorageexplorer.codeplex.com/
For SQL Azure, use SSMS. http://azure.microsoft.com/en-us/documentation/articles/sql-database-manage-azure-ssms/

ASP.NET Users not publishing to Azure

I've got a simple MVC 4 application with a user and role defined in the ASP.NET Configuration. They work fine locally (Running with F5) but when published to Azure Web Site the users don't exist or at least, when trying to log in I can't. Could either be the user doesn't exist or that the passwords isn't matching.
e.g. I have a page for Admins only, I have one admin user. Locally I created the user and role in the ASP.NET Configuration page and I can log in as Admin and access the secured page. After publishing to Azure Web Site I can't log in as Admin.
Can anyone help? How do I publish my ASP.NET Configuration?
I'm using Visual Studio Express 2012 for Web
As #Sound pointed out, you are probably missing the users from the DB that is hosted on Azure. You can access Sql Azure using Sql Management Studio once you open up the firewall through the Azure portal. From there, you can run a script to insert the users, or do it manually through SSMS.
There are many options for migrating data, the above just being a few. You might also look into EF Data Migrations as that might be a good fit as well.

Windows Azure + Asp.Net MVC + E-Commerce

I will developp and host an e-commerce website based on Asp.Net MVC4 (with several SQL Server Jobs).
I think use Azure in order to stay in Microsoft's world and avoid dedicated server management.
The package Web Site Shared with 1 site / 5Go SQL Server Database / 200Go Bandwidth is very interesting with the price based on 12 months.
But i don't know if this configuration is enough specially on the bandwidth.
What do you think of ? Did you use Azure with this type of application ?
Regards,
Guillaume.
If you want to develop E-Commerce application you will have to secure customers' sensitive data i.e. credit cards, address details etc. via secure connections (HTTPS; in many countries this is legal requirement). For that reason you will have to have SSL support.
Azure Website do not support SSL for custom domains. However, they support SSL for *.azurewebsites.net DNS name. So if your E-Commerce application DNS will be, say, my-ecom-app.azurewebsites.net then it's fine. Otherwise, I would not recommend Azure Website solution yet (I am sure SSL support for custom domains on Azure Website will be implemented).
Azure Cloud Services, on the other had, have full support of SSL for custom domains.
One of the really good websites to check Azure features and development roadmap is ScottGu's Blog
Azure Web Sites do not support SSL and I really don't know of any successful e-commerce site that does not run SSL for at least part of the website. If you really want to host your e-commerce on Azure today your only real choice is to run Virtual Machines for your web front end servers and use them for your DB or use SQL Azure.
We developed platform called Virto Commerce that does just that, MVC4 website hosted on Azure. There was also a need for SQL Jobs (indexing, payment processing, cart cleanups and so on) for which we used WorkerRole (instead of WebRole). WorkerRole and WebRole can actually be combined as part of a single deployment, however it is better to use a different instance for worker roles. In our case WorkerRole acted as a scheduler for multiple jobs defined in the database.
The challenge with WorkerRoles however is to make sure they scale well when new instances are added. So the workload needs to be distributed between multiple instances. This is done through the use of queues and blob locks, where each job is now split into two, one that schedules and partitions the work and the second that actually picks up the next partition and completes it.
Hope this helps!
PS: Virto Commerce is now available as an open source project on codeplex, go to http://virtocommerce.codeplex.com

Resources