question

MohammedZahir-3333 avatar image
0 Votes"
MohammedZahir-3333 asked MohammedZahir-3333 commented

Create and run a new cloud function when a VM is not connected to any network


I have a question regarding func command. I am doing a test to see if we can create and run a new cloud function when a VM is not connected to any network. (the Azure Core Tools is already installed)

After disconnecting the VM from network, when I run func init or func new, I am getting this error. Is there any way to bypass checking the templates?

Failed to check update for Microsoft.Azure.WebJobs.ItemTemplates::4.0.2185: no NuGet feeds are configured or they are invalid.

I see that the func start works fine even its not connected to network.






azure-functionsdotnet-cli
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MohammedZahir-3333 ,

The function core tools would work even when they are not connected to the network. Could you please update the function core tools to the latest version and try again?
https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal%2Cbash#install-the-azure-functions-core-tools

0 Votes 0 ·
MohammedZahir-3333 avatar image MohammedZahir-3333 MughundhanRaveendran-MSFT ·

Thanks for your response. I am already using azure-functions-core-tools-4 version.

Not sure if there are any subversions. Please let me know which version to use.

0 Votes 0 ·
MohammedZahir-3333 avatar image MohammedZahir-3333 MughundhanRaveendran-MSFT ·

@MughundhanRaveendran-MSFT Could you please advise on this.

Thanks
Zahir

0 Votes 0 ·

@MohammedZahir-3333 , I am not able to reproduce this issue at my side. Even when you get this error message, does the function and class files get created?

0 Votes 0 ·
Show more comments

1 Answer

MughundhanRaveendran-MSFT avatar image
0 Votes"
MughundhanRaveendran-MSFT answered MohammedZahir-3333 commented

I am summarizing the details discussed in the comments and providing an answer.

The warning message can be ignored as the function host is starting and the http triggered function is running successfully. We see this message as the core tools might be checking for updates and failing due to lack of network connectivity.

Please note that function core tools would work on local environment even when there is no internet connection. Please make sure to use latest version of function core tools
https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal%2Cbash#install-the-azure-functions-core-tools

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your help Mughundhan, We assumed it as an error due to the red color of the message, might be your team can check, if it is a warning message then it has to be in yellow color or at least an indication that it is just warning message. Thanks for the support.

0 Votes 0 ·