Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run EF Core migration with pulumi

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

like image 815
Muhammad Atif Avatar asked Jun 13 '20 05:06

Muhammad Atif


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#.

like image 186
Stef Heyenrath Avatar answered Oct 20 '22 20:10

Stef Heyenrath