Error while Deploying Azure Function

Anonymous
2023-07-06T14:35:22.5333333+00:00

Hi,

I am trying to deploy Python Azure function through Vs code , but it throws below error

However it runs fine on another environment.

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Number of directories 137

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Number of ids (unique uids + gids) 1

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Number of uids 1

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001:     root (0)

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Number of gids 1

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001:     root (0)

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Creating placeholder blob for linux consumption function app...

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: SCM_RUN_FROM_PACKAGE placeholder blob scm-latest-xbi-fa-corelight-mdhub-q-we-001.zip located

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Uploading built content /home/site/artifacts/functionappartifact.squashfs for linux consumption function app...

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Failed to upload because Azure Storage responds 404.

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: The specified container does not exist.

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Generating summary of Oryx build

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Deployment Log file does not exist in /tmp/oryx-build.log

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build

7:54:51 PM xbi-fa-corelight-mdhub-q-we-001: Deployment Failed. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,414 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kara, Salih 190 Reputation points
    2023-07-06T14:41:03.1033333+00:00

    Hi Dubey Anshul,

    Hmm, the error message suggests that there is a problem with uploading the deployment package to your Azure Storage. Specifically, it mentions that the specified container does not exist, resulting in a 404 response from Azure Storage.

    To resolve this issue, you can try the following:

    1. Double check your Azure Storage Container: Please verify that the storage container specified for the deployment actually exists in your Azure Storage account. Double-check the container name and ensure it matches the one specified in your deployment configuration.
    2. Review Storage Account Access: It's important to ensure that the account you are using to authenticate with Azure has the necessary permissions to access and manage the storage account and its containers. Take a moment to verify the credentials and ensure they have the required permissions for the specified container.
    3. Retry the Deployment: If the container exists and the account has the necessary permissions, I suggest trying to redeploy the Azure Function from VS Code. Sometimes, the error could be transient, and retrying the deployment might resolve the issue.
    4. Verify Azure Storage Connectivity: Take a moment to confirm that the network connectivity from your environment to Azure Storage is stable and free from any restrictions or firewall issues. You can check if you can access Azure Storage directly using other tools or SDKs to validate the connectivity.
    5. Check VS Code Extensions: It's worth verifying that you have the latest version of the Azure Functions extension installed in your VS Code. Outdated or incompatible extensions can sometimes cause deployment issues.

    If the issue persists after following these steps, you may consider deploying the Azure Function using an alternative method, such as Azure CLI or Azure through the Portal itself. This can help isolate whether the problem is specific to the VS Code deployment workflow or if there are any other underlying issues

    ** Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.