merken / local-azure-functions

MIT License
25 stars 6 forks source link

Azurite Version 3.14.2 - Breaking changes #2

Open DatKyle opened 3 years ago

DatKyle commented 3 years ago

I was using this repo to help get docker set up and I ran into an issue due to a breaking change implemented in Azurite V3.14.2 BreakingChanges.md - 2021.9 Version 3.14.2

You now need to set the AzureWebJobsStorage URL's to devstoreaccount1.local.storage.emulator or change the compose file to set the azurite version to 3.14.0 instead of latest.

Also wanted to say thank you for the amazing article and repo, it has helped massively with getting my azure functions working in docker.

EmilAlipiev commented 1 year ago

thanks for reporting this but could you make it work with 3.14.2, although i have changed it like below, i dont see any blob storage is being created under emulators.

BlobEndpoint=http://devstoreaccount1.local.storage.emulator:10000;QueueEndpoint=http://devstoreaccount1.local.storage.emulator:10001;

EmilAlipiev commented 1 year ago

I am just giving the correct answer here for the latest version. Connection string should have host.docker.internal. So complete env file should be like this. Linked Breaking changes is either outdated or not working for local emulator

AzureWebJobsStorage=DefaultEndpointsProtocol=https;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://host.docker.internal:10000/devstoreaccount1;QueueEndpoint=http://host.docker.internal:10001/devstoreaccount1;
BlobContainerName=input-container
BlobOutputContainerName=output-container
QueueName=queue