I have created a blob trigger azure function which uses connection string in the code at the moment.
local.settings.json
public static class BlobTrigger_Fun
{
[FunctionName("BlobTrigger_Fun")]
public static void Run([BlobTrigger("democontainerazure/{name}", Connection = "AzureWebJobsStorage")]Stream myBlob, string name, ILogger log)
{
log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
}
}
I want to use managed identity to avoid use of connection string in the code.

local.settings.jsonwill not be published, it will use theAzureWebJobsStorageapp setting of your function app -> Configuration, for the security issue, you can also store the connection string in the keyvault, and reference it in the app setting, refer to this blog zimmergren.net/… Anyway, the MSI could not replace theAzureWebJobsStorage. - Joy Wang"AzureWebJobsStorage": "UseDevelopmentStorage=true"inlocal.settings.json, refer to eliostruyf.com/… - Joy Wang