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.
- Clone the repository
git clone https://github.com/juulhobert/az-function-with-app-configuration.git
-
Modify the
main.bicepparam
file to your needs -
Deploy the Azure resources
.\deploy.ps1 <resource-group-name> [subscription-id]
- Open a browser and navigate to the url
https://<function-app-name>.azurewebsites.net/hello-world
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
Feel free to contribute to this repository by creating a pull request.
The project is licensed under the apache-2.0 license. See LICENSE for details.