Hi @DeanAndrewEverhart-9294,
I would advise reviewing Tutorial: Deploy an ASP.NET app to Azure with Azure SQL Database for deploy an ASP.NET MVC app with a SQL backend to Azure. It outlines the steps to configure your app service and Azure SQL instance, publishing your app to the app service, and applying migrations to create the schema.
Having said, you asked several questions in your linked document, which I did remove due to it containing sensitive information.
Visual Studio Publish, 443 works (1433 does not work?)
When publishing to an App Service, deployment is done through Kudu which is accessible securely from https://<your-app-name>.scm.azurewebsites.net
on port 443. Port 1433 is the port SQL Server instances opens to allow for database connectivity. It is specific to SQL and will never be used to for deployment
Database fields and structure present but no data and properties viewed through MSSMS include properties that have been altered in later code-first migrations.
If you're notice that database columns, types, etc. are being left over from migration to migration, inspect the protected override void Up(MigrationBuilder migrationBuilder)
method in the migration. When running Add-Migration
, the Up(MigrationBuilder migrationBuilder)
should contain the modified database schema based off the DbSets<TEntity>
added to your DbContext
.
As for the data, your data seeding method should be called during the startup of your program. In ASP.NET MVC, this means initializing your DbContext
object in the class decorated with [assembly: OwinStartup()]
and calling your seeding method, see https://www.learnentityframeworkcore.com/migrations/seeding for various methods on how you can seed data to your context.