DurableFunctionsMonitor 4.1
-
Now you can install DFM as a NuGet package into your .Net Core Functions project:
dotnet add package DurableFunctionsMonitor.DotNetBackend
- Make sure
AzureWebJobsStorage
config setting is set correctly - it should point to a Storage where your TaskHub(s) reside. - Invoke DfmEndpoint.Setup(); method at your Function's startup. E.g. like this:
[assembly: WebJobsStartup(typeof(StartupNs.Startup))] namespace StartupNs { public class Startup : IWebJobsStartup { public void Configure(IWebJobsBuilder builder) { DfmEndpoint.Setup(); } } }
-
Now DFM's endpoint should become available at your Function's root URL, which is typically https://my-func/api (or https://my-func/my-route-prefix, if you've customized routePrefix setting in your host.json)
NOTE: by default it will overshadow all your existing HTTP-triggered functions. If you don't want that to happen, add DurableFunctionsMonitorRoutePrefix setting to your CSPROJ-file:This will make DFM be served from https://my-func/api/my-durable-functions-monitor.
IMPORTANT1: that endpoint still does all the AuthN/AuthZ logic, in the same way as standalone DFM does. That means that EasyAuth needs to be configured appropriately for your Function instance, just like for a standalone DFM instance. If you do want to disable AuthN/AuthZ for that endpoint, either set
DFM_NONCE
config setting toi_sure_know_what_i_am_doing
or call DfmEndpoint.Setup() method like this:DfmEndpoint.Setup(new DfmSettings{ DisableAuthentication = true });
IMPORTANT2: a person who is able to access your DFM endpoint can potentially also access all HTTP-triggered endpoints in your project. Make sure you configure AuthN/AuthZ properly.
IMPORTANT3: by default the endpoint exposes all Task Hubs in the underlying Storage account. Restrict the list of allowed Task Hubs either via
DFM_HUB_NAME
config setting (takes a comma-separated list) or via extensions.durableTask.hubName setting in your host.json. -
Long-awaited dark color mode support.
-
Minor bugfixes.
durablefunctionsmonitor.dotnetbackend.4.1.0.nupkg
durablefunctionsmonitor-4.1.0.vsix