0

I am looking to disable and enable a azure function using feature flags. Any idea?

Sap_vr
  • 2,379
  • 2
  • 17
  • 17
  • Could you provide the information what you have tried and any error you got or stuck at somewhere where you didn't know how to proceed further? –  Nov 19 '22 at 09:59
  • I haven’t tried yet. I am looking for whether is it possible or not. – Sap_vr Nov 19 '22 at 19:53

1 Answers1

0

I am looking to disable and enable a azure function using feature flags.

I believe we can do disabling and enabling the functions in an Azure Function Project using feature flags in the below process:

  1. We have REST APIs to disable the function programmatically in the Azure Function app where Mayank has given the REST API Link along with the MS Doc for more information and steps for how to use in Code in Q&A Forum.
  2. Feature Flags can be used programmatically also with the help of Microsoft.Extensions.Configuration.AzureAppConfiguration, Microsoft.FeatureManagement packages.

Feature Manager instance should be kept in DI Class by using the FunctionsStartup class.

There is a boilerplate code given by Microsoft on using the feature flags in Azure Functions to change the functionality in runtime.