tag:help.appveyor.com,2012-11-13:/discussions/questions/47856-azureblob-delete-files-before-deployAppVeyor: Discussion 2020-06-22T05:57:37Ztag:help.appveyor.com,2012-11-13:Comment/482745542020-04-23T06:56:09Z2020-04-23T06:56:09ZAzureBlob delete files before deploy<div><p>Is it possible for appveyor to delete all files before deployment to AzureBlob static webpage storage?</p>
<p>We are publishing a single-page-application which is composed of uniquely named files that change on every build.</p></div>rok.lenardictag:help.appveyor.com,2012-11-13:Comment/482745542020-04-23T16:55:10Z2020-04-23T16:55:10ZAzureBlob delete files before deploy<div><p>Like delete container all together (fast) or you need to preserve container and iterate through all its blobs (slower)?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/482745542020-04-24T05:21:03Z2020-04-24T05:21:03ZAzureBlob delete files before deploy<div><p>Not delete the whole container, just the files+folders in a folder or subfolder?</p></div>rok.lenardictag:help.appveyor.com,2012-11-13:Comment/482745542020-04-28T17:56:52Z2020-04-28T17:56:52ZAzureBlob delete files before deploy<div><p>@Feodor: Any update?</p></div>rok.lenardictag:help.appveyor.com,2012-11-13:Comment/482745542020-04-28T18:04:21Z2020-04-28T18:04:21ZAzureBlob delete files before deploy<div><p>I don't have an ETA yet, but definitely provider could be improved. I'm going to work on it this week. Could you please send me an URL with more info about static sites in Azure blobs?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/482745542020-04-28T18:10:36Z2020-04-28T18:10:36ZAzureBlob delete files before deploy<div><p>Hi Feodor, that sounds good. I believe Azure static sites are nothing but a container called $web within the blob service. Hence, you should be able to use the standard Azure storage API (Powershell or API).</p>
<p>Let me know if I should dig deeper?</p></div>rok.lenardictag:help.appveyor.com,2012-11-13:Comment/482745542020-04-28T18:22:29Z2020-04-28T18:22:29ZAzureBlob delete files before deploy<div><p>So, to make a full-featured integration we'd need to add:</p>
<p>1) Container cleanup before publishing;<br>
2) Custom headers support (like setting gzip header)?<br>
3) anything else?</p>
<p>Could you please summarize what are you missing right now?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/482745542020-04-29T11:27:22Z2020-04-29T11:27:22ZAzureBlob delete files before deploy<div><p>Hi Feodor,</p>
<p>1) Yes, this would be great.<br>
2) This turns out that it is not as important since using Azure Storage Static Webpages alone is VERY limitting and you very soon have to add the Azure CDN component that takes care of caching/compression.</p>
<p>So that's about it.</p>
<p>Thank!<br>
Rok</p></div>rok.lenardictag:help.appveyor.com,2012-11-13:Comment/482745542020-04-29T23:22:49Z2020-04-29T23:22:49ZAzureBlob delete files before deploy<div><p>Hi Rok,</p>
<p>This is what we are going to do and deploy this week: <a href="https://github.com/appveyor/ci/issues/3409">https://github.com/appveyor/ci/issues/3409</a></p>
<p>Feel free to subscribe to that issue or/and leave comment.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/482745542020-04-30T06:28:04Z2020-04-30T06:28:04ZAzureBlob delete files before deploy<div><p>That's really great news! Have subscribed to that issue<br>
Thank you!<br>
Rok</p></div>rok.lenardictag:help.appveyor.com,2012-11-13:Comment/482745542020-05-05T03:33:21Z2020-05-05T03:33:21ZAzureBlob delete files before deploy<div><p>Hi Rok,</p>
<p>We've deployed AppVeyor update with Azure Blob deployment improvements, including deletion of files. Please see updated docs here: <a href="https://www.appveyor.com/docs/deployment/azure-blob/">https://www.appveyor.com/docs/deployment/azure-blob/</a></p>
<p>Let me know how that worked for you.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/482745542020-06-22T05:57:32Z2020-06-22T05:57:32ZAzureBlob delete files before deploy<div><p>Yes, this indeed resolves our issue, Thank you!</p></div>rok.lenardic