-
Notifications
You must be signed in to change notification settings - Fork 0
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
AzureFunctionApp@2 added support for Flex Consumption #1
Comments
Thanks i will update this. |
@sven5 i updated the page based on the documentation. I cannot verify if it also works with the build steps i have written down, as I don't have access to my test setup at the moment. Would you happen to know? |
I had no succes implementing the original task, and also i stumbled on (slightly related) issues: Azure/azure-functions-host#10714 and Azure/azure-functions-host#10643 . |
Hi @erwinkramer, These are my build steps: steps:
- task: DotNetCoreCLI@2
displayName: 'dotnet build $(buildConfiguration)'
inputs:
command: 'build'
projects: ${{ parameters.buildSolution}}
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'dotnet publish $(buildConfiguration)'
inputs:
command: publish
projects: ${{ parameters.buildSolution}}
publishWebProjects: false
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifacts'
inputs:
PathtoPublish: '$(Build.artifactStagingDirectory)'
ArtifactName: '${{ parameters.publishArtifactName }}'
publishLocation: 'Container'
- task: AzureFunctionApp@2
displayName: 'Deploy to Function App'
inputs:
azureSubscription: ${{ parameters.azureServiceConnection }}
appType: ${{ parameters.appType }}
resourceGroupName: ${{ parameters.azureResourceGroupName }}
appName: ${{ parameters.funcName }}
isFlexConsumption: ${{ parameters.isFlexConsumption }}
package: '$(Build.ArtifactStagingDirectory)/**/*.zip'
The |
Cool. What's the appType there? |
Looks like it's working for me now as well. I updated the readme accordingly. Thanks. |
it's |
Yes thanks, already added that value in the readme. |
The AzureFunctionApp@2 pipeline task now supports FC1 plans.
See doc: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-function-app-v2?view=azure-pipelines
The text was updated successfully, but these errors were encountered: