This article describes how to deploy an ASP.NET MVC application with the default Membership database to Azure,
The author uses Microsoft SQL Server Management Studio to generate an SQL script, and runs the script during Publish.
Another option is to create your own Membership table and Entity Framework Code First Migrations.
- First create your own Users table. It must have at least two fields: UserId and UserName,
- Add the table to your DbContext,
- Modify _AppStart.cshtml to run Migrations and then connect WebSecurity to the new Users table,
- Run the application to create the table and test Membership.
- Finally, Publish the application to Azure using the option to Execute Code First Migrations,
Note that if you want to seed the Users table, you will need to do it in _AppStart.cshtml,
Happy coding!