locked
Does swapping from Staging to production in Azure swap old dll's ? RRS feed

  • Question

  • User1253338400 posted

    I have had issues with assemblies on Azure app service not being updated. I found that by changing the setting 

    <SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>    and setting to False the assembly is updated. Its the same as setting "remove additional files at destination" under publish through visual studio.

    But i am publishing to a deployment slot. Once i swap to the production does the swap action replace all files on the production server  and do a similar action ?

    Thursday, June 11, 2020 3:54 AM

Answers

  • User-719153870 posted

    Hi robby32,

    Once i swap to the production does the swap action replace all files on the production server  and do a similar action ?

    If you mean whether the original files in your prod slot will be swapped when you swap from stage to prod, then the answer is NO.

    The processes of "publish from other resource(from VS or Azure DevOps for example) to Azure App Service" and "swap from one slot to another in Azure" are totally different.

    Check What happens during a swap and you will find that the target slot, production slot in your case, never got changed until the end of this process.

    "If all instances on the source slot are warmed up successfully, swap the two slots by switching the routing rules for the two slots."

    "The target slot remains online while the source slot is being prepared and warmed up, regardless of where the swap succeeds or fails."

    In conclusion, the original files will not be deleted, updated or swapped, the whole slot is the one who got swapped.

    Best Regard,

    Yang Shen

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 12, 2020 5:40 AM

All replies

  • User-719153870 posted

    Hi robby32,

    Once i swap to the production does the swap action replace all files on the production server  and do a similar action ?

    If you mean whether the original files in your prod slot will be swapped when you swap from stage to prod, then the answer is NO.

    The processes of "publish from other resource(from VS or Azure DevOps for example) to Azure App Service" and "swap from one slot to another in Azure" are totally different.

    Check What happens during a swap and you will find that the target slot, production slot in your case, never got changed until the end of this process.

    "If all instances on the source slot are warmed up successfully, swap the two slots by switching the routing rules for the two slots."

    "The target slot remains online while the source slot is being prepared and warmed up, regardless of where the swap succeeds or fails."

    In conclusion, the original files will not be deleted, updated or swapped, the whole slot is the one who got swapped.

    Best Regard,

    Yang Shen

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 12, 2020 5:40 AM
  • User1253338400 posted

    tried the suggestions. worked, managed to resolve as suggested.

    read the link : What happens during a slot swap. (very helpful)

    Wednesday, June 17, 2020 5:44 AM