When you deploy an Azure Function, the secrets stored in secrets.json
are not automatically transferred to Azure. The secrets.json
file is used for local development only. To manage sensitive information in Azure, you should use Azure Key Vault or application settings in the Azure portal.
Recommendations
Azure Key Vault:
Application Settings:
After updating your secret on either Azure Key Vault or application settings, modify your Azure Function's code to retrieve the new secret values accordingly.