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

"Slot Swap" operation randomly change slot host keys

Open lipalath-ms opened this issue 3 years ago • 2 comments

Hi,

I'm doing deployment to functionApp slot (+ my custom script to enable managed identity on all slots and update app settings with values from keyVault) in my Azure Devops classic pipeline and then swap slot operation with "Azure App Service manage" task. Unfortunately, swap randomly changing host keys on my slot, which is causing 401 in other places. They are always swapping between two sets of host keys, one set which is a copy of functionApp prod slot (with one custom host key), and second, set with only _master and default keys.

How to prevent changing hostKeys on my slot?

Investigative information Please provide the following:

Function App version: 4.12.2.19454 Function App name: gmm-data-int Region: West US 2

lipalath-ms avatar Sep 29 '22 23:09 lipalath-ms

@liliankasem Here is a blog post which addresses similar scenario where the blog talks about inconsistent host key and solutions to resolve it. Please check and let us know if this helps.

ramya894 avatar Oct 10 '22 09:10 ramya894

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 Oct 14 '22 10:10 ghost