Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host ID collisions in several functionapps and slots although Environment variable "AzureFunctionsWebHost__hostid" is used in every functionapp and every slot #10650

Open
ulluoink opened this issue Nov 22, 2024 · 5 comments
Labels
bot: do not close Prevents bot automation from closing issues Needs: Attention 👋

Comments

@ulluoink
Copy link

  • Timestamp: since we use deployment slots
  • Function App version: .net 8 isolated, Runtime version 4
  • Region: west europe

Repro steps

  1. several FunctionApps in one storage account with two deployment slots each (staging and production)
  2. in every functionapp and in each slot we have an environment variable "AzureFunctionsWebHost__hostid" with a unique value (just like documented by microsoft)
  3. deploy several FunctionApps to their staging slot
  4. switch slot of each function to production
  5. Error "A collision for Host ID 'functionsv4x64dotnetisolated8pla' was detected in the configured storage account. For more information, see https://aka.ms/functions-hostid-collision." occurs in several functionapps (either in production or in staging slot). The 'functionsv4x64dotnetisolated8pla' value differs from functionapp to functionapp

Expected behavior

no host id collision errors if the environment variable is used as documented

Documentation we used to address this issue:

https://learn.microsoft.com/en-us/azure/azure-functions/storage-considerations?tabs=azure-cli#override-the-host-id
https://learn.microsoft.com/en-us/azure/azure-functions/errors-diagnostics/diagnostic-events/azfd0004#options-for-addressing-collisions
https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-override

@ulluoink ulluoink changed the title Host ID collisions although Envirnoment variable "AzureFunctionsWebHost__hostid" is used in every functionapp and every slot Host ID collisions in several functionapps and slots although Environment variable "AzureFunctionsWebHost__hostid" is used in every functionapp and every slot Nov 22, 2024
@bhagyshricompany bhagyshricompany self-assigned this Nov 25, 2024
@bhagyshricompany
Copy link

bhagyshricompany commented Nov 25, 2024

Hi @ulluoink Thanks for reporting.please raise request on azure portal.

@ulluoink
Copy link
Author

ulluoink commented Dec 1, 2024

/bot not-stale

@microsoft-github-policy-service microsoft-github-policy-service bot added bot: do not close Prevents bot automation from closing issues Needs: Attention 👋 labels Dec 1, 2024
Copy link
Contributor

Thank you ulluoink. This issue will not be automatically closed and a member of the team will review it soon.

@ulluoink
Copy link
Author

ulluoink commented Dec 1, 2024

Hi @ulluoink Thanks for reporting https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-slots?tabs=azure-portal please ref this link as per the plan have slot creation. support if still have issue please raise request on azuree portal.Thanks

Do not understand what does that mean?

What do you want us to change in our functionapps?

Have you even read what we are doing? We followed each amd every advice and documentation of microsoft and also the linked doc.

@bhagyshricompany bhagyshricompany removed their assignment Dec 2, 2024
@bhagyshricompany
Copy link

Hi @ulluoink Thanks for your patience. will update you on this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: do not close Prevents bot automation from closing issues Needs: Attention 👋
Projects
None yet
Development

No branches or pull requests

2 participants