skip to Main Content

We are facing a strange issue with one of our Az Functions. We are using a durable functions which it does have several AppKeys configured, one of them is called "durabletask_extension".

We are trying to automate the refresh of the keys using Az Cli but apparently when we try to refresh the key – the shell gives an error like "Operation Returned an invalid status "NotFound" "

However, I can see from listing the keys that the key-name provided is supposed to be correct.

Kindly see images attached 🙂

is this a bug or am I doing something wrong?

Refresh of default or master keys seems to be working just fine.

Images:

Keys List:-
enter image description here

Keys Set:-
enter image description here

2

Answers


  1. We are able to reproduce the issue,

    enter image description here

    The key name which you have provided is systemKeys which is automatically managed by the Function runtime.

    enter image description here

    enter image description here

    Instead, of that we have tried with functionkeys and it just worked fine with the same keyname "durabletask_extension" which we can add in our function app .

    enter image description here

    NOTE:- To add masterKey as in your functions you can use the below cmdlts.

    az functionapp function keys set -g MyResourceGroup -n MyFunctionAppName --function-name MyFunctionName --key-name systemKey --key-value MyKeyValue 
    

    enter image description here

    For more information please refer the below links:-

    Login or Signup to reply.
  2. You cannot explicitly set a System key:
    ‘The scope of system keys is determined by the extension, but it generally applies to the entire function app. System keys can only be created by specific extensions, and you can’t explicitly set their values.’
    (read more here)

    See these related Github issues:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search