vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

An error occurs after clicking "Upload Settings" button in the notification

Open v-chenzha opened this issue 1 year ago • 2 comments

OS: All Build Version: v1.14.4-alpha.0 Regression: Previous release (1.14.3)

Repro Steps:

  1. Create a function app with Flex Consumption (Preview) hosting plan.
  2. Deploy a project to this function app.
  3. Click "Upload Settings" button in the notification after deployment successfully.
  4. Check whether no error occurs.

Expect: No error occurs.

Actual: An error occurs. image

v-chenzha avatar May 17 '24 09:05 v-chenzha

Happens for PowerShell as well. There should be a check if the app is a func app and exclude it.

Interestingly, func azure functionapp publish doesn't care:

Setting AzureWebJobsStorage = ****
Setting DCR_ENDPOINT = ****
Setting DCR_RULE_ID = ****
Setting MERAKI_ORG_ID = ****
Setting MERAKI_API_KEY = ****
Setting DEBUG_LOGGING = ****
Updating function app runtime setting with 'powershell 7.4'.

JustinGrote avatar Aug 16 '24 16:08 JustinGrote

I'm facing the same issue. When I try to upload the local.settings.json configuration values to App Settings before deploying the Function App project, I get an error stating that FUNCTIONS_WORKER_RUNTIME cannot be configured in Flex Consumption.

The following app setting (Site.SiteConfig.AppSettings.FUNCTIONS_WORKER_RUNTIME) for Flex Consumption sites is invalid. Please remove or rename it before retrying.

shibayan avatar Aug 28 '25 07:08 shibayan