+ All Categories
Home > Documents > Application Catalog and Approval Runbooks Sample

Application Catalog and Approval Runbooks Sample

Date post: 19-Aug-2015
Category:
Upload: james-donnelly
View: 21 times
Download: 2 times
Share this document with a friend
Popular Tags:
69
Application Catalog and Approval Runbooks - doc version 1.9 Contents Document Change Log.................................................. 1 Add Application Catalog roles to CM server...........................1 Install System Center Orchestrator...................................9 Register the Active Directory Integration Pack for System Center 2012 - Orchestrator...................................................... 24 To deploy the integration pack.....................................31 Configuring the Active Directory Connections.......................37 Installing the Application Approval Engine..........................41 Importing Runbooks.................................................45 Configure IIS settings on CMAAE Server.............................49 Configure Active Directory Delegation..............................52 Configure Exchange Server........................................... 59 Confirm all worked.................................................. 60 Document Change Log Version Revision Date Summary of Change Change Author 1.0 25/2/15 Unfinished Draft James Donnelly 1.1 27/2/15 Edits and formatting James Donnelly 1.6 4/3/201 5 Added Exchange Server info and confirmation screen captures James Donnelly Page | 1
Transcript
Page 1: Application Catalog and Approval Runbooks Sample

Application Catalog and Approval Runbooks - doc version 1.9

ContentsDocument Change Log.................................................................................................................................1

Add Application Catalog roles to CM server................................................................................................1

Install System Center Orchestrator.............................................................................................................9

Register the Active Directory Integration Pack for System Center 2012 - Orchestrator............................24

To deploy the integration pack..............................................................................................................31

Configuring the Active Directory Connections.......................................................................................37

Installing the Application Approval Engine................................................................................................41

Importing Runbooks..............................................................................................................................45

Configure IIS settings on CMAAE Server................................................................................................49

Configure Active Directory Delegation..................................................................................................52

Configure Exchange Server........................................................................................................................59

Confirm all worked....................................................................................................................................60

Document Change Log

Version RevisionDate

Summary of Change Change Author

1.0 25/2/15 Unfinished Draft James Donnelly1.1 27/2/15 Edits and formatting James Donnelly1.6 4/3/2015 Added Exchange Server info and confirmation screen captures James Donnelly

Add Application Catalog roles to CM server

1. Launch CM Console

Page | 1

Page 2: Application Catalog and Approval Runbooks Sample

2. Navigate to the desired site system server3. Right-click the server, click Add Site System Roles

Page | 2

Page 3: Application Catalog and Approval Runbooks Sample

4. Click Next

Page | 3

Page 4: Application Catalog and Approval Runbooks Sample

5. Fill in proxy info (if any)6. Click Next

Page | 4

Page 5: Application Catalog and Approval Runbooks Sample

7. Select the two Application Catalog roles Application Catalog web service point Application Catalog website point

Page | 5

Page 6: Application Catalog and Approval Runbooks Sample

8. Type in the IIS website name to use (Default Web Site works fine. Any site you use must already exist.)

9. Select port number. If using HTTPS, certificates will have to be issued.10. Click Next

Page | 6

Page 7: Application Catalog and Approval Runbooks Sample

11. Type your Organization name12. Select Website theme colour13. Click Next

Page | 7

Page 8: Application Catalog and Approval Runbooks Sample

14. Confirm settings15. Click Next

Page | 8

Page 9: Application Catalog and Approval Runbooks Sample

16. Click Close

Install System Center Orchestrator

Install Orchestrator on existing SCCM site server with CM console and all prerequisites will already be installed.

1. Launch SetupOrchestrator.exe

Page | 9

Page 10: Application Catalog and Approval Runbooks Sample

2. Click Install

Page | 10

Page 11: Application Catalog and Approval Runbooks Sample

3. Fill in Name, Organization and Product Key4. Click Next

Page | 11

Page 12: Application Catalog and Approval Runbooks Sample

5. Select I accept the license terms6. Click Next

Page | 12

Page 13: Application Catalog and Approval Runbooks Sample

7. Select all the features to install8. Click Next

Page | 13

Page 14: Application Catalog and Approval Runbooks Sample

9. Fill in the Username of the Orchestrator service account 10. Fill in the account Password11. Click Test and confirm credentials are accepted12. Click Next

Page | 14

Page 15: Application Catalog and Approval Runbooks Sample

13. Fill in the name of the database Server (and instance name if not using default instance)14. Click Test Database Connection and confirm connection succeeded.15. Click Next

Page | 15

Page 16: Application Catalog and Approval Runbooks Sample

16. Specify the New database name (or choose and existing one)17. Click Next

Page | 16

Page 17: Application Catalog and Approval Runbooks Sample

18. Click Next

Page | 17

Page 18: Application Catalog and Approval Runbooks Sample

19. Click Next

Page | 18

Page 19: Application Catalog and Approval Runbooks Sample

20. Click Next

Page | 19

Page 20: Application Catalog and Approval Runbooks Sample

21. Select to use Microsoft Update 22. Click Next

Page | 20

Page 21: Application Catalog and Approval Runbooks Sample

23. Select No for both options24. Click Next

Page | 21

Page 22: Application Catalog and Approval Runbooks Sample

25. Confirm installation summary26. Click Install

Page | 22

Page 23: Application Catalog and Approval Runbooks Sample

27. Wait for installation to complete

Page | 23

Page 24: Application Catalog and Approval Runbooks Sample

28. Confirm all succeeded29. Click Close

Register the Active Directory Integration Pack for System Center 2012 - Orchestrator

1. On the Orchestrator server, launch System_Center_Integration_Pack_for_Active_Directory.exe

Page | 24

Page 25: Application Catalog and Approval Runbooks Sample

2. Click Yes

3. Provide a location to extract the files4. Start the Deployment Manager.

Page | 25

Page 26: Application Catalog and Approval Runbooks Sample

5. In the navigation pane of the Deployment Manager, expand Orchestrator Management Server

6. Right-click Integration Packs

Page | 26

Page 27: Application Catalog and Approval Runbooks Sample

7. Click Register IP with the Management Server.

8. Click Next.

Page | 27

Page 28: Application Catalog and Approval Runbooks Sample

9. Click Add.

10. Locate the .OIP file that you copied locally from step 1, click Open, and then click Next.

Page | 28

Page 29: Application Catalog and Approval Runbooks Sample

11. Click Finish.

Page | 29

Page 30: Application Catalog and Approval Runbooks Sample

12. Click Accept.

Page | 30

Page 31: Application Catalog and Approval Runbooks Sample

13. The Log Entries pane displays a confirmation message when the integration pack is successfully registered.

To deploy the integration pack

1. Open Deployment Manager >Integration Packs

Page | 31

Page 32: Application Catalog and Approval Runbooks Sample

2. Right-click the newly registered Integration Pack3. Select Deploy IP to Runbook Server or Runbook Designer…

4. Click Next

Page | 32

Page 33: Application Catalog and Approval Runbooks Sample

5. Select Active Directory Integration Pack 6. Click Next.

Page | 33

Page 34: Application Catalog and Approval Runbooks Sample

7. Enter the name of the runbook Computer, or click the ellipsis (…) button to search for it8. Click Add, 9. Click Next.

Page | 34

Page 35: Application Catalog and Approval Runbooks Sample

10. Select the Schedule installation check box (or leave it unselected to install the Integration pack immediately)

11. Select the time and date to install the Integration Pack 12. Select Stop all running runbooks before installing the integration pack or Hotfixes 13. Click Next.

Page | 35

Page 36: Application Catalog and Approval Runbooks Sample

14. Click Finish.

Page | 36

Page 37: Application Catalog and Approval Runbooks Sample

15. When the integration pack is deployed, the Log Entries dialog box displays a confirmation message.

Configuring the Active Directory Connections

An Active Directory connection is a reusable link between Orchestrator and an Active Directory domain controller. You can specify as many connections as you require to create links to multiple domain controllers. You can also create multiple connections to the same domain controller to allow for differences in security permissions for different user accounts.

1. Open the Runbook Designer

Page | 37

Page 38: Application Catalog and Approval Runbooks Sample

2. Click Options, and then click Active Directory.

3. Click Add

Page | 38

Page 39: Application Catalog and Approval Runbooks Sample

4. Enter a name for the connection.5. Click the ellipsis button (...)6. Select Microsoft Active Directory Domain Configuration. 7. Click OK.

Page | 39

Page 40: Application Catalog and Approval Runbooks Sample

8. In the Configuration User Name and Configuration Password boxes, type the credentials that Orchestrator will use to log on to Active Directory. This user account must have the authority to perform the actions in any runbook where the connection is used.

9. In the Configuration Domain Controller Name (FQDN) box type the fully qualified name of the domain or domain controller for the connection.

10. In the Configuration Default Parent Container box, type the default Distinguished Name for an Organizational Unit or Common Name. This default will be used when an activity such as Create User or Create Computer does not specify the Container Distinguished Name.

Examples of Configuration Default Parent Container:

CN=Users,DC=mydomain,DC=com

or

OU=MyOU,DC=mydomain,dc=DC=com

11. Click OK12. Add additional connections if applicable.

Page | 40

Page 41: Application Catalog and Approval Runbooks Sample

13. Click Finish.

Installing the Application Approval Engine

1. Prerequisits for the server running the Configuration Manager Application Approval Engine (CMAAE) – Install the following using the command below the list:

Web Server (IIS) Role.o Windows Authentication.o Management Tools

IIS 6 Management Compatibility IIS 6 WMI Compatibility.

NET Framework 3.5 NET Framework 4.5 ASP.NET 3.5 ASP.NET 4.5

2. Launch PowerShell as administrator and run:

Add-WindowsFeature AS-NET-Framework,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Static-Content,Web-Http-Logging,Web-Stat-Compression,Web-Filtering,Web-Windows-Auth,Web-Net-Ext,Web-Net-Ext45,Web-Asp-Net,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Mgmt-Console,Web-Metabase,Web-WMI,NET-Framework-Core,NET-Framework-45-Core,NET-Framework-45-ASPNET,NET-WCF-TCP-PortSharing

2. Use PowerShell to launch CMAAE.msi

Page | 41

Page 42: Application Catalog and Approval Runbooks Sample

3. Click Next

Page | 42

Page 43: Application Catalog and Approval Runbooks Sample

4. Click Next

Page | 43

Page 44: Application Catalog and Approval Runbooks Sample

5. Click Next

Page | 44

Page 45: Application Catalog and Approval Runbooks Sample

6. Click Close

Importing Runbooks

1. Copy the contents of the “C:\inetpub\wwwroot\CMAAE\Automation Samples” folder from the CMAAE server to the Orchestrator server (JDLab-SCCM) “C:\CMAAE\Runbooks” directory

2. Open the System Center 2012 R2 Orchestrator Runbook Designer

Page | 45

Page 46: Application Catalog and Approval Runbooks Sample

3. Right-click Runbooks and click Import

Page | 46

Page 47: Application Catalog and Approval Runbooks Sample

4. Click the ellipsis (…) button and browse for the CMAAE_DetectionAndNotification runbook

5. Deselect Import global configurations6. Click Finish

7. Click OK8. Navigate to Variables > CMAAE Detection and Notification

9. Edit the highlighted variables

Base URL = http://<name of server running CMAAE>/cmaae

http://JDLab-App/cmaae

CM Site Server = name of the SCCM 2012 site server

JDLab-SCCM

Page | 47

Page 48: Application Catalog and Approval Runbooks Sample

User Name = <domain>\<user> (user who has permissions for PowerShell remoting

sandbox\administrator

Password = above user’s password (recommend you also select to encrypt this) To Email Address = email address of the group responsible for application

approvals

[email protected]

From Email Address = email address the approvals will be sent from

[email protected]

SMTP Server = name of the SMTP server

10. Import the CMAAE Post Approval Notification runbook

11. Right-click Runbooks and click Import

Page | 48

Page 49: Application Catalog and Approval Runbooks Sample

12. Select the ellipsis (…) button and browse for the CMAAE_PostExecutionSampleAutomation runbook

13. Deselect Import global configurations14. Click Finish

15. Click OK16. Navigate to Variables > CMAAE Post Approval Notification

Page | 49

Page 50: Application Catalog and Approval Runbooks Sample

17. Edit the variables

From Email Address = the address you want to send the notices from SMTP server = your SMTP server

Configure IIS settings on CMAAE Server

1. Log onto the server running CMAAE (JDLab-App)2. Open IIS Manager

3. Navigate to CMAAE virtual directory and double-click to open the Authentication feature.

Page | 50

Page 51: Application Catalog and Approval Runbooks Sample

4. Configure Authentication as shown above

Anonymous – Disabled ASP.NET – Enabled Forms Authentication - Disabled Windows Authentication - Enabled

5. Edit the CMAAE ASP.NET Application Settings

6. On the CMAAE virtual directory, double-click to open the Application Settings feature

Page | 51

Page 52: Application Catalog and Approval Runbooks Sample

7. Open each of the highlighted items and edit the values for those of your Configuration Manager installation.

RB: “True” - this enables post approval Orchestrator Runbook automation (required)

RB_SCOWS: Address to the Orchestrator Web Service (required if RB = True)

Example: If JDLab-SCCM is the name of the server running the Orchestrator Web Service on port 81 “http://JDLab-SCCM:81/Orchestrator2012/Orchestrator.svc”

RB_UID: Unique ID of the Post Approval Runbook (required if RB = True)

To get the ID of the Post Approval Runbook, Copy GetRunbookGUIDs.ps1 to the Orchestrator runbook server

(JDLab-SCCM) Edit GetRunbookGUIDs.ps1 so that line 20 is:

$RunbookName = "CM AAE Post Approval Notification"

Launch PowerShell with elevated privileges Run the GetRunbookGUIDs.ps1 script

Page | 52

Page 53: Application Catalog and Approval Runbooks Sample

Output shows the runbook GUID at the top as well as the parameters included in the runbook to use to configure IIS on the CMAAE server (see below)

RB_User: “User:” RBAppAproveDeny: “Approval:” RBAppComments: “Comments:” RBApplication: “Application:” RBUserComments: “Comments:” SiteCode: The SCCM site code SiteServer: The SCCM site server name siteTitle: The name to display on the approval dialog boxes

2. Restart IIS on the server running CMAAE (JDLab-App) Open cmd prompt with elevated privileges and run:

iisreset

Configure Active Directory Delegation

1. Log onto the Domain Controller2. Open Active Directory Users and computers

Page | 53

Page 54: Application Catalog and Approval Runbooks Sample

3. Go to the Delegation tab on the properties of the computer running CMAAE

Page | 54

Page 55: Application Catalog and Approval Runbooks Sample

4. Select Trust this computer for delegation to specified services only5. Select Use any authentication protocol6. Click Add…

Page | 55

Page 56: Application Catalog and Approval Runbooks Sample

7. Click Users or Computers

Page | 56

Page 57: Application Catalog and Approval Runbooks Sample

8. Enter the name of the Orchestrator server (JDLab-SCCM)9. Click Check Names10. Click OK

Page | 57

Page 58: Application Catalog and Approval Runbooks Sample

11. Select both the HOST and the rpcss Service Type (screen shot only shows HOST, scroll down to see rpcss – use Ctrl key to select both)

12. Click OK

Page | 58

Page 59: Application Catalog and Approval Runbooks Sample

13. Click Apply14. Click OK15. Reboot the server running CMAAE (JDLab-App)16. Once that server comes back up log onto the Orchestrator server and launch Runbook

Designer

Page | 59

Page 60: Application Catalog and Approval Runbooks Sample

17. Start both runbooks1. Select the runbook, click the Run button

Confirm email is working

1. Log onto a workstation in the domain using an administrative account (screen shots are from Windows 7 workstation)

2. Right-click Computer

Page | 60

Page 61: Application Catalog and Approval Runbooks Sample

3. Click Properties

4. Click Remote settings5. Select Allow connections from computers running any version of Remote Desktop6. Click Select Users…7. Click Add…8. Type RunBkService9. Provide the Administrator name and password10. Click OK, OK, and OK11. Close any open windows and log off12. Log onto that same workstation using the RunBkService account13. Open https://JDLab-Exchange/owa

1. If you get a certificate error just click Continue to this website…(no screenshot)2. You may be prompted to select your time zone (no screenshot)3. If Exchange is configured properly, (it is in the sandbox lab) your Inbox should

then open

Page | 61

Page 62: Application Catalog and Approval Runbooks Sample

4. Click new mail

5. Send a test message to [email protected]. Log off7. Log on as sandbox\administrator8. Launch https://jdlab-exchange/owa)

Page | 62

Page 63: Application Catalog and Approval Runbooks Sample

9. Confirm the test message from RunBkService has arrived.

NOTE: This confirms the Exchange server can send and receive emails, the RunBkService account has a valid exchange mailbox, the Notifications distribution list is configured correctly, the administrator account is a member of the Notifications distribution list, and the administrator account can receive emails. All this is required for CMAAE to work as configured.

Page | 63

Page 64: Application Catalog and Approval Runbooks Sample

Confirm CMAAE is working

1. Deploy a package, and in the deployment wizard mark it as Requires administrator approval if users request this application

2. Log onto a workstation and launch the application catalog3. http://jdlab-sccm/CMApplicationCatalog

4. Select the application and click Request

Page | 64

Page 65: Application Catalog and Approval Runbooks Sample

5. Fill in your Reason for application request6. Click SUBMIT

7. Confirm request was submitted8. Log onto the machine running Orchestrator (JDLab-SCCM)9. Open the Runbook Designer

Page | 65

Page 66: Application Catalog and Approval Runbooks Sample

10.11. Select the CM AAE Detection and Notification runbook12. Select Log History13. Wait for entry (could be 15 minutes)14. Double-click the entry and confirm all success15. Log onto workstation with administrator account (an account that is a member of

the Notifications distribution list)16. Open Outlook Web access (https://JDLab-Exchange/owa)

17. Open the message from RunBkService

Page | 66

Page 67: Application Catalog and Approval Runbooks Sample

18. Click the link at the bottom of the message

19. Fill in a comment

Page | 67

Page 68: Application Catalog and Approval Runbooks Sample

20. Select either Approve or Deny21. Click Submit22. Log back onto the workstation with the requesting user account and open the

Application Catalog

23. Go to the My Application Requests tab and the status should be Approved (it could take a while for this to update)

24. Go to the Application Catalog tab

25. The application should have and INSTALL button where it once had a REQUEST button

Page | 68


Recommended