tag:help.appveyor.com,2012-11-13:/discussions/questions/16006-use-appveyor-to-push-to-local-azure-blob-emulatorAppVeyor: Discussion 2018-10-19T08:18:37Ztag:help.appveyor.com,2012-11-13:Comment/443957512017-12-28T20:28:42Z2017-12-28T20:28:42ZUse Appveyor to push to local azure blob emulator.<div><p>Hi Chris,</p>
<p>AppVeyor builds are running on VMs which are pretty "far" from your machine :) So to make local Azure Blob Storage Emulator accessible for AppVeyor VMs, you have to make it listen on publicly accessible IP. You can try to get public IP and tweak Emulator to use that IP for BlobEndpoint (never tried that), but I do not think it is necessary. AppVeyor build VMs have Microsoft Azure Storage Emulator 5.2 installed, so you can use it. Those 2 commands at <code>install</code> stage will help you get started:</p>
<pre>
<code>install:
- "%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
- "%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" status</code>
</pre>
<p>Also note that you can <a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">RDP</a> to build VM and troubleshoot while tuning your build.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/443957512017-12-29T03:13:14Z2018-01-09T17:46:06ZUse Appveyor to push to local azure blob emulator.<div><p>Thanks for the direction.<br>
I have another question. So how our git repo is set up right now we have 6 different main folders. How we need it to work is each folder gets pushed to its own unique azure blob on commit, and only if that folder has been modified.</p>
<p>Do you think that is possible with the configurations Appveyor has?</p>
<p>Thanks for your help.</p>
<p>Chris</p></div>chris.reedertag:help.appveyor.com,2012-11-13:Comment/443957512017-12-29T23:22:19Z2017-12-29T23:22:19ZUse Appveyor to push to local azure blob emulator.<div><p>Hi Chris,</p>
<p>What you can do is set up 6 different AppVeyor projects and use <a href="https://www.appveyor.com/docs/how-to/filtering-commits/#include-commits-2">commit filtering</a> to run specific project build only if specific folder is modified. Each project will deploy to appropriate Azure blob.</p>
<p>Alternatively you can create 6 deployment Environments (<a href="https://www.appveyor.com/docs/deployment/#overview">difference</a>), and create a script which will check changed folder with GitHub API (<a href="https://gist.github.com/IlyaFinkelshteyn/1deffbd1f73dee326aceb5de88524d6a">sample</a>) and then start appropriate Environment deployment(s) (<a href="https://gist.github.com/IlyaFinkelshteyn/a79eb4bd6eb9c59f63e63b23e2713218">sample</a>)</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/443957512018-01-03T03:11:25Z2018-01-09T17:46:06ZUse Appveyor to push to local azure blob emulator.<div><p>Hey Ilya,</p>
<p>Thanks for he tip, seems to be working! I just keep running into an issue where it needs a build phase and I've gone into the settings and turned it off. Which was working but now seems to not be working.</p>
<p>I would like to configure the yml file to not have any build what so ever since I'll i need to do is push the file to an azure blob as is.</p>
<p>Later on I will need to run webpack to compress/gzip the files before they are pushed to the blob, but that is about it..</p>
<p>Any thoughts or ideas?</p>
<p>Thanks again for all your help!</p>
<p>Chris</p></div>chris.reedertag:help.appveyor.com,2012-11-13:Comment/443957512018-01-03T03:20:34Z2018-01-03T03:20:34ZUse Appveyor to push to local azure blob emulator.<div><p>I wonder if you hit issue with the same root cause is <a href="https://stackoverflow.com/questions/45694142/appveyor-builds-for-all-branches-instead-of-specified-ones">here</a>. When you create several AppVeyor projects targeting the same repository, you need create custom YAML file for each of them. Alternatively you can use UI only configuration but this will not work for you as commit filtering is not exposed in UI. So please ensure that each project has separate custom YAML file and let us know if this helps.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/443957512018-01-03T16:43:57Z2018-01-09T17:46:06ZUse Appveyor to push to local azure blob emulator.<div><p>Yea I changed a few things and all that does seem like the issue I was having. Thanks for the help.</p>
<p>Everything seems to be deploying to the correct azure blob, but I'm wondering if there is a way to only push up the modified files?</p>
<p>Been searching through your docs and I can't seem to find anything specific for the Azure Blob provider. Or would I need to write something custom?</p>
<p>Thanks for all your help!</p>
<p>Chris</p></div>chris.reeder