Emiel Van Belle, Glad that you are able to resolve the issue by updating your yaml.
Follow below steps to modify the name of .zip:
- Specify the name of the
.zip
file using the--output
argument in Publish step. You might also need to use a custom name for the.zip
archive. - After creating the
.zip
, add its reference with the custom name in theAzureFunctionApp@2
deployment task.
Modify the DotNetCoreCLI@2
task:
- task: DotNetCoreCLI@2
inputs:
command: publish
arguments: "--configuration Release --output $(Build.ArtifactStagingDirectory)/SilverfinTokenManager_custom.zip"
projects: "**/*.csproj"
publishWebProjects: false
And then use this custom name in AzureFunctionApp@2
task:
- task: AzureFunctionApp@2
inputs:
azureSubscription: "Authenticators"
appType: functionApp
appName: "func-silverfintokenmanager-live"
package: "$(System.ArtifactsDirectory)/drop/SilverfinTokenManager_custom.zip"