Skip to content
Advertisement

Azure function deployment failed: “Malformed SCM_RUN_FROM_PACKAGE when uploading built content”

I have two Azure accounts. And I tried to deploy the same function to these two accounts (to the function apps). The deployment to the 1st account – successful, but to the 2nd account – failed.

The only big difference between the two accounts is that I do not have direct access to the resource group that the 2nd account’s function app uses (I have access to the resource group at the 1st account). May it be the reason why I can’t deploy the program to the function app at the 2nd account?

Deploy output of the function app at the 1st account:

JavaScript

Deploy output of the function app at the 2nd account:

JavaScript

The function app on the second account was just created before deployment process. I tried to deploy it to another function app on the same account – same error.

I’ve also tried the ways that have been mentioned in here.

I ran the command to the function app at the 2nd account:

JavaScript

The output was: output of --build remote The function app was created 2 days ago. Could this be caused if the resource group creation date was before the aforementioned August 1st, 2019? (I don’t know the date of resource group creation)

Then, I ran the command:

JavaScript

I got the error: outpu of --build local As for me there’s no sense in this error because this program deploys on the funcion app at the 1st account.

PS: Configurations on both function apps on both accounts are the same.

Any hints how to solve this problem are welcome.

Advertisement

Answer

The issue was in function app creation.

  • Deployment doesn’t work for function app that have been created through Azure Portal.
  • Deployment works for function app that have been created through Visual Studio Code.

*parameters were set the same for both options.

But i’m still interested in the reason why this difference of function app creation happens.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement