Skip to content

Example azure function application with automatic refreshing app configuration

License

Notifications You must be signed in to change notification settings

juulhobert/az-function-with-app-configuration

Repository files navigation

Azure function with app configuration

Overview

This repository contains a c# Azure Function (in-process) project showcasing the use of Azure App Configuration. The purpose of this demonstration is to illustrate how to implement an application that dynamically receives updates to its configuration without requiring a restart.

Prerequisites

Getting started

  1. Clone the repository
git clone https://github.com/juulhobert/az-function-with-app-configuration.git
  1. Modify the main.bicepparam file to your needs

  2. Deploy the Azure resources

.\deploy.ps1 <resource-group-name> [subscription-id]
  1. Open a browser and navigate to the url https://<function-app-name>.azurewebsites.net/hello-world

Demo details

The demo consists of an Azure Function that is triggered by an HTTP request. The function will return the string Hello <name> where <name> is a value retrieved from Azure App Configuration. The key feature demonstrated here is the automatic refreshing of the application configuration without the need for a manual restart. The refresh happens instantly when the configuration is updated in Azure App Configuration due to the use of Azure Event Grid.

Demo can be visited at https://<function-app-name>.azurewebsites.net/hello-world

Learn more

Contribute

Feel free to contribute to this repository by creating a pull request.

License

The project is licensed under the apache-2.0 license. See LICENSE for details.

About

Example azure function application with automatic refreshing app configuration

Topics

Resources

License

Stars

Watchers

Forks