1

We are facing an issue while trying to deploy a function app via the dotnet publish command line. All other apps publish successfully. The only difference is that this is a function app while the others are app services.

This is the pubxml:

PUBXML

This is the command:

Command

and this is the outcome:

Outcome

It seems it builds the project but never uploads it.

Any help please?

1 Answers1

-1

Thank you Andy posting your suggestion as an answer to help other community members.

"I have an MSBuild command line that is working to deploy my .NET Core 2.1 Function project:

msbuild /p:DeployOnBuild=True /p:PublishProfile=somename.pubxml /p:Configuration=Release

It is, however, worth noting the following:

General .NET Core publishing notes

  1. If you miss-spell the publish profile name, it will silently skip deployment (no warning or error).

Differences between ASP. NET Core and .NET Core Functions deployment

  1. If you use 'dotnet publish', it will always skip deployment.

  2. If you don't specify /p:DeployOnBuild=True, it'll skip deployment."

Please refer the below link for more information: MS DOC: Create a C# function in Azure from the command line

AjayKumarGhose
  • 4,257
  • 2
  • 4
  • 15
  • I'm getting "No se especificó un valor para la tarea "ZipDeployTask" para el parámetro "DeploymentPassword" requerido." – Zaha Apr 18 '22 at 23:01