Create reference to Azure Key Vault content from function code
Add your secret to Azure Key Vault
Create managed identity of function
Create access policy
Select appropriate permissions
Select Azure Functions managed identity and end
Create environment variable link
Get environment variable content