title: When publishing my ASP.NET Core MVC App, the Entity Framework Migrations option shows an error
body: <p>I'm on Visual Studio 2019 v16.4.3. I tried publishing my ASP.NET Core MVC web app to Azure and followed the steps shown here:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/tutorials/publish-to-azure-webapp-using-vs?view=aspnetcore-3.1" rel="nofollow noreferrer">Publish an ASP.NET Core app to Azure with Visual Studio Code</a></p>
  
  <p>But I'm stuck at this part of the tutorial:</p>
  
  <p><a href="https://i.stack.imgur.com/Ghjfi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ghjfi.png" alt="enter image description here"></a></p>
  
  <p>I tried running both these commands:</p>
  
  <pre><code>dotnet tool install dotnet-ef
  </code></pre>
  
  <p>and </p>
  
  <pre><code>dotnet tool install dotnet-ef --version 3.1.1
  </code></pre>
  
  <p>but I'm given the same error as the one in the image: <code>"Tool 'dotnet-ef' failed to install."</code></p>
  
  <p>I already have a local sql db filled with data but it's not sent to the Azure SQL Database that was setup. The database context and tables weren't created on the Azure SQL Database either. How do I get my database with all its data synced and published to the Azure SQL Database? Thanks!</p>