I've created my pipeline in Azure DevOps for my Azure Functions project. The first interesting problem is the release is not starting when there is a new build ready. I can't understand why.
I can fire the release manually using the build I have just created.
How you can see, the release has success. The pipeline is like that:
steps:
- task: AzureFunctionApp@1
displayName: 'Deploy Azure Function App'
inputs:
azureSubscription: '$(Parameters.AzureSubscription)'
appType: '$(Parameters.AppType)'
appName: '$(Parameters.AppName)'
With Kudu I can inspect the wwwroot folder on the server and I find, as I expected, all binary files for this function. The problem is, there is no functions available in the portal and I can call them.
How you can see in the Azure Portal there is not functions available.
Update
I have just noticed there is not the right structure on the file system from the release. I think I did something wrong in the configuration of the pipeline: I select :
- Path to project(s):
**/*.csproj
- Arguments:
-o publish_output
(to create the build in the publish_output folder)
Then I create the zip to deploy in the release with this parameters:
- Root folder or file to archive:
$(System.DefaultWorkingDirectory)/publish_output
PS: what is the difference between System.ArtifactsDirectory
and Build.ArtifactStagingDirectory
?