question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems updating `AppService.appSettings`

See original GitHub issue
  1. It seems updating/adding a value on an AppService’s appSettings does 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.

  1. It seems that changing an AppService’s appSettings’s value from a string to an Output<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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
lukehobancommented, Feb 28, 2019

Given how pervasive use of AppService is, this feels important to root cause.

1reaction
jen20commented, Mar 19, 2019

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:

image

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found