Dotnet Testing Locally with Azurite

Dotnet Testing Locally with Azurite

To be able to use Azurite from within dotnet it requires a secure https instance of Azurite running, here’s what I had to do.

References:

1. choco install mkcert

2. mkcert -install

3. Create new directory for cert store

  • d:\mkcerts
  • mkcert 127.0.0.1

4. Start Azurite

  • azurite –location c:\azurite –debug c:\azurite\debug.log –cert “D:\mkcerts\127.0.0.1.pem” –key “D:\mkcerts\127.0.0.1-key.pem” –oauth basic

  • Or selected services:
    • # Run only Blob
      azurite-blob –silent –location c:\azurite –debug c:\azurite\debug.log –oauth basic
    • # Run only Queue
      azurite-queue –silent –location c:\azurite –debug c:\azurite\debug.log –oauth basic
    • # Run only Table
      azurite-table –silent –location c:\azurite –debug c:\azurite\debug.log –oauth basic

5. Use the Service

You will now be able to attach to the local service using Azure Blob Storage:

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *