/node-functions-vnet

A minimal test project using SWA + Azure Functions + CosmosDB to demonstrate optional VNet integration.

Primary LanguageBicep

node-functions-vnet

Open project in GitHub Codespaces

A minimal test project using SWA + Azure Functions + CosmosDB to demonstrate optional VNet integration.

Deployment

Prerequisites

Once you have the prerequisites, log in to your Azure account using the Azure Developer CLI:

azd auth login

Deploy without VNet or storage managed identity:

azd up

Enable storage managed identity:

azd env set USE_STORAGE_MANAGED_IDENTITY true
azd provision

Caution

Deployment of Function app with storage managed identity does not work using any CLI tool at the moment. You need to deploy it manually following this guide.

Deploy with VNet + storage managed identity:

Warning

This will use the new Azure Functions Flex Consumption plan, which is currently in preview. Only a few regions are supported for now, so you should use eastus for the location parameter.

azd env set USE_VNET true
azd up