Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active October 15, 2019 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/ed7f480270239744e2f3e3efbe172242 to your computer and use it in GitHub Desktop.
Save justinyoo/ed7f480270239744e2f3e3efbe172242 to your computer and use it in GitHub Desktop.
Azure Storage Emulator on Azure Pipelines
# Install the latest preview
sudo npm install -g azurite
# Install the latest stable
sudo npm install -g azurite@2.7.1
sudo azurite --silent --location /tmp --debug /tmp/debug.log &
steps:
...
- task: ShellScript@3
displayName: 'Install Azurite'
inputs:
targetType: inline
script: |
sudo npm install -g azurite
- task: ShellScript@3
displayName: 'Run Azurite'
inputs:
targetType: inline
script: |
sudo azurite --silent --location /tmp --debug /tmp/debug.log &
...
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" init ^
/server "(localdb)\MsSqlLocalDb"
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator" start
steps:
...
- task: CmdLine@2
displayName: 'Run Azure Storage Emulator'
inputs:
script: |
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" init /server "(localdb)\MsSqlLocalDb"
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment