7

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Muhammad Atif
  • 1,050
  • 1
  • 9
  • 21

1 Answers1

2

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

Stef Heyenrath
  • 9,335
  • 12
  • 66
  • 121