Leave specified folder intact when publishing to Azure Web appHow to publish dotnetnuke website to azure?Any way to do “sticky folders” (or similar) w/ staged deployments in Azure Websites?Azure AD Web App with zombie Login Redirect LoopHow to add an Azure App Service extension via powershell?ASP.Net Core Data Protection API in Azure Web AppIs it possible to have Zero Downtime when publishing a Website to Azure App Services (deployment slot) + autoswapCan I use the SwapWithPreviewAction command switch to swap deployment slots when the Azure app service has authentication enabled?How can I manage robots.txt in Azure app service with a staging slotHow do I preserve certain folders when doing a deployment slot swap on an Azure App Service?Azure Web App swap happening BEFORE warmup

Did Pope Urban II issue the papal bull "terra nullius" in 1095?

Unconventional examples of mathematical modelling

What was the intention with the Commodore 128?

Why do so many people play out of turn on the last lead?

Attacking the Hydra

Is Fourier series a sampled version of Fourier transform?

What modifiers are added to the attack and damage rolls of this unique longbow from Waterdeep: Dragon Heist?

Scam? Phone call from "Department of Social Security" asking me to call back

What is the fastest way to level past 95 in Diablo II?

What are these panels underneath the wing root of a A380?

Does writing regular diary entries count as writing practice?

A+ rating still unsecure by Google Chrome's opinion

Why do we use low resistance cables to minimize power losses?

Typesetting "hollow slash"

Why don't modern jet engines use forced exhaust mixing?

Why does auto deduce this variable as double and not float?

How to get locks that are keyed alike?

Minimum population for language survival

Visa on arrival to exit airport in Russia

Airline power sockets shut down when I plug my computer in. How can I avoid that?

Quick destruction of a helium filled airship?

How to gracefully leave a company you helped start?

What's the point of writing that I know will never be used or read?

What is a "soap"?



Leave specified folder intact when publishing to Azure Web app


How to publish dotnetnuke website to azure?Any way to do “sticky folders” (or similar) w/ staged deployments in Azure Websites?Azure AD Web App with zombie Login Redirect LoopHow to add an Azure App Service extension via powershell?ASP.Net Core Data Protection API in Azure Web AppIs it possible to have Zero Downtime when publishing a Website to Azure App Services (deployment slot) + autoswapCan I use the SwapWithPreviewAction command switch to swap deployment slots when the Azure app service has authentication enabled?How can I manage robots.txt in Azure app service with a staging slotHow do I preserve certain folders when doing a deployment slot swap on an Azure App Service?Azure Web App swap happening BEFORE warmup






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm using VS Code with the Azure App Service extension to publish to Azure. I have tested publishing to a staging slot and swapping slots with production. All is working well so far.



The trouble is that I have a script which uploads a new SSL certificate every 3 months (letsencrypt) to a folder called /.well-known. Each time I publish the site it's going to over-write this folder as the VS Code extension only seems capable of doing a complete publish of the whole site.



Is there a way of somehow "protecting" this folder so it never gets swapped out or over-riden?



I realise that if it wasn't for the automated nature of the SSL being uploaded I could just put the SSL in my repository and upload it each time. Or I could download this folder and include it in my project before each publish but this is error-prone.










share|improve this question






























    0















    I'm using VS Code with the Azure App Service extension to publish to Azure. I have tested publishing to a staging slot and swapping slots with production. All is working well so far.



    The trouble is that I have a script which uploads a new SSL certificate every 3 months (letsencrypt) to a folder called /.well-known. Each time I publish the site it's going to over-write this folder as the VS Code extension only seems capable of doing a complete publish of the whole site.



    Is there a way of somehow "protecting" this folder so it never gets swapped out or over-riden?



    I realise that if it wasn't for the automated nature of the SSL being uploaded I could just put the SSL in my repository and upload it each time. Or I could download this folder and include it in my project before each publish but this is error-prone.










    share|improve this question


























      0












      0








      0








      I'm using VS Code with the Azure App Service extension to publish to Azure. I have tested publishing to a staging slot and swapping slots with production. All is working well so far.



      The trouble is that I have a script which uploads a new SSL certificate every 3 months (letsencrypt) to a folder called /.well-known. Each time I publish the site it's going to over-write this folder as the VS Code extension only seems capable of doing a complete publish of the whole site.



      Is there a way of somehow "protecting" this folder so it never gets swapped out or over-riden?



      I realise that if it wasn't for the automated nature of the SSL being uploaded I could just put the SSL in my repository and upload it each time. Or I could download this folder and include it in my project before each publish but this is error-prone.










      share|improve this question














      I'm using VS Code with the Azure App Service extension to publish to Azure. I have tested publishing to a staging slot and swapping slots with production. All is working well so far.



      The trouble is that I have a script which uploads a new SSL certificate every 3 months (letsencrypt) to a folder called /.well-known. Each time I publish the site it's going to over-write this folder as the VS Code extension only seems capable of doing a complete publish of the whole site.



      Is there a way of somehow "protecting" this folder so it never gets swapped out or over-riden?



      I realise that if it wasn't for the automated nature of the SSL being uploaded I could just put the SSL in my repository and upload it each time. Or I could download this folder and include it in my project before each publish but this is error-prone.







      azure ssl-certificate azure-web-app-service lets-encrypt azure-webapps






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 27 at 12:23









      jonhobbsjonhobbs

      7,78218 gold badges74 silver badges116 bronze badges




      7,78218 gold badges74 silver badges116 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          Could you try to set the folder permissions so that when the deployment process attempts to delete the folder, it lacks permission? You can set such permissions by running the attrib command in KUDU cmd.






          share|improve this answer

























          • Not sure, I would assume that the error would cause the deployment to fail. I will try though.

            – jonhobbs
            Apr 2 at 13:49










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377132%2fleave-specified-folder-intact-when-publishing-to-azure-web-app%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Could you try to set the folder permissions so that when the deployment process attempts to delete the folder, it lacks permission? You can set such permissions by running the attrib command in KUDU cmd.






          share|improve this answer

























          • Not sure, I would assume that the error would cause the deployment to fail. I will try though.

            – jonhobbs
            Apr 2 at 13:49















          0














          Could you try to set the folder permissions so that when the deployment process attempts to delete the folder, it lacks permission? You can set such permissions by running the attrib command in KUDU cmd.






          share|improve this answer

























          • Not sure, I would assume that the error would cause the deployment to fail. I will try though.

            – jonhobbs
            Apr 2 at 13:49













          0












          0








          0







          Could you try to set the folder permissions so that when the deployment process attempts to delete the folder, it lacks permission? You can set such permissions by running the attrib command in KUDU cmd.






          share|improve this answer













          Could you try to set the folder permissions so that when the deployment process attempts to delete the folder, it lacks permission? You can set such permissions by running the attrib command in KUDU cmd.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 2 at 3:52









          Bryan Trach-MSFTBryan Trach-MSFT

          1513 bronze badges




          1513 bronze badges















          • Not sure, I would assume that the error would cause the deployment to fail. I will try though.

            – jonhobbs
            Apr 2 at 13:49

















          • Not sure, I would assume that the error would cause the deployment to fail. I will try though.

            – jonhobbs
            Apr 2 at 13:49
















          Not sure, I would assume that the error would cause the deployment to fail. I will try though.

          – jonhobbs
          Apr 2 at 13:49





          Not sure, I would assume that the error would cause the deployment to fail. I will try though.

          – jonhobbs
          Apr 2 at 13:49






          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377132%2fleave-specified-folder-intact-when-publishing-to-azure-web-app%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해