Skip to content

[BUG]: AzureFunctionApp@2 application settings. Error: BadRequest - Parameter name cannot be empty. (CODE: 400) #21136

@cpear

Description

@cpear

New issue checklist

Task name

AzureFunctionApp@2

Task version

2

Issue Description

There seems to be an issue around the appsetting -SCM_DO_BUILD_DURING_DEPLOYMENT 0 in the AzureFunctionApp@2 task.

I made certain my template was configured properly, I ruled out any "technical issues" regarding values used for the variables, etc. Adding an additional setting breaks the deployment when combined with "SCM_DO_BUILD_DURING_DEPLOYMENT"

GOOD

appSettings: |
-PartnerConfigSettings $(PartnerConfigSettings)
-SCM_DO_BUILD_DURING_DEPLOYMENT 0

GOOD

appSettings: |
-PartnerConfigSettings $(PartnerConfigSettings)
-LoggerForWebhookCalls $(LoggerName)

FAIL

appSettings: |
-PartnerConfigSettings $(PartnerConfigSettings)
-LoggerForWebhookCalls $(LoggerName)
-SCM_DO_BUILD_DURING_DEPLOYMENT 0

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows 11

Relevant log output

##[error]Error: Failed to update App service '***' application settings. Error: BadRequest - Parameter name cannot be empty. (CODE: 400)

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions