Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to deploy to Azure Functions #4235

Open
CloudDumbo opened this issue Aug 17, 2024 · 10 comments
Open

Unable to deploy to Azure Functions #4235

CloudDumbo opened this issue Aug 17, 2024 · 10 comments
Labels
info-needed See https://aka.ms/azcodeissuereporting

Comments

@CloudDumbo
Copy link

CloudDumbo commented Aug 17, 2024

Does this occur consistently? Yes
Repro steps:

  1. Open Function App under Azure Resources

Action: resolveResource
Error type: SubscriptionNotFound
Error Message: The subscription 'redacted:id' could not be found.

Trying to access the function apps from the Azure tab shows: "Could not resolve resource"

Version: 1.13.3
OS: linux
OS Release: 5.15.146.1-microsoft-standard-WSL2
Product: Visual Studio Code
Product Version: 1.92.2
Language: en

Call Stack
handleErrorResponse extension.bundle.js:2:3016648
deserializeResponseBody extension.bundle.js:2:3017375
@simondsjt
Copy link

simondsjt commented Aug 20, 2024

I have the same issue - I can't deploy azure functions from VS Code. I can add them through the portal but

My error message is:

Could not resolve resource "/subscriptions/"

image

Version: 1.92.0 (system setup)
Commit: b1c0a14de1414fcdaa400695b4db1c0799bc3124
Date: 2024-07-31T23:26:45.634Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22635

My team noticed this on Friday 8/16

@nturinski
Copy link
Member

Hi @CloudDumbo & @simondsjt

Thanks for reporting this issue. I think we have fixed this issue, but if you could help us test that our fix actually worked, it would be greatly appreciated.

Please follow these steps:

  1. Download the zip file artifact from here: https://github.com/microsoft/vscode-azurefunctions/actions/runs/10496126089/artifacts/1839129228
  2. Extract the .vsix file from the zip file
  3. In VS Code, hit F1 > Extensions: Install from VSIX
  4. Navigate to vscode-azurefunctions-1.15.2-alpha.1.vsix
  5. Install and reload VS Code

@simondsjt
Copy link

That did not resolve my issue.

@nturinski
Copy link
Member

I see. Could you try downgrading the Azure Resources extension from v0.9.2 to v0.9.1? There was a change in there that may be impacting your deployments.

Could you also give me some more details about the deployment error? About how many Function apps do you have in that subscription?

@simondsjt
Copy link

Downgrading the Azure Resource extension to v0.9.1 seemed to resolve the issue.

We have 9 Azure Functions in a government subscription.

@CloudDumbo
Copy link
Author

it worked for me too. Thanks!

@nturinski
Copy link
Member

@CloudDumbo Glad that it is working now!

Did you downgrade the Resources extension to v0.9.1 or did upgrade Functions to v1.15.3?

@CloudDumbo
Copy link
Author

CloudDumbo commented Aug 28, 2024

I downgraded the Resources extension to v0.9.1 and used v1.15.2-alpha that you sent

@nturinski
Copy link
Member

Could you try upgrading Resources back to v0.9.2 and Functions to v1.15.3? I believe that should have fixed your issue 😄

@nturinski nturinski added the info-needed See https://aka.ms/azcodeissuereporting label Aug 28, 2024
@CloudDumbo
Copy link
Author

Hi. My coworker was using 0.9.4 and 1.15.3 and it was still broken. we rolled back to 0.9.2 and it didnt work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed See https://aka.ms/azcodeissuereporting
Projects
None yet
Development

No branches or pull requests

3 participants