Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Function App Deploy from Azure Build Pipeline: 'credentials' cannot be null

I am trying to create a build pipeline in Azure DevOps to deploy an Azure Function Application automatically as part of a continous integration pipeline. When the Function App Deploy step is run, the step fails with 'credentials' cannot be null.

Does anyone know why this happens?

My Build Pipeline:

Build Pipeline

The Log output when the step runs:

Log Output

The only thing that I think that it can be is the Azure Resource Manager subscription which I am using Publish Profile Based Authentication however I have managed to create a similar pipeline for a web application with a deploy option using this authentication and it worked successfully. I just cannot deploy the function application.

like image 200
CDrnly Avatar asked Sep 06 '25 03:09

CDrnly


1 Answers

This same problem also ocurrs with publishing web apps I found. There are two different tasks that can be used for web apps to publish and you have to use the right one.

There is a task called Azure Web App Deploy that works.

enter image description here

Also a task called Azure App Service Deploy that doesn't.

enter image description here

This is with Publish Profile Based Authentication.

I found that to deploy the Function Application you can also use the Azure Web App Deploy task and it seems to work.

like image 77
CDrnly Avatar answered Sep 07 '25 21:09

CDrnly