Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
4 of 7 tasks
jamie-oconnell opened this issue Feb 20, 2025 · 0 comments
Open
4 of 7 tasks

Comments

@jamie-oconnell
Copy link

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

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

No branches or pull requests

2 participants