How to delete an agent from sync group (on portal) when the machine hosting agent has been destroyed?

Answered How to delete an agent from sync group (on portal) when the machine hosting agent has been destroyed?

  • 13 августа 2012 г. 6:38
     
     

    Our on-premise SQL Data Sync Agent was running on an on-premise VM. We replaced that VM's roles with another fresh installed VM taking on those responsibilities. After checking the fresh VM and ensuring it's connectivity etc was ok, we securely deleted the previous VM.

    On the Azure portal page, when we try to delete the non-existant agent, we get this error: "Failed to remove the agent. Please remove all linked databases from the local agent first and try again."

    Now since neither the VM hosting the agent not the agent itself exit, how do we remove the non-existant agent from the sync group?

    Thanks
    Sid

Все ответы

  • 13 августа 2012 г. 6:45
    Отвечающий
     
     Предложенный ответ
    • Предложено в качестве ответа Veerendra Kumar 13 августа 2012 г. 6:53
    • Изменено JuneTMVP, Editor 13 августа 2012 г. 7:06
    •  
  • 13 августа 2012 г. 6:54
     
     

    I think you meant to link to this MSDN document, because the link above point back to this thread itself!

    Anyway, the document says I should click the 'force delete' button ("Use “force delete” to delete the unreachable database." => "To unregister an on-premises SQL Server database select the database and click Force Delete."). However, there is no UI element/button with the label "Force delete" in the old portal (and SQL Sync Data services isn't ported to the new portal).

    Also, I don't wish to delete the sync'd distributed dB - it's important! I just want to delete the old (non-existant) agent

  • 13 августа 2012 г. 7:11
    Отвечающий
     
     

    force delete simply removes the member database from the sync group, it doesnt delete the database itself.

    does the database show as unreachable in your sync group?

  • 13 августа 2012 г. 7:50
     
     

    This is how the dead agent / database shows up in the portal (it's "offline")

    This is how the error manifests itself



    • Изменено Sid.S 13 августа 2012 г. 7:53
    •  
  • 13 августа 2012 г. 7:55
    Отвечающий
     
     
    if i remember it right, when you click on an unreachable database, you should see Force Remove below it.
  • 13 августа 2012 г. 8:01
     
     Отвечено

    Thanks. It's not that exactly but I figured it out eventually between your comments and me trying different things.

    1. Select the offline database
    2. Remove database button becomes active in upper right corner of topology panel
    3. Then 'deploy button' becomes active in upper left portion of the ribbon

    All I can say is ... wow! Such a twisted user experience. Whoever was responsible for designing that flow needs to be ... re-trained!




    • Помечено в качестве ответа Sid.S 13 августа 2012 г. 8:01
    • Изменено Sid.S 13 августа 2012 г. 8:03
    •  
  • 13 августа 2012 г. 8:53
    Отвечающий
     
     

    you follow the same flow when you design your sync group.

    finish all changes you want to make, then deploy.