Deploying to an Azure Function connected to a VNet

Viewed 52

I've created a v4 Azure Function with JavaScript and Node 16. The storage account used by the Azure Function is connected to a VNet. The Azure Function is also connected to the same VNet. My computer is not connected to the VNet.

I'm able to deploy to the Azure Function using the VSCode Azure Functions extension. However, when I try to deploy using the Azure Function Core Tools (v4.0.4736) via the command line, it fails to upload. Here's my command

func azure functionapp publish MyFunctionApp

If I disable the VNet Route All setting for the Azure Function, then the deployment works.

Is it possible for me to create a deployment script that uses the same approach as the VSCode deployment functionality?

0 Answers
Related