Error : "The deployment ID couldn't be found. Please try again." when deploying function to a Function APP

Jawher Khalifa 40 Reputation points
2024-10-13T12:28:47.8566667+00:00

i have this problem when deploying to a Function App in Azure from VS Code , tried with different function and worked successfully to other Function Apps but this one won't. the plan is Flex Consumption and the error won't tell me anything specific. The App is deployed and running in azure portal:

User's image

this is an example of a successful deployment to another app ( same plan flex consumption ) :

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,940 questions
Azure | Azure Startups
{count} votes

2 answers

Sort by: Most helpful
  1. Abiola Akinbade 29,570 Reputation points Volunteer Moderator
    2024-10-13T18:03:13.32+00:00

    This points to issues during the remote build. I will recommennd the steps here:

    • Ensure that the Azure Function App credentials (like the publish profile) are valid. Do an az login
    • You could also check the Logs in Application Insights if configured for it.
    • You can also try with zip deployment just to test:
    az functionapp deployment source config-zip --resource-group <resource-group> --name <function-app-name> --src <zip-file-path>
    
    

    **
    You can mark it 'Accept Answer' and 'Upvote' if this helped you**

    Regards,

    Abiola


  2. Panu Oksala 51 Reputation points MVP
    2025-04-25T05:53:15.0066667+00:00

    This error occurs if your Function App is in stopped state, so please verify that app is in started state before publish.

    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.