Run EF Core migration with pulumi

Viewed 206

How can I run a SQL script after creating a database with pulumi? Also how to run EF migrations with pulumi?

I have created an Azure SQL Server using https://www.pulumi.com/docs/reference/pkg/azure/sql/sqlserver/

public SqlServer(string name, SqlServerArgs args, CustomResourceOptions? opts = null)

Thanks in advance

1 Answers

When creating a SQL Server, you can capture the output connection string and use maybe Dynamic Providers to execute custom code linked to that resource (SQL Server).

However, it seems that Dynamic Providers are not yet aupported in C#.

Related