# EF migrations on Azure

Published: 2015-09-11
Last updated: 2018-08-23

I happened to work on a project hosted on Azure. The project made use of Entity Framework, and after a point I had to add migrations. But for some reason, the `update-database` failed on the server with the following error:

> Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.

![Error Screenshot](/images/2015/09/Screen-Shot-2015-09-10-at-00-40-27.png)

The weird part was that every table had a clustered index, but it still wasn't working.

Apparently the clustered index requirement is a limitation in the Azure SQL Server Databases. These limitations don't exist in v12 and I could easily fix it by upgrading the SQL Server Version. There's an upgrade how-to at the Microsoft Azure site [here](https://azure.microsoft.com/en-in/documentation/articles/sql-database-v12-upgrade/).

