Skip to content

[BUG]: AzureFunctionApp@2 deployment type option error when deployment type not included #20866

Open
@jamie-oconnell

Description

@jamie-oconnell

New issue checklist

Task name

AzureFunctionApp@2

Task version

No response

Issue Description

With no deployment type defined in AzureFunctionApp@2 inputs the task throws an error.

  - task: AzureFunctionApp@2
    inputs:
      azureSubscription: prod
      runtimeStack: "NODE|20"
      appType: functionAppLinux
      appName: "app1"
      package: $(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip

Results in The Deployment Type option does not apply for Linux Consumption.

Reverting to the same configuration on v1 works fine.

  - task: AzureFunctionApp@1
    inputs:
      azureSubscription: prod
      runtimeStack: "NODE|20"
      appType: functionAppLinux
      appName: "app1"
      package: $(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip

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

Ubuntu

Relevant log output

The Deployment Type option does not apply for Linux Consumption.

Full task logs with system.debug enabled

No response

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