runbook for decommission vm from service manager end portal RRS feed

  • General discussion

  • Hi,

    I have created runbook for provision vm in VMware and it is working fine from service manager self service portal...

    Now my next requirement is end user should be able delete the vm which he provisioned from the portal....

    So, I have created one simple work flow for delete VM and only vm name is the input parameter...

    Now when create the request offering user should get the list of vms which he provisioned...How can I get the list of vms in request offering?

    Thanks in advance for your help...


    Sudheesh M A

    Wednesday, March 26, 2014 12:58 PM

All replies

  • Hi,

    You can use a query based list in your offer. For example build a query based list that list computer CI that the portal user owns. The user can then pick a server and that server will be related to the service request. From the runbook you can then pick up the server to delete. Take a look at this post for some ideas http://contoso.se/blog/?p=3440 and this http://contoso.se/blog/?p=3085

    Anders Bengtsson | Microsoft PFE | blog at http://www.contoso.se

    Wednesday, March 26, 2014 1:37 PM
  • Hi,

    Thanks for your answer...

    Could you please elaborate on this...(I am new to system center)

    Should I create a new runbook or I can just query in request offering?

    Below is my two runbooks...

    1. Provision VM

    2. Delete VM

    Please guide me to complete the request offering task for delete runbook

    Wednesday, March 26, 2014 2:06 PM
  • Hi Anders,

    Appreciate your help...

    Could you please elaborate your answer...

    So, I want to know to use query based list in my offer do I need to create a new management pack and form?

    or else when I do a query based list which class should I select...

    If you can elaborate your answer and that will be very helpful...

    Waiting for your reply...


    Sudheesh M A

    Thursday, March 27, 2014 1:12 PM
  • Hi,

    This blog post show you query based list http://blogs.technet.com/b/servicemanager/archive/2011/11/08/request-offering-wizard-overview.aspx and this http://www.buchatech.com/2013/11/service-manager-request-offering-multiselect-user-prompt/

    First you need to make sure you have the machines in Service Manager CMDB. If it is domain joined servers they should be in the CMDB, from the Active Directory connector. Then you need to have a way to filter out which machines to show for a user. When a end user browse to the SCSM portal you can access the username from the service offering by a varaible named Token Portal User Name. The Token: Portal User Name is in format CONTOSO\leni (DOMAIN\username)

    You can use it to filter which servers to show, if you add DOMAIN\username on a attribut on each server. For example if you add the owner of the VM to each server, in format DOMAIN\username you can then configure the query based list to show list all servers were the notes field or owners field is equal to Token Portal User Name.

    Once you have all servers in the CMDB and servers has owner in correct format you can start thinking about new runbooks.

    Anders Bengtsson | Microsoft PFE | blog at http://www.contoso.se

    Tuesday, April 1, 2014 6:29 AM