Azure-functions-host: One or more errors occurred. Microsoft.Azure.WebJobs.Host: Invalid storage account 'devstoreaccount1'

Created on 4 Dec 2017  路  7Comments  路  Source: Azure/azure-functions-host

Getting following issue when creating Time Trigger from scratch using development storage

The listener for function 'Function1' was unable to start.
The listener for function 'Function1' was unable to start. mscorlib: One or more errors occurred. Microsoft.Azure.WebJobs.Host: Invalid storage account 'devstoreaccount1'. Please make sure your credentials are correct

more details in attachment

image

Most helpful comment

OK, I figured out how to reproduce the error you're getting - simply shutdown the storage emulator. Try starting the storage emulator manually. I had to do this for my first run:

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe start
Windows Azure Storage Emulator 5.2.0.0 command line tool
Autodetect requested. Autodetecting SQL Instance to use.
Looking for a LocalDB Installation.
Probing SQL Instance: '(localdb)\MSSQLLocalDB'.
Found a LocalDB Installation.
Probing SQL Instance: '(localdb)\MSSQLLocalDB'.
Found SQL Instance (localdb)\MSSQLLocalDB.
Creating database AzureStorageEmulatorDb52 on SQL instance '(localdb)\MSSQLLocalDB'.

Granting database access to user REDMOND\pbatum.
Database access for user REDMOND\pbatum was granted.

Initialization successful. The storage emulator is now ready for use.
The storage emulator was successfully started.

After running the command line tool, it then appears in my quick access bar in the bottom right and I can start it:

image

I thought VS had some functionality to start the storage emulator automatically when required. I'm going to check up with some folks on that.

All 7 comments

Hi @hakart can you explain exactly what steps you're following? I can't reproduce. Here is what I'm doing.

  1. Make sure I have the latest VS installed (15.5)
  2. Make sure I have the latest azure functions tools installed (15.0.31201.0). Here's what the update screen looks like before installing the latest update:
    image
  3. File -> New project -> Azure Function -> Select v1, timer trigger:
    image
  4. Hit F5, confirm the host started without errors and found my function:
    image

I would like to note that I do not recognize the string 'devstoreaccount1'. I'm not sure where that error is coming from.

I'm having the same problem. Yes, all the latest versions and I have all the screens you have. But after waiting for about 20+ seconds I will get same error message as @hakart .

OK, I figured out how to reproduce the error you're getting - simply shutdown the storage emulator. Try starting the storage emulator manually. I had to do this for my first run:

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe start
Windows Azure Storage Emulator 5.2.0.0 command line tool
Autodetect requested. Autodetecting SQL Instance to use.
Looking for a LocalDB Installation.
Probing SQL Instance: '(localdb)\MSSQLLocalDB'.
Found a LocalDB Installation.
Probing SQL Instance: '(localdb)\MSSQLLocalDB'.
Found SQL Instance (localdb)\MSSQLLocalDB.
Creating database AzureStorageEmulatorDb52 on SQL instance '(localdb)\MSSQLLocalDB'.

Granting database access to user REDMOND\pbatum.
Database access for user REDMOND\pbatum was granted.

Initialization successful. The storage emulator is now ready for use.
The storage emulator was successfully started.

After running the command line tool, it then appears in my quick access bar in the bottom right and I can start it:

image

I thought VS had some functionality to start the storage emulator automatically when required. I'm going to check up with some folks on that.

Even if we can make VS do more here, the error message for this scenario can still be improved so I filed https://github.com/Azure/azure-webjobs-sdk-script/issues/2237.

Thx, I can confirm that it's now working.

My understanding is that there is indeed a VS bug related to the storage emulator which is why you had to start it manually. I don't have tracking info but I expect this will be resolved in a coming VS update in the next few months.

The issue with the emulator not starting automatically is now resolved, see these release notes:
https://github.com/Azure/Azure-Functions/blob/master/VS-AzureTools-ReleaseNotes.md#150403220

Was this page helpful?
0 / 5 - 0 ratings

Related issues

christopheranderson picture christopheranderson  路  4Comments

ElvenSpellmaker picture ElvenSpellmaker  路  3Comments

ahmelsayed picture ahmelsayed  路  4Comments

mathewc picture mathewc  路  3Comments

justinyoo picture justinyoo  路  3Comments