I have created blob triggered azure function and while connecting it to azure I am getting error as "No valid combination of account information found". Here is my code sample
CloudStorageAccount StorageConn;
CloudBlobClient BlobClient;
StorageConn = CloudStorageAccount.Parse(Environment.GetEnvironmentVariable("MyConn"));
BlobClient = StorageConn.CreateCloudBlobClient();
BlobServiceClient blobServiceClient = new BlobServiceClient(StorageConn.ToString());//At this line I am getting the error;
and in local.settings.json:
{
"IsEncrypted": false,
"Values": {
"MyConn": "DefaultEndpointsProtocol=https;AccountName=***;AccountKey=***",
}
}