-
Notifications
You must be signed in to change notification settings - Fork 136
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
Cannot deploy -- "Internal error: Expected value to be neither null nor undefined: resourceTypeData" #3620
Comments
Does this only reproduce when you're running WSL Ubuntu? |
No, I just tested and confirmed it happens on VSCode ssh into DSVM host too. |
Are you trying to create the Function app in a special Azure environment like a sovereign cloud or Arc? |
I am also seeing this error following: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-powershell#configure-your-environment It happens soon after I choose the language, in my case it's powershell. OS: Windows with VSCode |
Have you been able to create Function Apps previously? The error is happening here. Seems like something is wrong with the providers. |
I have created Func Apps before but not for Typescript. First time, testing out Typeescript apps. |
When creating a Function App, we lookup the following resource types on these providers:
I'm not sure in what scenarios these providers don't include those resources types. Could you try making the request using the "Try it" feature on the Azure REST API documentation? https://learn.microsoft.com/en-us/rest/api/resources/providers/get?tabs=HTTP#code-try-0 Make sure to select the same subscription you were using in the extension, and fill in the Once you make the request, verify that the Please do the same verification for the |
Follow up: you can also follow this guide for how to check which resource providers you have registered, and which resource types they support. This might be easier than using the Try It feature. 😄 edit:
If you could run these commands and share the output, or just verify that the expected resource types are there, that would help a lot! Note: it seems like the results can vary depending on api version. Might be caused by that. |
Update: Plenty of Microsoft users are running into this issue, however, I haven't seen an external customer report this. The issue is caused by a bug in the ARM service where the See this IcM for more details https://portal.microsofticm.com/imp/v3/incidents/details/381037873 |
|
@loomlike sorry I missed this reply, are you still experiencing this issue? If so, I think your subscription needs to be mended by the ARM team. |
Is "resourceGroups" included in these results? I'm assuming no since the extension doesn't think so 😢
Thanks for that info, this is an Microsoft account issue. You'll need to unregister and reregister the RP to fix it.
|
Yes it is.
|
Can you make sure that you're signed in with the same account in the extension and on the CLI. |
It is the same account. I just signed out and signed back in and problem still exists. |
Update! It just occurred to me that I should specify the specific subscriptionId on the |
Ok, that makes a lot more sense. Thanks for the update. Let me know if reregistering the RP works for you. |
Not sure how relevant it is since the issue was quite some time ago, and closed, however i noticed i had the same error. |
It's 2024 and I am still having this problem. |
"Internal error: Expected value to be neither null nor undefined: id" |
Facing the same problem when deploying the existing azure function. Internal error: Expected value to be neither null nor undefined: newSiteName |
Hi @ManiKarthik-v, that is actually a separate issue. Could you open a new issue and include repro steps? |
I was getting the same issue; ended up changing the configuration of the FA in Azure to set 'SCM Basic Auth Publishing Credentials' = On. Then I was able to deploy from VS Code by using this command in the terminal;
|
i faced same issue when using the deploy from menu -> "Internal error: Expected value to be neither null nor undefined: newSiteName"
i use azure functions "Version 1.16.1" |
Can you share a screenshot or specify what menu you are using to deploy? |
Facing the same With an existing function app, I deployed countless times through VS Code in the past. It looks like something recently changed in Azure. This is the menu i'm using to deploy This worked for me for months if not years until today |
I am facing the same issue as @Balthazaar. It was working perfectly fine until yesterday. |
I have the same issue, worked fine a couple of days ago. I need this urgently... |
Until we release a fix for this issue the workaround is to revert the Azure Resources extension from v0.10.0 to v0.9.9. You can do that by using "Install specific version..." shown in the screenshot below. Edit: I've found a better fix! See #3620 (comment) |
downgrading Azure Resources Extension from 0.10.0 to 0.9.0 worked for me. |
Thanks @alexweininger, downgrading Azure Resources to 0.9.9 worked for me, I was able to deploy my Function App. |
Does the error occur right after selecting a Function app to deploy to? Or does it happen during the deploy process? |
I was finally able to reproduce the issue. Turns out it only reproduces on VS Code - Stable, and not VS Code - Insiders. So that's another workaround. |
Well it's actually a new issue compared to the original post but all the conversation has happened here 🤷 |
Thanks @alexweininger, working on VSCode 1.96.0 with Az Resources 0.99. |
I have a fix in the works. Hoping to release the full fix today. microsoft/vscode-azureresourcegroups#1000 |
downgrading Azure Resources Extension worked for me too! |
Ditto, after I restarted once I downgraded. |
We just released Azure Resources v.0.10.1 which includes the fix for this issue. |
I just upgraded to 0.10.1, and it's working again. Many thanks for the swift response. |
When deploy to Azure, it throws the error:
Steps:
Envs:
The text was updated successfully, but these errors were encountered: