How can I manually fail an Azure Function?

Description: I have an Azure Function on a timer trigger that performs multiple steps. Each step has its own try/catch block to swallow any exceptions and log them. These steps are not dependent on each other, therefore I do not want an exception to stop the entire function. try { await StepOneAsync(); } catch (Exception… Read More How can I manually fail an Azure Function?

Azure Function fails to execute with Table binding: connection refused

I’m learning about Azure Functions and am trying to post an object using Azure’s Table binding. Here is the code for my Azure function: [FunctionName("Table_CreateTodo")] public static async Task<IActionResult> Post( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "todo")] HttpRequest req, [Table("todos", Connection ="AzureWebJobsStorage")] IAsyncCollector<TodoTableEntity> todoTable, ILogger log) { try { string requestBody = await new StreamReader(req.Body).ReadToEndAsync(); log.LogInformation($"Request Body:… Read More Azure Function fails to execute with Table binding: connection refused

Why Consumption Azure Functions create an App Service Plan and Storage Account?

When you create an Azure Function Consumption App the platform automatically creates an App Service Plan which is the free one. Isn’t the consumption Functions meant to be scalable and serverless so you don’t have to deal with server farms? >Solution : Please see this documentation: Azure Functions Consumption plan hosting. When you’re using the… Read More Why Consumption Azure Functions create an App Service Plan and Storage Account?