Skip to content
11:11 Systems
The Resilient Cloud Platform
11:11 Systems11:11 Systems
  • Why 11:11
    • Submenu
      • Column 1
        • 11:11 Systems Consulting
          Consulting Services
          Global Regions
          Cloud Regions
          11:11 Systems Security
          Security

      • Column 2
        • Cloud Console
          Cloud Console
          Catalyst
          Planning and Assessment
          Compliance
          Compliance

      • WHY CHOOSE 11:11
      • Overview
      • Leadership
      • News & Media
      • ESG Program
      •  
      • Careers
      • Technology Partners
      • Customer Stories
      • Innovation Blog
  • Products & Services
    • Products & Services

        • Cloud Overview
        • Managed Public Cloud
        • Private Cloud
        • Object Storage
        • Cloud Labs
        • Flexible Cloud Environment/Colocation
        • AWS Solutions
        • Managed OS Services
        • Managed DB Services

        Infrastructure as a Service

        Take a 30-day free trial of 11:11 Cloud.

        Cloud hosting built for your business.
        START FREE TRIAL
        REQUEST A QUOTE

        • Backup Overview
        • Veeam Backup
        • Microsoft 365 Backup
        • Managed Backup for Cohesity
        • Cyber Vault
        • Data Protection Services
        Backup as a Service

        11:11 Cloud Backup

        Protect your data wherever it lives.
        REQUEST A QUOTE
        REQUEST A DEMO

        • DRaaS Overview
        • DRaaS for Veeam
        • DRaaS for Zerto
        • DRaaS for Azure
        • DRaaS for Cohesity
        • Managed Recovery
        • Cloud Recovery
        • Cyber Recovery Platform
        • Infrastructure Recovery
        • Continuity Consulting Services
        • Disaster Recovery Consulting
        Disaster Recovery

        5TB 30Day Free Trial of DRaaS for Veeam

        Protect your business-critical workloads and reduce recovery time with the Leader in Disaster Recovery.
        START FREE TRIAL
        LEARN MORE

        • Security Overview
        • Continuous Risk Scanning
        • Managed Detection and Response
        • Managed SIEM
        • Managed EDR
        • Managed Firewall
        • Application and Zero Trust Services
        Security Services

        Take the first steps toward cyber resilience.

        Download our white paper and learn how to stay ahead of threats.
        REQUEST A QUOTE
        DOWNLOAD NOW

        • Networking Overview
        • SD-WAN
        • Managed Connectivity for AWS Direct Connect
        • Multi-Cloud Connect
        • Network Consulting Services
        Connectivity Services

        Transform your network.

        Take your infrastructure and performance to the next level.
        REQUEST A QUOTE
        WATCH VIDEO
  • Solutions
    • Solutions Submenu
      • INDUSTRY
      • Education
      • Financial
      • Government
      • Healthcare
    • Solutions Business Objective Submenu
      • BUSINESS OBJECTIVE
      • Cyber Resilience
      • Modernize
      • Protect
  • Partners
    • Partners Submenu
      • Overview
      • Become a Partner
      • Partner Portals
  • Resources
    • Resources Submenu
      • Events
      • Webinars
      • News & Media
      • White Papers
      • Podcast
      • Data Sheets
      • Customer Stories
      • Innovation Blog
  • Support
    • Support Submenu
      • Contact Support
      • Product Documentation
      • API Documentation
Search:
  • Login
  • Contact
Header Right Menu
Free Trial
  • Why 11:11
    • Consulting Services
    • Cloud Console
    • Cloud Regions
    • Planning and Assessment
    • Security
    • Compliance
    • WHY CHOOSE 11:11
    • Overview
    • Leadership
    • News & Media
    • ESG Program
    • Careers
    • Technology Partners
    • Customer Stories
    • Blog
  • Products & Services
    • CLOUD
    • Cloud Overview
    • Managed Public Cloud
    • Private Cloud
    • Object Storage
    • Cloud Labs
    • Flexible Cloud Environment/Colocation
    • AWS Solutions
    • Managed OS Services
    • Managed DB Services
    • BACKUP
    • Backup Overview
    • Veeam Backup
    • Microsoft 365 Backup
    • Managed Backup for Cohesity
    • Cyber Vault
    • Data Protection Services
    • DISASTER RECOVERY
    • DRaaS Overview
    • DRaaS for Veeam
    • DRaaS for Zerto
    • DRaaS for Azure
    • DRaaS for Cohesity
    • Managed Recovery
    • Cloud Recovery
    • Cyber Recovery Platform
    • Infrastructure Recovery Services
    • Continuity Consulting
    • Disaster Recovery Consulting
    • SECURITY
    • Security Overview
    • Continuous Risk Scanning
    • Managed Detection and Response
    • Managed SIEM
    • Managed EDR
    • Managed Firewall
    • Application and Zero Trust Services
    • NETWORK
    • Network Overview
    • SD-WAN
    • Managed Connectivity for AWS Direct Connect
    • Multi Cloud Connect
    • Managed IP
  • Solutions
    • INDUSTRY
    • Education
    • Financial
    • Government
    • Healthcare
    • BUSINESS OBJECTIVE
    • Cyber Resilience
    • Modernize
    • Protect
  • Partners
    • Overview
    • Become a Partner
    • Partner Portals
  • Resources
    • Events
    • Webinars
    • News & Media
    • Whitepapers
    • Podcast
    • Datasheets
    • Customer Stories
    • Innovation Blog
  • Support
    • Contact Support
    • Product Documentation
    • API Documentation
  • Contact
  • Login
  • Free Trial
Tags: Cloud Services
Author: 11:11 Systems
Date: September 28, 2016

Automating the 11:11 Cloud using Microsoft Powershell and PowerCLI – Part One

GearsEditor’s Note: As of January 2022, iland is now 11:11 Systems, a managed infrastructure solutions provider at the forefront of cloud, connectivity, and security. As a legacy iland.com blog post, this article likely contains information that is no longer relevant. For the most up-to-date product information and resources, or if you have further questions, please refer to the 11:11 Systems Success Center or contact us directly.

We often get questions from customers about the best way to automate their cloud environments. As 11:11 Systems provides Infrastructure-as-a-Service based on VMware vCloud Director, we expose a RESTful API that can be used to automate things at the vCD level.

We also offer a higher-level REST API for the 11:11 Cloud Console, which exposes other services that 11:11 has curated into the console, such as vSphere performance data, security and compliance data, and disaster recovery services with Zerto.

More information on the 11:11 REST API is available here.

As well as RESTful APIs, another set of tools that leverage these APIs has proved extremely popular over the past few years: Microsoft Powershell and the extensions provided by VMware as PowerCLI provide an excellent environment to automate a VMware-based cloud infrastructure, such as that provided by the 11:11 Cloud Platform.

Anyone who has done any development during their career should be able to understand the syntax of PowerCLI for simple scripting or full-blown applications.

Microsoft provides an excellent integrated scripting environment (ISE) that enables a PowerCLI developer to easily discover commands, known as cmdlets, and interrogate the data that is returned from these. The IntelliSense capability helps to automatically complete commands and object names.

We don’t propose to go into great detail about how to get PowerCLI running, but suffice to say it can be downloaded from Microsoft and VMware websites. In recent news, Powershell, which traditionally only ran on Windows operating systems due to its dependence on .NET, has just been ported to both Linux and Apple Mac. PowerCLI cmdlets for Linux and Mac should be available soon. In the meantime, you may use PowerCLI running on Windows 10 on Mac inside VMware Fusion.

Powershell ISE can be made to automatically load all the PowerCLI cmdlets using the profile feature, whereby you can specify all the PowerCLI. Several additional PowerShell functions have been written by ecosystem members that can be included in this way and can be downloaded from various forums and blogs on the Internet.

Pic2

PowerCLI can be used for a variety of automation tasks. Generally speaking, there are a small number of main functions:

  • GET – retrieve information about stuff
  • SET – change attributes
  • NEW – create new things (but also ADD)
  • REMOVE – delete things
  • START/STOP/SUSPEND — operates virtual machines
  • CONNECT/DISCONNECT — log in and out of a vCloud environment

The full set of PowerCLI cmdlets can be found at: http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.powercli.cmdletref.doc%2FOverview.html

Simple GET cmdlets
A good starting point is querying the vCloud environment using GET commands. As the name suggests, this gets information without changing anything, so it is safe for beginners!

Before we can do anything, we’ll need to connect to the vCloud environment, using the same URL as indicated by the 11:11 Cloud Console interface when you choose to interact with vCloud Director.
The PowerCLI cmdlet Connect-CIserver is used with –server, -user, -password, and –org to specify those details.

Pic3-1
Having successfully connected, you can start running GET commands. Many of the vCloud cmdlets have ‘CI’ in front (cloud infrastructure), to differentiate them from vSphere/vCenter cmdlets. So, Get-CIVM instead of Get-VM.

In the example below, Get-OrgVdc is used to get information about our two Org Virtual Data Centres, both of which are pay-as-you-go.

Then, Get-CIVapp is used to list all the vApps that are currently deployed. Finally, list all the VMs using Get-CIVM.

Pic4

You can use the format table command (ft) to format the output neatly and specify the column headings you’d like to see.

Pic 5

Rather than using individual cmdlets on the command line, you can start to produce scripts that perform a similar function to the above.

In the example below, $vApps is an array that contains all the vApps and their configuration data, while $VMs is an array for all the VMs that are discovered. $vApp and $VM are then objects which contain individual data.

Pic 6

The IntelliSense feature within Powershell ISE allows you to see what information is stored within an object.

Pic 7
When the script is executed, the following output is produced. Rather than writing to the screen, it could be exported to an Excel or CSV file.

Pic 8

Automating the deployment of vApps
PowerCLI can be used to deploy new vApps from existing vApp templates within the vCloud catalog. This could be either from your own catalog or from the public catalog offered by 11:11. The cmdlet get-civapptemplate will show you all the vApp templates available.

Pic 9

In this example, we want to deploy the Travel App vApp template from the test catalog and call the new vApp “Travel App 1.”

Pic 10

This short script deploys the new vApp in a matter of minutes. By default, the vApp will be powered off.

Pic 11

We may want to make some changes to the VMs within the vApp once deployed. For example, you may want to give the “MySQL server” 4GB of RAM – it currently has only 750MB.

Unfortunately, there isn’t a nice, easy Set-CIVM cmdlet, so we need to do some jiggery-pokery using extension data. Fortunately, a quick trundle ’round the Internet found the commands to use.

Pic 13

And, we can see that the RAM value has been increased on the “MySQL server” VM.

Pic 13

Finally, the vApp can be started up.

Pic 14

Hopefully, this short article has been useful to whet the appetite for Powershell and PowerCLI.

Watch this space for more articles on this exciting topic!

For further reading, we can recommend our VMware friend and colleague, Alan Renouf, and his blog site at http://www.virtu-al.net/ – what he doesn’t know about PowerCLI isn’t worth knowing!

Categories: IaaS, VMwareBy 11:11 SystemsSeptember 28, 2016
Tags: Cloud Services
11:11 Systems

Author: 11:11 Systems

11:11 Systems (“11:11”) is a managed infrastructure solutions provider that holistically addresses the challenges of next-generation managed cloud, connectivity and security requirements. 11:11 combines the teams and technology behind market leading, analyst vetted companies like Green Cloud Defense and iland to deliver increased performance, optimization and savings.

Post navigation

PreviousPrevious post:Infographic – The State of IT Disaster Recovery in the UKNextNext post:Recovery Times – Key to any DR Plan

Related Posts

VMware Partner
Major VMware Partnership Announcement and How 11:11 Systems Keeps You Moving Forward
July 16, 2025
Elevated Cloud Backups With 11:11 Systems
May 19, 2025
Cost Optimization: DRaaS to IaaS
Cloud Smart: From DRaaS to IaaS  
May 16, 2025
cost optimization
Achieving IT Cost Optimization with 11:11 Systems
April 15, 2025
VMware logo on a virtual motherboard
More VMware Licensing Changes Ahead
April 3, 2025
VMBlog
Managed Public Cloud: Get the Most Out of Your Cloud Investment
February 25, 2025
PRODUCTS & SERVICES
  • Cloud
  • Backup
  • Disaster Recovery
  • Managed Security
  • Network as a Service
  • Compliance
COMPANY
  • Why 11:11
  • Customer Stories
  • Careers
  • Leadership
  • Technology Partners
  • News & Media
  • Contact Support
CLOUD REGIONS
  • North America
  • EMEA
  • APAC
CONNECT
  • LinkedIn
  • X
  • Youtube

© 2025 11:11 Systems Inc., All Rights Reserved | Privacy Notice | Website Terms of Use |

Go to Top