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

Mohammed, Zahir 41 Reputation points

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 Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,047 questions
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
295 questions
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,226 Reputation points

    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

0 additional answers

Sort by: Most helpful