Thursday, June 14, 2012

OM12: How to remove the location association from an Agent/MS/Pool

Based on this blog posting of mine, all about associating a location with an Agent/MS/Pool I have some additional information.

As mentioned in the previous posting in item 1, there are other ways as well to remove the location association from an Agent/MS/Pool:

  1. The commands below just remove the location association from Agent/MS/Pool. The actions don’t delete the location itself:
    Remove-SCOMLocation –Agent
    Remove-SCOMLocation –ManagementServer
    Remove-SCOMLocation –Pool

  2. When we use –location parameter (Remove-SCOMLocation –Location), the location instance will be deleted and not exist anymore.
    For example, I created three locations with the same displayname “Amsterdam”. After I executed the following command, the locations were removed permanently:
    Get-SCOMLocation -DisplayName "Amsterdam" | Remove-SCOMLocation

Another advice
You can also define geo locations with the same displayname multiple times, which can be distinguished by property “ID” or “Name”.

Credits
Thanks to the Operations Manager Product Team and especially Daniele Muscetta, since they provided us (Cameron Fuller and me) with this information. Thank you guys!

No comments: