Cannot read properties of undefined (reading 'isLinux')

OptimtriSAS 1 Reputation point
2022-10-07T15:27:00.483+00:00

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.
5,194 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Gent Stone 26 Reputation points
    2022-10-10T23:24:00.853+00:00

    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: https://www.youtube.com/watch?v=RD3vUCdRf8o&t=13s

    5 people found this answer helpful.
    0 comments No comments

  2. CK 11 Reputation points
    2022-10-07T18:23:12.94+00:00

    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
    2022-10-10T07:30:21.95+00:00

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


  4. MuthuKumaranMurugaachari-MSFT 22,361 Reputation points
    2022-10-13T21:18:22.303+00:00

    @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..."

    250274-image.png

    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

    250252-image.png

    Feel free to add a comment for any questions.


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.