Error while Deploying Azure Function

Filippo Cardoso 0 Reputation points
2024-01-30T18:07:25.0033333+00:00

I am trying to deploy Python Azure function through Vs code , but it throws below error However it runs fine on my environment.

Uploading built content /home/site/artifacts/functionappartifact.squashfs for linux consumption function app...
2:58:17 : Failed to upload because Azure Storage responds 0.
2:58:17 PM : Name or service not known
2:58:17 PM : Generating summary of Oryx build
2:58:17 PM : Deployment Log file does not exist in /tmp/oryx-build.log
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,570 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,856 Reputation points Microsoft Employee
    2024-02-01T00:03:33.9766667+00:00

    Hi @Filippo Cardoso - Thanks for confirming that the storage setting is present in the local.settings.json file. Based on the details you've shared, the root cause is likely the following:
    2:58:17 : Failed to upload because Azure Storage responds 0. which occurred when the deployment process attempted to upload the Functions .squashfs artifact to the designated storage account:
    Uploading built content /home/site/artifacts/functionappartifact.squashfs for linux consumption function app...

    As such, we recommend methodically verifying the required configurations and permissions about the Storage account: Storage considerations for Azure Functions

    Here's a similar thread: https://learn.microsoft.com/en-us/answers/questions/1325735/error-while-deploying-azure-function If the issue persists, feel free to let me know in the comments below and we'd be happy to help.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.