Home > Uncategorized > PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation

PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation

December 19th, 2016 Leave a comment Go to comments

While writing code or automation scripts, I usually spend quite some time to research the APIs and command syntax. To speed up the research, I normally skip the detailed description of all parameters and jump to the sample code or scripts directly. If any sample is, or close to, what what I want, I will use it as a starting point and modify it from there. Like any other engineering work, having something to start with is definitely easier and faster than starting from scratch.

Time to learn how to "Google" and manage your VMware and clouds in a fast and secure

HTML5 App

Can we get these samples built into the IDE or editors? Yes. Over the years, quite some IDEs have included the feature called code snippet. As you have guessed, the key success factor is not the feature itself, but the content. Don’t get me wrong – the feature implementation is also important but that is pretty much a one time thing. Think about an Internet of a few Web pages, would you use Google? Probably not despite the fact that it’s a super powerful engine.

After finishing the vSearch 3.2, I finally got a bit time over this past weekend to work on this open source project called PowerCLI SketchPad – which is an online editor with built-in code snippets. With the SketchPad, you can quickly write a working PowerCLI script just as you see from the YouTube video above (26 seconds). Note that although it’s running in browser, your code will neither be sent back to server, nor be shared with anyone else.

You may be wonder why it’s PowerCLI not others?

We picked PowerCLI as it’s the most widely used script by VMware administrators for automation. This is the starting point of other similar code sharing editors for PyVmomi (Python binding for vSphere), RbVmomi (Ruby binding for vSphere), etc.

Please feel free to give it a quick try and contribute some code snippet for the community.

Writing a code snippet is VERY simple. You just need to send us the following:

{
  label: 'dc-vm-start',
  insertText: `Get-VM -Name {{vm-name}} | Start-VM {{-Confirm:$False}} {{-RunAsync:$True}}`,
  documentation: 'Create a new virtual machine - by @sjin2008'
}

You can use Git to submit code or simply use this issue tracker to submit it as described on the project home.

Please feel free to share the tool and more people can benefit and share.

Categories: Uncategorized Tags:
  1. December 19th, 2016 at 12:02 | #1

    [DoubleCloud] PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero I https://t.co/N5nCts1Lvo

  2. December 19th, 2016 at 15:13 | #2

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and… https://t.co/Kk9YVe8wIZ #Uncategorized #4767444837072896

  3. December 20th, 2016 at 04:45 | #3

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation https://t.co/PASKTLKUgV

  4. December 20th, 2016 at 05:16 | #4

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation https://t.co/xSu9WUzrkr

  5. December 20th, 2016 at 20:26 | #5

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation -…… https://t.co/aObPOhreDo

  6. December 21st, 2016 at 10:09 | #6

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation -…… https://t.co/aCr0ULF27c

  7. December 21st, 2016 at 13:49 | #7

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation -…… https://t.co/8k0NX2tMhS

  8. December 21st, 2016 at 23:48 | #8

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation -…… https://t.co/ROr3hTiKzy

  9. December 22nd, 2016 at 20:11 | #9

    #PowerCLI SketchPad – Write #PowerShell Code for #VMware #vSphere Automation Easily & Quickly w/Zero Installation… https://t.co/bfmChXOvZg

  10. December 23rd, 2016 at 06:19 | #10

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation -…… https://t.co/PQ2UAPr1EP

  11. December 23rd, 2016 at 08:06 | #11

    #PowerCLI SketchPad – Write #PowerShell Code for #VMware #vSphere Automation Easily & Quickly w/Zero Installation… https://t.co/68EYu5YHku

  12. December 23rd, 2016 at 17:13 | #12

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation -…… https://t.co/u0qkLbiN9L

  13. December 27th, 2016 at 13:28 | #13

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation -…… https://t.co/j2iQVQzBk3

  14. December 29th, 2016 at 08:26 | #14

    We stumbled over here by a different web page and thought I might
    check things out. I like what I see so now i am following
    you. Look forward to going over your web page for
    a second time.

  15. January 3rd, 2017 at 03:48 | #15

    PowerCLI SketchPad – Write PowerShell Code for vSphere Automation Easily and Quickly with Zero Installation -…… https://t.co/nQjaYvZuF9

  1. No trackbacks yet.