Introduction and practice of Microsoft cloud computing (22nd in practice)

Source: Internet
Author: User

Create a private cloud runbook


Mr. Zhang is currently managing a large number of private clouds manually (applied by Xiao Hong. Automation is an important feature of private cloud, so John wants to use automation to complete many simple mechanical tasks. John decided to achieve this by using system center 2012 orchestrator. So we can see the following content:


1. log on to the Orchestrator Server Orchestrator

2. Open the runbook Design

650) This. width = 650; "Title =" image1.jpg "alt =" wKiom1PUb3XwKzr2AABqYFK8R-c864.jpg "src =" http://s3.51cto.com/wyfs02/M01/41/5F/wKiom1PUb3XwKzr2AABqYFK8R-c864.jpg "/>

 

3. In the left-side connection, right-click the running manual and choose new...> folder.

650) This. width = 650; "Title =" image2.jpg "alt =" wKioL1PUcN-gx1-YAACfwo5ulYs029.jpg "src =" http://s3.51cto.com/wyfs02/M01/41/5F/wKioL1PUcN-gx1-YAACfwo5ulYs029.jpg "/>


4. Name the new folder, such as cloudresources.

650) This. width = 650; "Title =" image3.jpg "alt =" wKiom1PUb-XBkxsfAABphtW8ACE581.jpg "src =" http://s3.51cto.com/wyfs02/M00/41/5F/wKiom1PUb-XBkxsfAABphtW8ACE581.jpg "/>


5. In the newly created folder cloudresources, right-click and choose new...> runbook

650) This. width = 650; "Title =" image4.jpg "alt =" wkiol1pucrzs2oalaaccpzzgeki909.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/5F/wKioL1PUcRzS2oaLAACcPZZGeKI909.jpg "/>


6. Right-click the newly created runbook and select Rename from the context menu.

650) This. width = 650; "Title =" image5.jpg "alt =" wkiol1puctjdnm8naac2gn4aice850.jpg "src =" http://s3.51cto.com/wyfs02/M01/41/5F/wKioL1PUcTjDnM8NAAC2gN4AIcE850.jpg "/>


7. When you receive the confirmation, select Yes

650) This. width = 650; "Title =" image6.jpg "alt =" wkiol1pucvpglwhxaabaxween9y615.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/5F/wKioL1PUcVPglwhXAABaxwEen9Y615.jpg "/>


8. New runbook topic, whose name is changed to create private cloud

650) This. width = 650; "Title =" image7.jpg "alt =" wKiom1PUcE7TFc1-AAAa5QPIQ5A550.jpg "src =" http://s3.51cto.com/wyfs02/M01/41/5F/wKiom1PUcE7TFc1-AAAa5QPIQ5A550.jpg "/>


9. From the activity pane (console on the right), select the runbook control folder to display the included activities

650) This. width = 650; "Title =" image8.jpg "alt =" wkiol1pucbes3wfoaaax1_cdrii193.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/5F/wKioL1PUcbeS3WfoAAAxH7cDrII193.jpg "/>


10. Drag and Drop the activity object for data initialization to the canvas runbook (as shown in)

650) This. width = 650; "Title =" image9.jpg "alt =" wkiom1puclldbcehaaizphnznm0075.jpg "src =" http://s3.51cto.com/wyfs02/M00/41/5F/wKiom1PUcLLDbcEhAAIzphnZnm0075.jpg "/>

 

11. Next, select the sc2012 Virtual Machine manager folder to display its activity

650) This. width = 650; "Title =" image10.jpg "alt =" wkiom1pucnewogysaairjnak6u8735.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/5F/wKiom1PUcNewogYSAAIRJNaK6U8735.jpg "/>

12. Drag the following activity, as shown in the runbook canvas.

650) This. width = 650; "Title =" image11.jpg "alt =" wKiom1PUcQmjxSgnAAD-mNNIwUI037.jpg "src =" http://s3.51cto.com/wyfs02/M01/41/5F/wKiom1PUcQmjxSgnAAD-mNNIwUI037.jpg "/>


13. John will be created in the workflow connected by the runbook three connections. These connections are generally called "pipelines" or "Data Bus ", this is a mechanism for transferring information between activities. On the runbook canvas, move the mouse to the Right to initialize the data activity until the pointer changes to a cross shape. Then, press and hold the left mouse button to draw the connection between the initialization data and the vmm powershell script activity.

650) This. width = 650; "Title =" image12.jpg "alt =" wkiol1pucntcvlq9aaavkpn4jge651.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/60/wKioL1PUcnTCVlq9AAAvKPN4jgE651.jpg "/>

Repeat this process and John has created his first simple runbook. This will start the first activity "initialize data", continue to run the vmm powershell script, create a user role, update the User Role attributes, and update the User Role quota, finally, execute the activity to update user role attributes, pass the result to the pipeline, and the following activities

650) This. width = 650; "Title =" image13.jpg "alt =" wkiom1pucluiokh0aabvm2jde_w727.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/5F/wKiom1PUcluioKh0AABvm2jdE_w727.jpg "/>


14. John must now configure the runbook of the activity because there is no task to be executed. First, double-click to open the Properties dialog box in the initialization data transmission.

650) This. width = 650; "Title =" image14.jpg "alt =" wkiol1puc_vts5ysaaeavdghz7o550.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/60/wKioL1PUc_vTS5ySAAEAvdghz7o550.jpg "/>


15. On the details page of the dialog box, select the Add button to add five parameters

650) This. width = 650; "Title =" image15.jpg "alt =" wkiom1pucv6cywfeaafwp6ugi7m383.jpg "src =" http://s3.51cto.com/wyfs02/M01/41/5F/wKiom1PUcv6CyWfeAAFWP6ugi7M383.jpg "/>


16. Next, select parameter 1, change the memorygb name, repeat parameter 2, parameter 3, parameter 4, and parameter 5, and change their respective names storagegb, cloudname, noofvms, and username. Close this dialog box once the selection is complete

650) This. width = 650; "Title =" image16.jpg "alt =" wkiol1pudfpa9bxdaafucvcpquq493.jpg "src =" http://s3.51cto.com/wyfs02/M00/41/60/wKioL1PUdFPA9bXdAAFUCVCpquQ493.jpg "/>


17. Return to the canvas and double-click the activity that runs the vmm powershell script.

650) This. width = 650; "Title =" image17.jpg "alt =" wkiom1puc23imp6caaeahcbdqlm698.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/5F/wKiom1PUc23imP6CAAEahcbDqlM698.jpg "/>


18. Click the "..." button on the right of the selected configuration name: select the connection (vmm connection) previously created by John)

650) This. width = 650; "Title =" image18.jpg "alt =" wkiom1puc53is2oyaae6axlun8o312.jpg "src =" http://s3.51cto.com/wyfs02/M00/41/5F/wKiom1PUc53iS2OyAAE6AxlUN8o312.jpg "/>


19. Right-click the powershell script next to the text field and choose expand... copy and paste the following powershell script (unfortunately, it is uploaded as an image, because some pitfall websites do not allow code to appear)

650) This. width = 650; "Title =" image19.jpg "alt =" wkiol1pudufsisfraaimpjnyun4774.jpg "src =" http://s3.51cto.com/wyfs02/M00/41/60/wKioL1PUdUfSiSfrAAImPjnYun4774.jpg "/>

20. Right-click between the quotation marks ("") of the first line of the powershell script ($ cloudname = "") and choose subscription> Publish time from the context menu.

650) This. width = 650; "Title =" image%jpg "alt =" wkiol1pudwjgyn9jaagf1izvv%645.jpg "src =" http://s3.51cto.com/wyfs02/M00/41/60/wKioL1PUdWjgYN9jAAGF1izVVg0645.jpg "/>


21. In the activity drop-down list, submit the activity "initialization data" and click OK ).

650) This. width = 650; "Title =" image21.jpg "alt =" wKiom1PUdH-ik9nrAADEtQvzJZ0362.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/5F/wKiom1PUdH-ik9nrAADEtQvzJZ0362.jpg "/>


22. For the line of the following powershell script, repeat the previous step. However, right-click the equal sign (=) and choose subscription> publish data from the context menu and select related attributes.

650) This. width = 650; "Title =" image22.jpg "alt =" wkiol1pudftzmlc1aahuiazpgvm891.jpg "src =" http://s3.51cto.com/wyfs02/M01/41/60/wKioL1PUdfTzMlc1AAHUIazpGVM891.jpg "/>


23. Confirm the powershell script of the first four rows as follows, click OK, and then click Finish

650) This. width = 650; "Title =" image23.jpg "alt =" wkiol1pudizxamwsaahjaqqm9ce026.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/60/wKioL1PUdizxAmWsAAHJaqqM9cE026.jpg "/>


24. Click output variable 01 next to the text field and enter "Cloud" in the text field ". Click Finish)

650) This. width = 650; "Title =" image24.jpg "alt =" wkiom1pudszxoygtaafadtkqobw418.jpg "src =" http://s3.51cto.com/wyfs02/M01/41/5F/wKiom1PUdSzxOyGtAAFadtkqobw418.jpg "/>


25. Return to the canvas and double-click the activity to create a user role. The Properties dialog box is displayed.

650) This. width = 650; "Title =" image25.jpg "alt =" wkiol1pudl_y8c8yaaer8oewlja066.jpg "src =" http://s3.51cto.com/wyfs02/M00/41/60/wKioL1PUdl_y8C8YAAER8oeWLjA066.jpg "/>


26. Right of the configuration name on the "..." button: select the connection (vmm connection) created before John)

650) This. width = 650; "Title =" image26.jpg "alt =" wkiom1pudvnrw9mlaaev_3ygccq566.jpg "src =" http://s3.51cto.com/wyfs02/M02/41/5F/wKiom1PUdVnRW9MLAAEv_3yGCCQ566.jpg "/>


The highlights are coming soon ......


This article from the "stars on my head" blog, please be sure to keep this source http://staronmytop.blog.51cto.com/6366057/1530749

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.