.NET 5 Azure Function 3.x Isolate Process Disable

상준 이 251 Reputation points
2021-09-15T02:48:06.65+00:00

I want to disable only some functions without stopping the Azure Function Process. Is there a way to do this in .NET 5 Isolate Process?

https://stackoverflow.com/questions/62686591/disable-azure-function-from-c-sharp-for-runtime-version-3-x

I found the above article, but the method is complicated and this is last year's post. Is there anything updated?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,235 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,396 Reputation points
    2021-09-15T10:12:01.023+00:00

    @상준 이 To disable the function please refer to the disable function document.

    Programatically you can alos use the below REST endpoint to enable/disable a particular function
    PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/{resourcegroupname}/providers/Microsoft.Web/sites/{sitename}/functions/{functionappname}/properties/state?api-version=2018-11-01
    content-type: application/json; charset=utf-8

    Request Body:

    {"properties":"disabled"}  
    

    OR

    {"properties":"enabled"}  
    

    Alternative you can also use this API to update appsettings for your function app.

    Feel free to get back to me if you need any assistance.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful