Complete the code to create an Azure Function app with the correct runtime.
az functionapp create --resource-group myResourceGroup --consumption-plan-location westus --runtime [1] --name myFunctionApp --storage-account mystorageaccountAzure Functions supports multiple runtimes. Here, 'python' is the correct runtime to specify for a Python function app.
Complete the code to add a trigger to an Azure Function that responds to HTTP requests.
func new --name HttpTrigger --template [1] --authlevel anonymousThe HTTP trigger allows the function to be invoked by HTTP requests, which is common in serverless patterns.
Fix the error in the Azure Function app settings to enable Application Insights for monitoring.
az functionapp update --name myFunctionApp --resource-group myResourceGroup --set [1]=trueThe correct setting to enable Application Insights is 'applicationInsights.enabled'.
Fill both blanks to define a serverless function that triggers on a new blob upload and logs the blob name.
def main(myblob: func.InputStream): logging.info(f"Processing blob: [1]") blob_content = [2].read()
The blob's name is accessed with 'myblob.name', and the content is read from 'myblob'.
Fill all three blanks to configure an Azure Durable Function orchestrator that calls two activity functions sequentially.
import azure.functions as func import azure.durable_functions as df async def orchestrator_function(context: df.DurableOrchestrationContext): output1 = await context.call_activity('[1]', None) output2 = await context.call_activity('[2]', output1) return [3] main = df.Orchestrator.create(orchestrator_function)
The orchestrator calls 'ActivityFunctionA' first, then 'ActivityFunctionB' passing the first output, and finally returns the second output.