Description
You will need to reuse the same key.
If you are on Azure, the keys are synchronized by NAS-type storage on %HOME%\ASP.NET\DataProtection-Keys .
For a local launch application, they are stored in %LOCALAPPDATA%\ASP.NET\DataProtection-Keys user running the application or stored in the registry if it is running in IIS.
If none of the above matches are used, a key is generated for the process lifetime.
Decision
So, the first option is not available (Azure only). However, you can synchronize the keys from %LOCALAPPDATA%\ASP.NET\DataProtection-Keys user launching the application on each computer on which the application is running.
But even better, you could simply point it to a network resource as follows:
sc.ConfigureDataProtection(configure => {
This will allow you to scale while maintaining your security.
Important: Your keys will expire in 90 days. It will be important to regenerate them often.
You can change it using this bit of code, but the shorter the safer.
services.ConfigureDataProtection(configure => {
A source
source share