I am trying to deploy my function to azure function app using VS code. But an error is raised. Following is the error raised: "Internal error: Expected value to be neither null nor undefined: newSiteName"

Zeeshan Ahmad Abbasi 35 Reputation points
2024-12-31T13:16:20.1833333+00:00

It was working fine till morning. But now it is raising this error. Even when I am creating it from scratch. It is raising this error when I try to deploy using Azure Functions extension from VS code.

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

Accepted answer
  1. Khadeer Ali 2,360 Reputation points Microsoft Vendor
    2024-12-31T18:18:58.7333333+00:00

    @Zeeshan Ahmad Abbasi ,

    Welcome to Microsoft Q&A Platform!

    Thank you for bringing this to our attention. Based on the error message, we recommend clearing the Azure Functions extension cache in Visual Studio Code and attempting the deployment again.

    Here are the steps to clear the cache:

    1. Open Visual Studio Code.
    2. Press Ctrl + Shift + P (or Cmd + Shift + P on Mac) to open the Command Palette.
    3. Type Azure: Clear Cache and select it from the list.
    4. Restart Visual Studio Code.
    5. Attempt the deployment again.

    If the issue persists, please let us know, and we’ll assist you further.

    1 person 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.