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;
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
add a comment |
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
add a comment |
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
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
azure ssl-certificate azure-web-app-service lets-encrypt azure-webapps
asked Mar 27 at 12:23
jonhobbsjonhobbs
7,78218 gold badges74 silver badges116 bronze badges
7,78218 gold badges74 silver badges116 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
Not sure, I would assume that the error would cause the deployment to fail. I will try though.
– jonhobbs
Apr 2 at 13:49
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Not sure, I would assume that the error would cause the deployment to fail. I will try though.
– jonhobbs
Apr 2 at 13:49
add a comment |
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.
Not sure, I would assume that the error would cause the deployment to fail. I will try though.
– jonhobbs
Apr 2 at 13:49
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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