Search code examples
azureazure-functionsazure-storage-queuesazure-functions-runtime

Microsoft.WindowsAzure.Storage: No valid combination of account information found


I am using Azure Functions Preview and want to add a QueueTrigerFunction.

The function is defined as such:

[FunctionName("QueueTrigger")]        
public static void Run([QueueTrigger("testqueue1", Connection = "AzureWebJobsStorage")]string myQueueItem, TraceWriter log)
{
    log.Info($"C# Queue trigger function processed: {myQueueItem}");
}

with the local.settings.json:

{
    "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=test1storage;AccountKey=XXXXX==;EndpointSuffix=core.windows.net/;",
    "AzureWebJobsDashboard": ""
  }
}

When I start up the VS Debugger, I get the following error message:

[8/5/2017 1:07:56 AM] Microsoft.WindowsAzure.Storage: No valid combination of account information found.

What am I missing? Is there some additional settings in Azure I need to check to make sure this scenario is correctly configured?


Solution

  • What am I missing? Is there some additional settings in Azure I need to check to make sure this scenario is correctly configured?

    I can reproduce the issue that you mentioned with you supplied AzureWebJobsStorage connection string format. Please have a try to remove EndpointSuffix=core.windows.net/; from the connection string. Then it works correctly on my side.

    local.settings.json:

    {
      "IsEncrypted": false,
      "Values": {
        "AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=storageaccountname;AccountKey=xxxxxxxxxxxx",
        "AzureWebJobsDashboard": ""
      }
    }
    

    enter image description here