Hello! I am using Pulumi to provision a function app using the .NET version of Pulumi (v3.157.0). After running the initial
pulumi up
that provisioned the funciton app, I published my function app code. Then, I made a change to the App Settings listed for the function app in the Pulumi script. When I ran
pulumi up
again, resulting in a update for the function app, my zip deployment was removed resulting in removal of all functions and their configurations. What can I do to keep existing zip deployments when
pulumi up
performs an update to the resource?
m
millions-journalist-34868
06/11/2025, 4:34 PM
Check your app settings after making a zip deploy. I think the location of the zip is stored in an app setting. So I think you can just specify your resource to ignore this setting when it changes. Do you see what I mean ?
millions-journalist-34868
06/11/2025, 4:37 PM
Something like that in your resource options:
{
ignoreChanges: ["properties.MY_SETTING"],
});
millions-journalist-34868
06/13/2025, 8:37 AM
@best-library-53169 did it work?
b
best-library-53169
06/13/2025, 7:11 PM
Thank you for the suggestion! I couldn't find a new app setting with the file location after deploying. However, I did try
Copy code
IgnoreChanges =
{
"zipDeployFile"
}
which according to Pulumi docs is the local path of the zip package. Unfortunately that didn't work.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.