Cannot read properties of undefined (reading 'isLinux')

OptimtriSAS 1 Reputation point

I am trying to deploy my azure function (developed in python) from local to Azure. When I press the button "Deploy to function app" I am getting now this error : Cannot read properties of undefined (reading 'isLinux')
Can someone help me on that topic ?

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

4 answers

Sort by: Most helpful
  1. Gent Stone 26 Reputation points

    You don't need to downgrade your VSCode. I solved this problem by doing the following:

    CMD/Ctrl-Shift-P to open the command palette
    search for and select "Deploy to Function App..."
    Select the handler you already attempted to create.

    If that doesn't work you can watch this video:

    5 people found this answer helpful.
    0 comments No comments

  2. CK 11 Reputation points

    Degrade your visual studio code version to "VSCodeUserSetup-x64-1.63.2". It will work.

    1 person found this answer helpful.

  3. ABE69 6 Reputation points

    Is there an official vs studio code bug for this?
    I am experiencing the same

  4. MuthuKumaranMurugaachari-MSFT 22,156 Reputation points

    @OptimtriSAS - Thank you for reaching out to Microsoft Q&A and reporting this issue.

    Community Update:
    We apologize for the inconvenience caused by this. We opened an issue #3369 in vscode-azurefunctions repo and after investigation, our product team found the cause was due to this change VS code 1.72. While they are working on the fix, you can follow the workaround below to unblock for now. You can track the progress of the fix here.

    Workaround: (shared in #3369)
    Option - 1:

    • Open Resources > Function App > <your_function_app>
    • Right-click the function app
    • Click "Deploy to Function App..."


    Option - 2:

    • Press F1 to open the Command Palette
    • Type >Azure Functions: Deploy to Function App...
    • Select Azure Functions: Deploy to Function App...
    • Follow the prompts to select your Function App


    Feel free to add a comment for any questions.