Gartner Research

Data Center Automation and Orchestration Scripting: Principles and Best Practices

Published: 31 August 2015

ID: G00278385

Analyst(s): Paul Delory

Summary

System administrators must use scripts in the software-defined data center, and for DevOps, but many lack the skill. Here we discuss scripting in theory and practice, illustrate a common task — building a Windows SQL server in both PowerShell and Ruby — and provide functional sample PowerShell code.

Table Of Contents

Problem Statement

The Gartner Approach

The Guidance Framework

  • Prework
    • Prework Step-by-Step
    • Prework in Context
  • Qualification
    • Step 1: Tool Selection
    • Step 2: Language Selection
    • Step 3: Testing
    • Step 4: Exercising Each Tool
  • Implementation
    • Step 1: Managing Dependencies
    • Step 2: Logging
    • Step 3: Managing Inputs and Outputs
    • Step 4: Handling Errors
  • Refinement
    • Step 1: Building the Script Header
    • Step 2: Commenting
    • Step 3: Writing Readable Code
  • Follow-Up

Risks and Pitfalls

Index of PowerShell Best Practices

Gartner Recommended Reading

©2020 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates. This publication may not be reproduced or distributed in any form without Gartner’s prior written permission. It consists of the opinions of Gartner’s research organization, which should not be construed as statements of fact. While the information contained in this publication has been obtained from sources believed to be reliable, Gartner disclaims all warranties as to the accuracy, completeness or adequacy of such information. Although Gartner research may address legal and financial issues, Gartner does not provide legal or investment advice and its research should not be construed or used as such. Your access and use of this publication are governed by Gartner’s Usage Policy. Gartner prides itself on its reputation for independence and objectivity. Its research is produced independently by its research organization without input or influence from any third party. For further information, see Guiding Principles on Independence and Objectivity.

Already have a Gartner Account?

Become a client

Learn how to access this content as a Gartner client.