microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
290 stars 131 forks source link

All function apps show Error. Could not resolve resources <resourceid of function> #4111

Closed jrudley closed 2 months ago

jrudley commented 2 months ago

This is on any subscription where a function exists. I have uninstalled/installed vscode and extensions. image

Version: 1.88.1 (system setup) Commit: e170252f762678dec6ca2cc69aba1570769a5d39 Date: 2024-04-10T17:41:02.734Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.20348

Azure Functions v1.14.2

This was working fine this morning then around lunch they all started showing the Error above. I am in Azure Government.

I can reproduce this. I built a new azure vm, installed the Azure Tools extension and tried to browse the function. Same issue.

alexweininger commented 2 months ago

This seems like a service related issue. Could you try and downgrade to the previous version of the Azure Resources, and Azure Functions extensions?

Also, is the experience on the portal still working as expected?

jrudley commented 2 months ago

Yes, the portal development works just fine, just using vs code for deployment is not. I will try that and see how it goes. I am also opening a case up. Thanks

On Mon, Apr 29, 2024 at 4:21 PM Alex Weininger @.***> wrote:

This seems like a service related issue. Could you try and downgrade to the previous version of the Azure Resources, and Azure Functions extensions?

Also, is the experience on the portal still working as expected?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-azurefunctions/issues/4111#issuecomment-2083694900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOYIS2H6BF66JBV3OMXY7TY722UBAVCNFSM6AAAAABG672SC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGY4TIOJQGA . You are receiving this because you authored the thread.Message ID: @.***>

vdmazahreh commented 2 months ago

We are currently facing the same issue.

1- macOS. 2- Contributor role present. 3- Issue happens across team members. 4- The latest versions for Azure Resources and Azure Functions are very recent and we believe the issue started around that time. 5- App services and Static web apps are facing the same issue. However, containers apps and service busses for example work fine. 6- Azure Resources extension works as expected when uninstalling Azure Functions extension. Same thing for other resources. 7- FAs are spread across different resource groups.

Things we've tried so far: 1- Downgrading Azure Resources and Azure Functions to previous version. 2- Uninstalling and reinstalling package. 3- Updating both Azure Resources and Azure Functions extensions to the latest versions 0.8.6 and 1.14.2 respectively.

test

yashdhanore commented 2 months ago

We are facing the same issue on Mac. Have tried all the steps mentioned by @vdmazahreh Got help from Microsoft Support also about this but even he couldnt help much in this case we tried several things.

alexweininger commented 2 months ago

@yashdhanore and @vdmazahreh are you also using a sovereign cloud like Azure US Government?

yashdhanore commented 2 months ago

@yashdhanore and @vdmazahreh are you also using a sovereign cloud like Azure US Government?

No we are not using Azure government

steven-keller commented 2 months ago

I'm getting the same issue, on Azure US Government.

alexweininger commented 2 months ago

Can you try using this VSIX and see if it fixes the issue? vscode-azurefunctions-1.14.3-alpha.0.vsix.zip

jrudley commented 2 months ago

It did not work for me. image image image

alexweininger commented 2 months ago

Thanks for trying that out so quickly. I have another one for you try. Sorry for the back and forth, I just can't reproduce the issue.

vscode-azurefunctions-1.14.3-alpha.1.vsix.zip

jrudley commented 2 months ago

That fixed it! Let me do some tests and will report back.

On Tue, Apr 30, 2024 at 11:49 AM Alex Weininger @.***> wrote:

Thanks for trying that out so quickly. I have another one for you try. Sorry for the back and forth, I just can't reproduce the issue.

vscode-azurefunctions-1.14.3-alpha.1.vsix.zip https://github.com/microsoft/vscode-azurefunctions/files/15168222/vscode-azurefunctions-1.14.3-alpha.1.vsix.zip

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-azurefunctions/issues/4111#issuecomment-2085960856, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOYISYQRNSJK772HH7L23DY77DP7AVCNFSM6AAAAABG672SC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBVHE3DAOBVGY . You are receiving this because you authored the thread.Message ID: @.***>

jrudley commented 2 months ago

My deployments and tests are passing. Thanks for a quick fix.

On Tue, Apr 30, 2024 at 12:21 PM James Rudley @.***> wrote:

That fixed it! Let me do some tests and will report back.

On Tue, Apr 30, 2024 at 11:49 AM Alex Weininger @.***> wrote:

Thanks for trying that out so quickly. I have another one for you try. Sorry for the back and forth, I just can't reproduce the issue.

vscode-azurefunctions-1.14.3-alpha.1.vsix.zip < https://github.com/microsoft/vscode-azurefunctions/files/15168222/vscode-azurefunctions-1.14.3-alpha.1.vsix.zip>

— Reply to this email directly, view it on GitHub < https://github.com/microsoft/vscode-azurefunctions/issues/4111#issuecomment-2085960856>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAOYISYQRNSJK772HH7L23DY77DP7AVCNFSM6AAAAABG672SC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBVHE3DAOBVGY>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-azurefunctions/issues/4111#issuecomment-2086097351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOYISZC7WWK2ILKXTBPQPDY77HKDAVCNFSM6AAAAABG672SC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBWGA4TOMZVGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

alexweininger commented 2 months ago

Hi, could you try this one last time. We want to double check before we release. Thanks!

vscode-azurefunctions-1.14.3-alpha.2.vsix.zip

jrudley commented 2 months ago

image Still works for me. Deployments succeeding and can interact with the function within vscode. image

alexweininger commented 2 months ago

Thank you very much for testing these. Sorry that it wasn't working. We are going to release the fix today.

zihanfangms commented 1 month ago

Hi @alexweininger , I'm facing the same issue, and I tried to install the vscode-azurefunctions-1.14.3-alpha.2.vsix, but it still doesn't work.