Due to the restrictions of the app service sandbox, you can't write to any registry keys of any sort. It would be helpful to understand more about the use case of needing to add reg key for accessing an external API.
The best option is to leverage App Configuration and create a key and value where the key is MessageLimitServerClientAuth and the value to your hexadecimal number. If you're not familiar with using App Configuration, see the following quickstart; https://learn.microsoft.com/en-us/azure/azure-app-configuration/quickstart-dotnet-core-app?tabs=linux, to get started.
If the need of a registry key is coming from a requirement of a 3rd party library or software, then your only option is to use an Azure Virtual Machine.