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

Mohammed, Zahir 46 Reputation points
2022-11-14T21:20:56.603+00:00

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.
4,642 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
328 questions
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,451 Reputation points
    2022-11-28T11:57:35.85+00:00

    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


0 additional answers

Sort by: Most helpful