git - How do I access deployment history in Azure Web Apps? -
i set multiple deployment slots web app. have continuous deployment configured on staging slot, each git commit on specific branch triggers deployment staging slot. once verified, swap staging , production slots. there way view (and redeploy if desired) deployment history slot? don't want limited reverting swap, able select specific deployment.
the continuous deployment setting staging slot shows 2 deployments, though there have been many more. there way access full deployment history?
when dealing slots, behavior bit complex (and might argue confusing!). trickiness comes fact deployment history moves content of site when perform swaps.
i'll illustrate example:
- you start production slot (i.e. main app), , staging slot. no deployments have happened yet.
- deployment #1 happens staging slot
- you swap production
- at point, see no history in staging slot because history swapped production slot.
- now deploy #2 staging slot, , swap production.
- the history on staging slot has #1, got swapped in there.
- deploy #3 , swap
- the history on staging slot has #2.
- next time swap again, staging slot history has #1 , #3
so idea: each slot contain alternating history items. #1, #3, #5, etc in 1 slot, , #2, #4, #6, etc in other.
to make bit more subtle, while both slot contain history items, portal shows history slots enabled deployment. while production slot contains history items, portal not show them (this need addressed).
as workaround, can go https://{yoursite}.scm.azurewebsites.net/ , click on deployments deployment list in production slot. rest api, , not fancy ui.
hopefully helps clarify admittedly confusing behavior :)
Comments
Post a Comment