A minimal test project using SWA + Azure Functions + CosmosDB to demonstrate optional VNet integration.
- Azure Account (sign up for free)
- Azure Developer CLI
- Azure Functions Core Tools
Once you have the prerequisites, log in to your Azure account using the Azure Developer CLI:
azd auth login
azd up
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.
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