Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 665
Philipp Schmid Avatar asked Aug 05 '17 01:08

Philipp Schmid


2 Answers

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

like image 158
Tom Sun - MSFT Avatar answered Nov 10 '22 10:11

Tom Sun - MSFT


This worked for me. The connection string in the Azure Portal that i copy/pasted, included 'EndpointSuffix=core.windows.net' at the end of the string. When i used this, i got the same error as above. When i simply removed this part of the connection string i was able to connect successfully.

like image 38
kooch Avatar answered Nov 10 '22 09:11

kooch