azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

Function key of function app change every 15 day

Open Hector47 opened this issue 3 years ago • 3 comments

The function key change every 15 days without deployment or action on the function

Only activity in the activity log of the function is the list key to get the new key of the function

Investigative information

Please provide the following:

2022-07-11 12:37:41.831 Executing 'XXXXX' (Reason='This function was programmatically called via the host APIs.', Id=011ee644-3e30-4145-89fa-ce786cd436ee)

  • Region: West Europe

Repro steps

Provide the steps required to reproduce the problem:

  1. Deploy function
  2. Deploy Logic app connecting to the function
  3. Wait 15 day
  4. Logic app cannot connect anymore with 401 error.

Expected behavior

Provide a description of the expected behavior.

  • After 15 days the logic app should still be able to connect to the function app.

Actual behavior

Provide a description of the actual behavior observed.

  • After 15 days the logic app cannot connect to the function as the function key has changed.

Known workarounds

Update the function code in the logic app every 15 days

Related information

Provide any related information

  • Programming language used : c#

Hector47 avatar Jul 11 '22 12:07 Hector47

Hi @Hector47 Thank you for the feedback, we will discuss this issue internally and let you know about the findings

Ved2806 avatar Jul 12 '22 14:07 Ved2806

Hello, It just did it again.

Thanks for your help

Hector47 avatar Jul 25 '22 14:07 Hector47

Hi @Hector47 I Would suggest to create a new function app key manually by yourself and then use it. It may help with your problem, Please try this and let us know. Thanks!

Ved2806 avatar Aug 12 '22 12:08 Ved2806

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

ghost avatar Aug 16 '22 13:08 ghost

Hello, After more test, I can see that even the host keys are changing.

I have created additional function key to test. Also, I have updated the runtime version to ~3 to see if this change something.

I will update this issue in one week (15 days from last occurrence)

Thanks for your help

Hector47 avatar Aug 17 '22 08:08 Hector47

Hi @fabiocav Do you have any inputs on this?

Ved2806 avatar Aug 18 '22 13:08 Ved2806

@Hector47 Do you have any life cycle management policy enabled which cleans up your storage blobs periodically? You should exclude the storage used by function app from that.

kshyju avatar Aug 18 '22 16:08 kshyju

@Hector47 Do you have any life cycle management policy enabled which cleans up your storage blobs periodically? You should exclude the storage used by function app from that.

Thanks @kshyju, indeed there is one policy in place on the storage.

Hector47 avatar Aug 18 '22 17:08 Hector47