Complete the code to create an Azure Function App using serverless compute.
az functionapp create --resource-group myResourceGroup --consumption-plan-location westus --runtime python --name myFunctionApp --storage-account [1]The storage account is required to create a Function App in Azure serverless. It stores code and triggers.
Complete the code to create a serverless Azure Function with the correct trigger type.
func new --name HttpTrigger --template [1]The HTTP trigger is a common serverless trigger that runs functions on web requests.
Fix the error in the Azure CLI command to scale a serverless function app automatically.
az functionapp plan update --name myFunctionAppPlan --resource-group myResourceGroup --sku [1]The Y1 SKU is the consumption (serverless) plan that enables automatic scaling.
Fill both blanks to configure an Azure Function App to use serverless and enable monitoring.
az functionapp create --resource-group myResourceGroup --plan [1] --name myFunctionApp --storage-account myStorageAccount --runtime dotnet --app-insights [2]
The ConsumptionPlan enables serverless scaling, and myAppInsights enables monitoring with Application Insights.
Fill all three blanks to define a serverless Azure Function with an HTTP trigger and environment variable.
func init MyFunctionProj --worker-runtime [1] func new --name HttpTrigger --template [2] --authlevel anonymous az functionapp config appsettings set --name myFunctionApp --resource-group myResourceGroup --settings [3]=Production
The worker runtime is python, the trigger template is HTTP trigger, and the environment variable key is ENVIRONMENT.