Use azure storage emulator on a mac

broken image
broken image

Var content = Guid.NewGuid().ToString('n').Substring(0, 8) Generate random string for blob content and file name Var emulator = account = 'devstoreaccount1'

broken image

Var container = Environment.GetEnvironmentVariable('AZURE_STORAGE_CONTAINER') Var account = Environment.GetEnvironmentVariable('AZURE_STORAGE_ACCOUNT') // devstoreaccount1

broken image

The next step I think is the same as using azure storage in the cloud, only need to use sdk for blob operation: var blobHost = Environment.GetEnvironmentVariable('AZURE_STORAGE_BLOB_HOST') // 126.0.0.1:10000 There are two ways to connect to Azurite: After you install azurite, you need to start it manually.