Hi @Andrea Müller,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
To achieve seamless deployments of Azure Function Apps without downtime, consider the following best practices:
Utilize Deployment Slots: Deployment slots enable you to deploy various versions of your code to separate endpoints. This feature allows you to test changes in a staging environment prior to moving them into production. By doing so, you reduce downtime and facilitate rapid rollbacks if needed.
Manage Application Settings: When utilizing deployment slots, certain application settings are classified as "sticky" meaning they stay associated with the slot rather than being swapped with the code. You can designate these settings as slot-specific by adding "slotSetting": true in your application setting definitions. This enables you to preserve distinct configurations for each slot.
Limit Changes to the Function App: It is recommended to limit changes to the Function App through Infrastructure as Code (IaC). Instead, prioritize adjusting settings at the deployment slot level. This strategy helps avoid the deletion of functions during redeployment.
Separate Settings from the App: As much as possible, separate your settings from the Function App. This allows you to update configurations without redeploying the entire app, thus reducing the risk of losing functions or other critical configurations.
For further clarification, please refer to the following documentations:
I hope this information helps you understand and resolve your issue. If you have any further concerns, please feel free to reach out.