This is a sample to enable public Internet access for an Azure Function Premium app with a virtual network private endpoint.
This repo is enabled to use the Azure Developer CLI.
-
Install the Azure Developer CLI
-
Use the Azure Developer CLI to get a local copy of the repo.
azd init --template mcollier/azure-function-private-endpoint-public-access
-
When prompted, provide a name for the environment, select the Azure region, and select your Azure subscription.
-
Create two new environment variables for the Virtual Machine admin username and password.
azd env set AZURE_VM_ADMIN_USERNAME [YOUR-USERNAME] azd env set AZURE_VM_ADMIN_PASSWORD [YOUR-PASSWORD]
-
Provision the Azure resources.
azd provision