Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update config for Flex function b/c of functionAppScaleLimit setting #10643

Open
rmontroy opened this issue Nov 19, 2024 · 6 comments
Open

Comments

@rmontroy
Copy link

Checked for a solution in the Azure portal

Yes

Investigative information

  • Timestamp: Mon Nov 18 2024 21:42:32 GMT-0500 (Eastern Standard Time)
  • Function App version: ~4
  • Function App name: func-processor-oy7gjmowosxds
  • Function name(s) (as appropriate): N/A
  • Invocation ID: N/A
  • Region: East US 2
  • Operation name: Update web sites config

Repro steps

steps required to reproduce the problem:

  1. Change any config setting in the Portal or via az webapp config update (e.g., minimum TLS version).
  2. Save changes.

Actual behavior

BadRequest
The following site configuration property (Site.SiteConfig.FunctionAppScaleLimit) for Flex Consumption sites is invalid. Please remove or rename it before retrying.

Known workarounds

None
(I tried az resource update --resource-type Microsoft.Web/sites -g <group> -n <func-app-name>/config/web --remove properties.functionAppScaleLimit. There was no error, but the setting was not removed.)

Related information

This function was created via a modified version of this template: functions-quickstart-python-http-azd

@bhagyshricompany
Copy link

Hi @rmontroy Thanks for reporting.can you try with consumption plan? please share the snap config.Thanks

@rmontroy
Copy link
Author

The issue does not occur with the consumption plan.
Note that the error message is specific to "Flex Consumption sites".

@bhagyshricompany
Copy link

@satvu please comment and validate.Thanks

@erwinkramer
Copy link

@rmontroy i had this same issue today. I worked around it by setting it to the same value as functionAppConfig.scaleAndConcurrency.maximumInstanceCount. In my case, that value was 100.

I also attempted to force it to null but that didn't update it, probably the same as you attemted, but with Bicep.

@rmontroy
Copy link
Author

rmontroy commented Jan 5, 2025

Thanks @erwinkramer! Can confirm, it worked for me, too.

@RohitRanjanMS
Copy link
Member

This may be due to an old version of the API (or an older version of tooling that then uses an older version of the API). Can you confirm if you are still facing this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants