How best we can use the Rollback and RollbackAlways mechanism in Visual Studio Release Management Template

Hello All,
We need a clarification on Rollback and RollbackAlways in Release template.
We checked a scenario for Rollback and RollbackAlways:
In Release Template, we have the first activity as “Configure Application Pool” and then followed by a rollback action of “Create Application Pool”
and “Create Web Site” then followed by "Code Deployment" via TFS build.
We tested with 2 scenario’s:
With App Pool and Web Site already existing: when triggered the build, configure
app pool succeeded, then Rollback action was skipped (as previous action was successful), finally deploy the code executed (code deployed) and build got succeeded.
Deleted App Pool and Web Site: when triggered the build, configure app pool failed (as no app pool existed), Rollback action executed (as previous action failed) – created app pool and web site then finally
deploy the code executed (code deployed)
But build failed (Error: Configure app pool action failed).
Ideally the build should succeed as the roll back action got executed and code deployed successfully.
Please correct us if our understanding is wrong.
Also, Kindly let us know how best we can use the Rollback and RollbackAlways mechanism in Release Management
Looking forward for your positive response.
Thanks in advance.
Regards,

Hi Shashank,
Rollback Always runs if any of the actions in the template failed. Rollback will run if action just above rollback fails or if any of the actions below the Rollback fails.
Article here (http://www.incyclesoftware.com/2014/03/understanding-rollbacks-release-management/) clearly explains how Rollback and Rollback
Always work.
I think you come across this issue since you are using build to do the "code deployment" action. You should use the release template to do that. 
As far as I know you cannot use Rollback to achieve condition check (App pool exist in your case) action.
For this you can create your own Power Shell component (which checks if the app pool exist and is not create it) and add it as a tool in RM server (RM Server Inventory).
Another option is you can follow the workaround in below thread "Answer" quoted below. That is execute Remove app pool regardless if it exist or not (which does not fail) and then create app pool.
I was able to get it working by removing the app pool which does not fail if it doesn't exist. Removing then creating seems the long way around but it works.
Flow:
Remove Application Pool
Create Application Pool
https://social.msdn.microsoft.com/Forums/en-US/43bf21c8-e233-4e58-a5a8-2592b78bc466/vs-2013-release-management-create-application-pool-fails-if-it-already-exists?forum=tfsbuild
Cheers!
Chaminda

Similar Messages

  • I bought an iphone 4 used. I installed ios7 before I realized that the previous owners e mail and password are still in the phone. How can I remove this so that I can use the cloud and "find my phone " features?l an

    I bought a used iphone. I installed ios 7 before I realized that the previous owner's email and password are still in the phone. How can I remove them so that I can use the icloud and "find my phone" feature?

    Thanks so much! It will be kinda weird to contact the person directly, but I guess I will give it a try. Is there anything that I can refer her to in this discussion to let her know I am legit, and not a creeper? Also, I don't know if you can answer this or not. When I plug my phone into itunes, and it says that it is backing up, does that mean that it is going into the other person's cloud, since I cannot access it?

  • How many devices can use the same rescue email?

    I support over 40 ipads at  my school. I want teachers to set up a rescue email that comes to me in case they are locked out. How many different apple ids can use the same rescue email address
    ?

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html
    It would be best to address your questions there, especially since this is a public forum, and over there you could post more private issues with this set-up. Not to mention, getting more official answers.

  • How many computers can use the pdf pack?

    I need to know how many computers can use my account info if we upgrade to the pack?

    Hi Serendipity1517,
    The license agreement states that you can use the subscription on up to two devices that are associated with the same Adobe ID, but you cannot use the software on these devices simultaneously.
    I hope that answers your question.
    Best,
    Sara

  • How do you make the Filter so we can use the FIM cmdlets to list Users who have no Manager attribute

    I can easily create a Set of Users who are "unusual"
    The SET criteria is
    EmployeeID starts with %
    and Any of
        EmployeeStatus not starts with %
        EmployeeType not starts with %
        Manager not in All FIM users
    This criteria works and gives me all the users when I push the View Members button.
    But when I look at the Set's Filter it seems to refer to a uuid of that All FIM users Set. To be honest I dont fully understand the set's XPATH filter.
    What I hope to do is to some how build a filter so that the FIM cmdlets can be used to identify and fix up these users, especially those who do not have a valid Manager. There are hundreds of these non-standard users and although possible, its not practical
    to do this by hand via the "All Non Standard Users" set.
    Any hints welcomed.

    All users without a manager: Xpath Filters
    /Person[not(Manager=/Person)]
    or,
    /Person[Manager!=/Set[DisplayName='All People']/ComputedMember]
    <# Please do not anything in the production environment unless and until you are very much sure #>
    # Powershell Cmdlet to find all users in portal not having manager
    # Load FIMAutomation module
     if(@(Get-PSSnapin | ? { $_.Name -eq "FIMAutomation" } ).Count -eq 0)
         Add-PSSnapin FIMAutomation;
    $users = Export-FIMConfig -customConfig "/Person[not(Manager=/Person)]" -Uri "http://localhost:5725"  -OnlyBaseResources
    foreach ($user in $users)
    $x = (($user.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "DisplayName"}).Value) 
    Write-Host "$x"
    Thanks and regards,
    Anirban Singha(Bangalore)

  • I drop my iPod on the floor and now I only can use the home and power button and the screen won't work

    I Drop my iPod on the floor and now the screen won't work but it looks perfect but when I touch it it doesn't do anything and the home and the power button work so can someone help

    Try the remaining items of:
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • I´m from Brazil and I would like to know if I can use the Labview and other National technologies to create a building/home automation (energy, water, lightning,...)? Which would be a ideal project? Which equipments should I use?

    I would like to know all about National technology regarding building/home automation?

    I could help you better if you had an idea of the equipment you will be controlling or reading to/from. Are you planning to totally customize a system or are you looking to use instruments/controllers already available for Home Automation? Im not sure I understand what you really need. Here's an Idea. Computer is the controller of the system.
    System consist of Light Control Only (to keep it simple). Program written in LabVIEW. Here you can create schedules to turn lights on/off/dim. Then LV could communicate, (for example using X10 or other protocol), commands to the device actually controlling the lights. Lighting device could be controlled using some sort of communications like, X10, Serial, IR, RF, Ethernet, etc... So this system can turn lights
    on/off/dim% either at the click of a button on your screen or a timer. Adding any other system in the house will more than likely require a different communication protocol and complicates things even further. You could much of this with regular automation hardware from NI but this requires integrating different components like relays, dimmers, etc.. Much more work and more expensive, (I would think), than buying a device made specifically for the system.
    I hope this helps.

  • I have a new Windows7 computer, transfered my files and settings from WinXP, I can use the web and receive emails using Firefox but cannot open emails. Can you help?

    I just can't open my emails that I get from msn. My yahoo and gmail messages work and I can open them fine but I can't open my msn mail with this computer.

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • HT1689 My iPad 2 16gb connects to the iTunes store for apps, but when I try to do updates or download apps, it gives me the message "cannot connect to iTunes store" I can use the Internet and any apps already downloaded, and everything else is ok.  Any id

    I can't seem to find a solution to this problem.  My iPad was fine yesterday? 

    I can't seem to find a solution to this problem.  My iPad was fine yesterday? 

  • I am trying to attach multiple photos to an email from my ipad 2. I can see how to do it from the camera and camera roll option,but not from the photos program. What am I missing? Thanx so much!

    I am trying to attach multiple photos to an email using ipad 2. I can see how to do it using the camera and camera roll ap...
    But not using the photos ap..which is where the photos are. Any help would be appreciated.!

    In an album in Photos touch the Edit button and then touch the desired photos (up to 5). A blue check appears in each selected photo. Next touch the Share button at the upper left and select Mail. This starts a email with the photos attached.

  • I'm a school tech coordinator. Many computers and many iPads. How many Apple IDs can I have per device, and how many devices can have the same Apple ID? To make my life easier, I'd like 200 devices to all use the same Apple ID.

    I'm a school tech coordinator. I have many computers and many iPads. I apologize if there is a some place that has all the rules governing the use of Apple IDs. I looked, and I even tried to get the answers from multiple Apple rep's. I couldn't find the answers.
    How many Apple IDs can I have per device?
    I want to use the same computer to sync and backup many iOS devices. The iOS devices would be associated with different Apple IDs.
    I may load apps under a school Apple ID and have users load their own apps under thier own ID.
    How many devices can have the same Apple ID?
    Can I use the same Apple ID on all the computers in a lab?
    Can I use the same Apple ID on all iPads for a particular grade level?
    Are the rules different for iOS devices and computers?
    I know that there are limits on "authorize" and "de-authorize" and how frequently those things can be done.
    Recently I heard that for the life of an iOS device, it can only be associated with five Apple IDs. That is not good for a school giving iPads to students in a 1:1
    To make my life easier, I'd like 200 devices to all use the same Apple ID.

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html
    It would be best to address your questions there, especially since this is a public forum, and over there you could post more private issues with this set-up. Not to mention, getting more official answers.

  • Elements 11 vs 13: how can I add a new place tag to my PSE13 database without using the wretched and totally inadequate map technology  that Elements 13 wants to impose.

    HI,
    I have recently installed Elements 13 having used Elements 11.0 successfully to build a database of 30,000 plus images indexed by place, people, and photo date. Elements 11 allowed me to add new places which are meaningful to me but which are a complete mystery to the mapping technology of Elements 13. For example some years ago I lived in London in a road called Argyle Road. In elements 11 I could enter the place tag as Argyle Road. In Elements 13 I am required to locate Argyle Road on the map, but the map presupposes that the Argyle Road I am referring to is in Ealing in West London. It is not!
      I now live in a place called Broadsands but the Elements 13 Map places this 0.5 miles away from what I would describe as Broadsands.
      So the question: how can I add a new place tag to my database without using the wretched and totally inadequate map technology  that Elements 13 wants to impose.

    Thank you for your quick response, BalusC. I really appreciate your answer.
    Yes, you are right. If I manually code the same amount of those components in the JSF pages instead of generating them dynamically, the server will still run out of memory. That is to say, JSF pages might not accommodate a great deal of concurrent visiting. If I upgrade the server to just allow 1,000 teachers making their own test papers at the same time, but when over 2,000 students take the same questionnaire simultaneously, the server will need another upgrading. So I have to do what you have told me, using JS+DOM instead of upgrading the server endlessly.
    Best Regards, Ailsa

  • I am new to iMovies.  When I make a video using the mic and camera in my Macbook Pro, the audio and video are not in synch.  Very annoying.  How can I fix this?

    I am new to iMovies.  When I make a video using the mic and camera in my Macbook Pro, the audio and video are not in synch.  Very annoying.  How can I fix this?

    DVD drives read the bottom of the disk, not the top. Smooth out the paper & try again.

  • How can I change the password in the iBook donated to our nonprofit.  No password was given with the iBook?  We need to put in printer and other software.  Help, we can use the laptop without changing the password.

      How can we change the password in the iBook donated to our nonprofit?  No password was given with the iBook and every time we try to install items, the password window pops up.  We need to put in printer and other software.  Help! We can use the laptop without changing the password.

    If you did not get an OS X install-restore DVD with the computer you may need
    to buy one from somewhere, and you may be lucky to get a retail OS X 10.5.x
    version. The original grey-label install set of software and OS X it shipped with
    likely would be an older system than Leopard 10.5. Last versions of G4 Mac, &
    G5, shipped with a Tiger 10.4 system; so did early Intel-based Mac. Grey discs
    which accompanied other computer build models generally do not interchange.
    The last OS X version a PowerPC architecture can use, if supported, is 10.5.8.
    A PPC processor at 867MHz & faster should be able to run OS X 10.5 Leopard.
    {With the correct disc installer, you can use it to change a password and other
    things including re-install, and perform disk utility functions, etc.}
    There is a chance you may be able to get a white-label Replacement 10.4 DVD
    or Replacement 10.5 DVD from AppleCare or the online Apple Store (800myapple)
    from a Mac OS X system specialist; these have been available yet hard to get
    as not all persons involved with them seem to know if they still exist until someone
    is asking. These aren't retail stock, are special discs for computers who could use
    a system later than original old discs; these are complete install discs not for one
    specific series of Mac. Generally they'd work in supported PowerPC G4/G5; but
    do not replace specialized original install DVD, such as an early Intel mac requires.
    You'd need to have a serial number of the computer, and a method of payment
    when seeking some replacement system media from Applecare or Apple sales
    and these discs are not available in a retail store. The original Retail discs are
    labeled differently and shipped in a retail box with a big X on the front. Other
    sources for retail 10.4 Tiger or 10.5 Leopard may be online via amazon sellers
    or computer resellers who handle repaired Macs. Avoid mystery grey label ones
    that were intended to be sold and kept with their original computer kits.
    Good luck!

  • How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?

    With Acrobat 6.0 I was able to copy a stamp in the same position (I mean "exactly" the same one) of different pages just by using the "copy/past" tool.
    Now I am using Acrobat XI and it seems like it is not possible anymore: I am copying a stamp and I am trying to past it in anoter page, but it appears in the center of the page (or wherever it wants to...).
    Does anyone have a solution?
    Thanks in advance.

    Thank you very much. I'll be waiting for you message.
    Messaggio originale----
    Da: [email protected]
    Data: 26/01/2015 17.56
    A: "Umberto Gangi"<[email protected]>
    Ogg:  How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        created by Gilad D (try67) in Creating, Editing &amp; Exporting PDFs - View the full discussion
    Well, I was in the same situation so I've developed a tool that allows one to do it. I will send you some additional information about it in a private message.
         If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7132586#7132586 and clicking ‘Correct’ below the answer
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7132586#7132586
         To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, &amp; "Stop Following"
         Start a new discussion in Creating, Editing &amp; Exporting PDFs by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

Maybe you are looking for

  • Mail Adaptor : How to configure sender mail adaptor?

    Dear @, I have to configure the sender mail adaptor I have gone thru varios blogs related to it but I am struck with some questions: 1.Where to find the message structure of the input message / what will be the input message structure 2.what is the d

  • Cant't have file in Illustrator CC!

    casenumber CC0186123774 We installed CC on a Mac 10.7.5, after a trail version for 30 days. We have two problems while working with Illustrator CC. At leased once a day I'm not able to saved my documents. I can't save them as CC ai-file, CS6 ai-file

  • Diff. Between Standard Analysis and Flixible Analysis

    Can any one explain the differences between stadnard analysis and flexible analysis in Sales and Distribution ?

  • Problem in following the webblog "Using TimeStamps: BSP Extensions"

    I try to follow the webblog "Using TimeStamps: BSP Extensions for a TimeStamp UI." However, after I have created the method 'RESOLVE_MODEL_BINDING' and compiled it, it shows me an error message <b>'Method "ADD_TO_CHECK_TABLE" is unknown or PROTECTED

  • Workflow Builder Examples

    Hi, Im completely new to Oracle Workflow builder. Can anyone suggest any docs or examples of how to create a process flow, design a work flow and implement the jobs. Pls suggest. Regards Kishan