Pulumi Refresh on Function Apps and Web Apps doesn't update AppSettings/Environment Variables #3279
Labels
awaiting-feedback
kind/bug
Some behavior is incorrect or out of spec
resolution/duplicate
This issue is a duplicate of another issue
What happened?
When a function app or Web App's AppSettings (Environment Variables within Azure Portal) are updated via the Azure Portal and then we run a Pulumi Refresh to pull these changes into our Pulumi state, it doesn't detect a difference and therefore doesn't update the state with the changes.
I have alternatively tried moving these configs from AppSettings as NameValuePairArgs to https://www.pulumi.com/registry/packages/azure-native/api-docs/web/webappapplicationsettings/ however, this has a different issue of not being able to input output values from other Pulumi resources (without using things like Output.tuple which then makes any previews useless as it just shows 'Output' rather then what it's going to change.
Example
Create a WebApp using the below code, then manually delete the TestValue from AppSettings/Environment variables via the Azure Portal and then try a Pulumi Refresh to update the state with the deleted value. C# Azure-Native example:
Output of
pulumi about
CLI
Version 3.115.2
Go Version go1.22.2
Go Compiler gc
Host
OS Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631
Arch x86_64
This project is written in dotnet: executable='C:\Program Files\dotnet\dotnet.exe' version='8.0.204'
Current Stack: uk-dev
Found no pending operations associated with uk-dev
Backend
URL azblob://**
User ***
Organizations
Token type personal
Dependencies:
NAME VERSION
Newtonsoft.Json 13.0.3
Pulumi 3.55.1
Pulumi.Azure 5.47.0
Pulumi.AzureNative 2.2.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: