Problems updating `AppService.appSettings`
See original GitHub issue- It seems updating/adding a value on an
AppService’sappSettingsdoes not work. I get the following error:
PS D:\Code\pulumi-test> pulumi update
Previewing update of stack 'pulumi-test'
Previewing changes:
Type Name Plan Info
~ azure:appservice:AppService testApp update changes: ~ appSettings
info: 1 change previewed:
~ 1 resource to update
7 resources unchanged
Do you want to perform this update? yes
Updating stack 'pulumi-test'
Performing changes:
Type Name Status Info
~ azure:appservice:AppService testApp **updating failed** changes: ~ appSettings, 2 errors
Diagnostics:
azure:appservice:AppService: testApp
error: Plan apply failed: updating urn:pulumi:pulumi-test::pulumi-test::azure:appservice/appService:AppService::testApp: web.AppsClient#CreateOrUpdate: Failure sending request: StatusCode=409 -- Original Error: failed request: autorest/azure: Service returned an error. Status=<nil> <nil>
error: update failed
info: no changes required:
7 resources unchanged
Permalink: https://app.pulumi.com/loic-sharma/pulumi-test/updates/11
error: update failed
I can get around this by doing pulumi destroy followed by a pulumi update.
- It seems that changing an
AppService’sappSettings’s value from a string to anOutput<string>doesn’t get detected. Example from:
appSettings: {
"Hello": "World"
}
Example to:
appSettings: {
"Hello": all([output1, output2]).apply(([a, b]) => `${a} ${b}`)
}
Running pulumi update will result in a preview of no changes.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Not able to update AppSettings for Azure App Service using ...
Not able to update AppSettings for Azure App Service using PS cmdlet Set-AzWebApp. seems like a fairly simple task to do and I...
Read more >Failed to update App service '' application settings. Error: Conflict
Trying to switch to Azure Key Vault linked variables in my pipeline file. Everything looked to be in order until i attempted to...
Read more >Update Application Settings for an Azure App Service
With our migration to VSTS I ran into an issue where I wanted to update Application Settings for an Azure App Service.
Read more >Azure App Service app settings are not available through ...
Update 1 I created a test project in VS 2015 update 3 - Webforms App and it works, but it contains OWIN, by...
Read more >Azure Web App Not Updating After Publish | How2Code.info
The quick-and-dirty way to fix locking issues is to manually stop your web app before updating and then starting it after the update...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Given how pervasive use of
AppServiceis, this feels important to root cause.Hi @juchom! Sorry for the delay in responding here. I just tried reproducing this with the latest versions of the Pulumi CLI (v0.17.1) and
pulumi-azure(v0.17.2), using your detailed (thank you!) AppService example of adding Application Insights. I believe this was one of a class of bugs fixed by @pgavlin’s recent work to improve handling of default values.After running the second part of the example, I see the following in the Azure Portal:
I’ll mark this issue as closed since it no longer reproduces - if you spot conditions where it is still an issue, please feel free to re-open!