This message was deleted.
# general
s
This message was deleted.
g
Can you elaborate on this? What kind of scripts?
l
Sure. Sql Scripts to deploy db changes.
during a deployment of an azure function with sql database, i want to deploy entityframework migrations
dotnet ef database update
another possibilty would be to generate an sql or powershell file within the build process of my domain specific database layer and then execute them
my pulumi programm based on dotnet
c#
w
You can run a shell script or invoke another process using tools inside your programming language. By default, those will run on every preview and update. If you want to only run on update - you can use Pulumi.runtime.isDryRun(). You can also gate running the tool on some condition - like check if the output already exists, or the service is already ready, and only run if needed. We’re looking to add ways to run custom code and scripts more directly inside the resource lifecycle itself for cases where even more control is needed. That’s tracked in https://github.com/pulumi/pulumi/issues/1691