/arm-templates-sample-for-serverless

This is a sample of ARM templates for serverless.

Primary LanguageJavaScriptMIT LicenseMIT

ARM templates sample for serverless

Structure

Structure

Key points

App service (Azure Functions)

  • Do not allow to access the functions from the Internet
  • The functions access to each service endpoints via the delegated subnet
    • Storage Accounts
    • Cosmos DB
  • Use Key Vault reference in App settings

Virtual machine

  • Developers can access the VM through Azure Bastion only
  • The VM can access to Azure Functions as a service endpoint

How to deploy this resources

$RESOURCE_GROUP="<Resource group name>"
$LOCATION="japaneast"

$TEMPLATE_URL="https://raw.githubusercontent.com/dzeyelid/arm-templates-sample-for-serverless/master/arm-templates"

az group create `
  --name ${RESOURCE_GROUP} `
  --location ${LOCATION}

az group deployment create `
  --resource-group ${RESOURCE_GROUP} `
  --name entry `
  --template-uri ${TEMPLATE_URL}/00_deploy.json `
  --parameters @arm-templates/parameters.json

To deploy swagger UI application to check operation, refer below.

$PREFIX="<Your prefix string>"

cd api-specs/host-swagger-ui
npm install
npm run build

cd build
az webapp up `
  --resource-group ${RESOURCE_GROUP} `
  --plan ${PREFIX}-operation-check-plan `
  --name ${PREFIX}-operation-check-webapp `
  --html

Getting started with Deploy button

Click me! :)

Deploy to Azure