SlideShare ist ein Scribd-Unternehmen logo
1 von 37
What’s New In PowerCLI 5.0
                      Jonathan Medd
Also known as…..




                   What’s New in
                   PowerCLI 4.1 and
                   5.0 in the 2nd half
                   of 2011
New in PowerCLI 5.0
Summary
  • License Manager snapin
  • Image Builder Snapin
  • Auto Deploy Snapin
  • Update Manager PowerCLI 5.0
  • No change to View PowerCLI
  • Support for new vSphere 5.0
    features, such as Storage DRS
  • Incremental updates to existing
    cmdlets
PowerCLI 5.0 Summary
Also new in 2nd half of 2011

  • VI Property Module
  • vSphere Distributed Switch
    PowerCLI Snapin released as a
    Fling
  • PowerCLIMan
License Manager Snapin

• Requires vCenter 5.0 or later
• Currently contains one cmdlet, Get-
  LicenseDataManager
• Add.PSSnapin
  VMware.VimAutomation.License
Get-LicenseDataManager Examples

1) Query Licenses
$licenseDataManager = Get-LicenseDataManager
$licenseDataManager.QueryEntityLicenseData()

2) Add Licenses
$licenseData = New-Object VMware.VimAutomation.License.Types.LicenseData

$licenseKeyEntry = New-Object
Vmware.VimAutomation.License.Types.LicenseKeyEntry
$licenseKeyEntry.TypeId = "vmware-vsphere”
$licenseKeyEntry.LicenseKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"

$licenseData.LicenseKeys += $licenseKeyEntry

$licenseDataManager.UpdateAssociatedLicenseData($hostContainer.Uid, $licen
seData)
Image Builder
Image Builder
Image Builder
Image Builder Snapin

• Requires vCenter 5.0 or later
• Contains cmdlets for managing depots, image
  profiles, and VIBs
• Add.PSSnapin VMware.ImageBuilder
Image Builder
Image Builder
Image Builder
AutoDeploy
AutoDeploy Snapin

• Requires vCenter 5.0 or later
• Contains cmdlets that provide an interface to
  VMware Auto Deploy for provisioning physical
  hosts with ESXi software
• Add.PSSnapin VMware.DeployAutomation
Auto Deploy & Image Builder
 – where’s the GUI?
• There is no GUI (yet) for managing either Auto
   Deploy or Image Builder
• Time to learn PowerShell!
• Or……
Image Builder and Auto Deploy PowerPack

• Alan Renouf has created a PowerGUI
  PowerPack for Image Builder and Auto Deploy

• http://www.virtu-al.net/2011/09/15/image-
  builder-and-auto-deploy-powerpack/
Image Builder and Auto Deploy Demo
Update Manager PowerCLI 5.0

• Requires vCenter 5.0 or later
• Does NOT work with downlevel versions of
  vCenter – similar to previous releases
• Update Manager PowerCLI 4.x will not work
  with Update Manager 5.0
Update Manager PowerCLI 5.0 – What’s New?
vSphere 5.0 New Features - PowerCLI Support

• Storage DRS (experimental)
  • Creating virtual machines and hard disks
     on datastore clusters and defining anti-
     affinity rules
• ESXi Firewall
PowerCLI 5.0 – Incremental Updates
· Cloning templates with New-Template.
· Copying files and folders from and to the guest operating system through
the Copy-VMGuestFile cmdlet.
· Joining domains through the Get-VMHostAuthentication and Set-
VMHostAuthentication cmdlets.
· Joining ESX hosts (version 4.1 and later) into an active directory through the
Get-VMHostAuthentication and Set-VMHostAuthentication cmdlets.
· Retrieving vCenter Server users and groups through the Get-VIAccount
cmdlet.
· Support for vCenter Servers in linked mode through the Connect-VIServer
cmdlet.
· Retrieving object properties through the Get-VIProperty cmdlet.
· Moving virtual appliances through the Move-VApp cmdlets.
· Importing compressed and chunked files through the Import-VApp cmdlet.
· Importing and exporting virtual appliances in OVA format.
· Support for the SSPI passthrough feature of VIX.
Also new in 2nd half of 2011

    • VI Property Module
    • vSphere Distributed Switch
      PowerCLI Snapin released as a
      Fling
    • PowerCLIMan
What is a PowerShell Module?




• A collection of files containing functions, scripts etc and possibly other
  files such as the manifest to make it more professional
• Stored within a folder as a subfolder of the Modules location. Can be
  found via $env:PSModulePath
• Contents made accessible to the user via the Import-Module cmdlet
Why Bother with a PowerShell
             Module?




• Makes sharing of groups of functions and scripts easy
• Simple XCOPY style deployment of the module folder either internally or
  publishing to an external website
• Make your commonly used functions available to yourself without ‘Profile
  Bloat’ – they are available as and when you need them from a module
VI Property Module




• Currently contains 47 custom VI Properties
• Expanding in number all the time
• Maintained at www.lucd.info
What is a VI Property?




• Create custom properties that
  persist per PowerCLI session
VI Property Module
• New cmdlet Get-VIProperty displays VI Properties in existing
  session
• Module contains VI properties for:
   –   Cluster
   –   Datastore
   –   Harddisk
   –   PhysicalNic
   –   Portgroup
   –   ScsiControler
   –   ScsiLun
   –   Snapshot
   –   VirtualMachine
   –   VMHost
Create your own and submit them for addition to the
module.
vSphere Distributed Switch PowerCLI cmdlets
• The no.1 most requested missing feature from
  PowerCLI
• Community effort from LucD to fill the gap
• Community effort available as a module in the
  PowerCLI Book
• Now released as a snapin as a VMware Fling
• So NOT supported (yet)
   – Does not work with PowerCLI 5.0 (yet)
   – 32bit only
vSphere Distributed Switch PowerCLI cmdlets
vSphere Distributed Switch PowerCLI cmdlets
PowerCLI 5.0 Poster
Resources

• Image Builder – Image Builder
• How to run ESXi stateless with vSphere Auto
  Deploy – Gabe’s Virtual World
• Alan Renouf on PowerScripting to talk What’s
  New in PowerCLI 5.0.
What's New in PowerCLI 5.0
What's New in PowerCLI 5.0

Weitere ähnliche Inhalte

Was ist angesagt?

Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...
Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...
Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...
Microsoft
 
Java EE 6, Eclipse @ EclipseCon
Java EE 6, Eclipse @ EclipseConJava EE 6, Eclipse @ EclipseCon
Java EE 6, Eclipse @ EclipseCon
Ludovic Champenois
 

Was ist angesagt? (20)

JEE Conf 2015: Less JS!
JEE Conf 2015: Less JS!JEE Conf 2015: Less JS!
JEE Conf 2015: Less JS!
 
Web application I have always dreamt of
Web application I have always dreamt ofWeb application I have always dreamt of
Web application I have always dreamt of
 
Get Rapid Right-sized and Recent with the Liberty Repository
Get Rapid Right-sized and Recent with the Liberty RepositoryGet Rapid Right-sized and Recent with the Liberty Repository
Get Rapid Right-sized and Recent with the Liberty Repository
 
VMware vSphere 5.1 - Upgrade Tips & Top New Features
VMware vSphere 5.1 - Upgrade Tips & Top New FeaturesVMware vSphere 5.1 - Upgrade Tips & Top New Features
VMware vSphere 5.1 - Upgrade Tips & Top New Features
 
Eclipse Apricot
Eclipse ApricotEclipse Apricot
Eclipse Apricot
 
Writing Java EE microservices using WildFly Swarm
Writing Java EE microservices using WildFly SwarmWriting Java EE microservices using WildFly Swarm
Writing Java EE microservices using WildFly Swarm
 
Spring cloud for microservices architecture
Spring cloud for microservices architectureSpring cloud for microservices architecture
Spring cloud for microservices architecture
 
JavaEE Microservices platforms
JavaEE Microservices platformsJavaEE Microservices platforms
JavaEE Microservices platforms
 
Lessons Learned from Real-World Deployments of Java EE 7 at JavaOne 2014
Lessons Learned from Real-World Deployments of Java EE 7 at JavaOne 2014Lessons Learned from Real-World Deployments of Java EE 7 at JavaOne 2014
Lessons Learned from Real-World Deployments of Java EE 7 at JavaOne 2014
 
Nashville VMUG Keynote April 8 2015 - vSphere 6
Nashville VMUG Keynote April 8 2015 - vSphere 6Nashville VMUG Keynote April 8 2015 - vSphere 6
Nashville VMUG Keynote April 8 2015 - vSphere 6
 
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
 
VMworld 2015: VMware vSphere Certificate Management for Mere Mortals
VMworld 2015: VMware vSphere Certificate Management for Mere MortalsVMworld 2015: VMware vSphere Certificate Management for Mere Mortals
VMworld 2015: VMware vSphere Certificate Management for Mere Mortals
 
Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...
Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...
Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...
 
Node and Micro-Services at IBM
Node and Micro-Services at IBMNode and Micro-Services at IBM
Node and Micro-Services at IBM
 
Bootstraping real world Jakarta EE/MicroProfile microservices with Maven Arch...
Bootstraping real world Jakarta EE/MicroProfile microservices with Maven Arch...Bootstraping real world Jakarta EE/MicroProfile microservices with Maven Arch...
Bootstraping real world Jakarta EE/MicroProfile microservices with Maven Arch...
 
WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!
 
Java EE 6, Eclipse @ EclipseCon
Java EE 6, Eclipse @ EclipseConJava EE 6, Eclipse @ EclipseCon
Java EE 6, Eclipse @ EclipseCon
 
Whats new v sphere 6
Whats new v sphere 6Whats new v sphere 6
Whats new v sphere 6
 
WebLogic and GraalVM
WebLogic and GraalVMWebLogic and GraalVM
WebLogic and GraalVM
 
Building Bizweb Microservices with Docker
Building Bizweb Microservices with DockerBuilding Bizweb Microservices with Docker
Building Bizweb Microservices with Docker
 

Ähnlich wie What's New in PowerCLI 5.0

Presentation cloud infrastructure launch – what’s new
Presentation   cloud infrastructure launch – what’s newPresentation   cloud infrastructure launch – what’s new
Presentation cloud infrastructure launch – what’s new
solarisyourep
 

Ähnlich wie What's New in PowerCLI 5.0 (20)

VMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep DiveVMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep Dive
 
Say Bye to VMware PowerCLI ! Time to "GOVC"
Say Bye to VMware PowerCLI ! Time to "GOVC"Say Bye to VMware PowerCLI ! Time to "GOVC"
Say Bye to VMware PowerCLI ! Time to "GOVC"
 
Presentation cloud infrastructure launch – what’s new
Presentation   cloud infrastructure launch – what’s newPresentation   cloud infrastructure launch – what’s new
Presentation cloud infrastructure launch – what’s new
 
Presentation cloud infrastructure launch – what’s new
Presentation   cloud infrastructure launch – what’s newPresentation   cloud infrastructure launch – what’s new
Presentation cloud infrastructure launch – what’s new
 
OpenShift Virtualization - VM and OS Image Lifecycle
OpenShift Virtualization - VM and OS Image LifecycleOpenShift Virtualization - VM and OS Image Lifecycle
OpenShift Virtualization - VM and OS Image Lifecycle
 
V mware v realize orchestrator 6.0 knowledge transfer kit
V mware v realize orchestrator 6.0 knowledge transfer kitV mware v realize orchestrator 6.0 knowledge transfer kit
V mware v realize orchestrator 6.0 knowledge transfer kit
 
V mware v realize orchestrator 6.0 knowledge transfer kit
V mware v realize orchestrator 6.0 knowledge transfer kitV mware v realize orchestrator 6.0 knowledge transfer kit
V mware v realize orchestrator 6.0 knowledge transfer kit
 
Using Packer to Migrate XenServer Infrastructure to CloudStack
Using Packer to Migrate XenServer Infrastructure to CloudStackUsing Packer to Migrate XenServer Infrastructure to CloudStack
Using Packer to Migrate XenServer Infrastructure to CloudStack
 
Microsoft Azure 新功能導覽 @ Build 2014
Microsoft Azure 新功能導覽 @ Build 2014Microsoft Azure 新功能導覽 @ Build 2014
Microsoft Azure 新功能導覽 @ Build 2014
 
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
 
VMware vSphere 5 seminar
VMware vSphere 5 seminarVMware vSphere 5 seminar
VMware vSphere 5 seminar
 
NIC - Windows Azure Pack - Level 300
NIC - Windows Azure Pack - Level 300NIC - Windows Azure Pack - Level 300
NIC - Windows Azure Pack - Level 300
 
VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...
VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...
VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...
 
V mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitV mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kit
 
Emad Younis - Keynote
Emad Younis - Keynote Emad Younis - Keynote
Emad Younis - Keynote
 
VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...
VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...
VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...
 
User Transparent Service Migration to the Cloud
User Transparent Service Migration to the CloudUser Transparent Service Migration to the Cloud
User Transparent Service Migration to the Cloud
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
 
vBrownBag US - What's New in vSphere 6 Automation
vBrownBag US - What's New in vSphere 6 AutomationvBrownBag US - What's New in vSphere 6 Automation
vBrownBag US - What's New in vSphere 6 Automation
 

Mehr von jonathanmedd

Mehr von jonathanmedd (6)

Using Ansible and PowerShell Together
Using Ansible and PowerShell TogetherUsing Ansible and PowerShell Together
Using Ansible and PowerShell Together
 
PowerCLI in the Enterprise Breaking the Magicians Code original
PowerCLI in the Enterprise Breaking the Magicians Code   originalPowerCLI in the Enterprise Breaking the Magicians Code   original
PowerCLI in the Enterprise Breaking the Magicians Code original
 
Save Time With PowerCLI
Save Time With PowerCLISave Time With PowerCLI
Save Time With PowerCLI
 
An Introduction to PowerShell Modules
An Introduction to PowerShell ModulesAn Introduction to PowerShell Modules
An Introduction to PowerShell Modules
 
PowerShell 2 remoting
PowerShell 2 remotingPowerShell 2 remoting
PowerShell 2 remoting
 
Power Cli Workshop London Vmug
Power Cli Workshop London VmugPower Cli Workshop London Vmug
Power Cli Workshop London Vmug
 

Kürzlich hochgeladen

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 

What's New in PowerCLI 5.0

  • 1. What’s New In PowerCLI 5.0 Jonathan Medd
  • 2. Also known as….. What’s New in PowerCLI 4.1 and 5.0 in the 2nd half of 2011
  • 3. New in PowerCLI 5.0 Summary • License Manager snapin • Image Builder Snapin • Auto Deploy Snapin • Update Manager PowerCLI 5.0 • No change to View PowerCLI • Support for new vSphere 5.0 features, such as Storage DRS • Incremental updates to existing cmdlets
  • 5. Also new in 2nd half of 2011 • VI Property Module • vSphere Distributed Switch PowerCLI Snapin released as a Fling • PowerCLIMan
  • 6. License Manager Snapin • Requires vCenter 5.0 or later • Currently contains one cmdlet, Get- LicenseDataManager • Add.PSSnapin VMware.VimAutomation.License
  • 7. Get-LicenseDataManager Examples 1) Query Licenses $licenseDataManager = Get-LicenseDataManager $licenseDataManager.QueryEntityLicenseData() 2) Add Licenses $licenseData = New-Object VMware.VimAutomation.License.Types.LicenseData $licenseKeyEntry = New-Object Vmware.VimAutomation.License.Types.LicenseKeyEntry $licenseKeyEntry.TypeId = "vmware-vsphere” $licenseKeyEntry.LicenseKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" $licenseData.LicenseKeys += $licenseKeyEntry $licenseDataManager.UpdateAssociatedLicenseData($hostContainer.Uid, $licen seData)
  • 11. Image Builder Snapin • Requires vCenter 5.0 or later • Contains cmdlets for managing depots, image profiles, and VIBs • Add.PSSnapin VMware.ImageBuilder
  • 16. AutoDeploy Snapin • Requires vCenter 5.0 or later • Contains cmdlets that provide an interface to VMware Auto Deploy for provisioning physical hosts with ESXi software • Add.PSSnapin VMware.DeployAutomation
  • 17. Auto Deploy & Image Builder – where’s the GUI? • There is no GUI (yet) for managing either Auto Deploy or Image Builder • Time to learn PowerShell! • Or……
  • 18. Image Builder and Auto Deploy PowerPack • Alan Renouf has created a PowerGUI PowerPack for Image Builder and Auto Deploy • http://www.virtu-al.net/2011/09/15/image- builder-and-auto-deploy-powerpack/
  • 19. Image Builder and Auto Deploy Demo
  • 20. Update Manager PowerCLI 5.0 • Requires vCenter 5.0 or later • Does NOT work with downlevel versions of vCenter – similar to previous releases • Update Manager PowerCLI 4.x will not work with Update Manager 5.0
  • 21. Update Manager PowerCLI 5.0 – What’s New?
  • 22. vSphere 5.0 New Features - PowerCLI Support • Storage DRS (experimental) • Creating virtual machines and hard disks on datastore clusters and defining anti- affinity rules • ESXi Firewall
  • 23.
  • 24. PowerCLI 5.0 – Incremental Updates · Cloning templates with New-Template. · Copying files and folders from and to the guest operating system through the Copy-VMGuestFile cmdlet. · Joining domains through the Get-VMHostAuthentication and Set- VMHostAuthentication cmdlets. · Joining ESX hosts (version 4.1 and later) into an active directory through the Get-VMHostAuthentication and Set-VMHostAuthentication cmdlets. · Retrieving vCenter Server users and groups through the Get-VIAccount cmdlet. · Support for vCenter Servers in linked mode through the Connect-VIServer cmdlet. · Retrieving object properties through the Get-VIProperty cmdlet. · Moving virtual appliances through the Move-VApp cmdlets. · Importing compressed and chunked files through the Import-VApp cmdlet. · Importing and exporting virtual appliances in OVA format. · Support for the SSPI passthrough feature of VIX.
  • 25. Also new in 2nd half of 2011 • VI Property Module • vSphere Distributed Switch PowerCLI Snapin released as a Fling • PowerCLIMan
  • 26. What is a PowerShell Module? • A collection of files containing functions, scripts etc and possibly other files such as the manifest to make it more professional • Stored within a folder as a subfolder of the Modules location. Can be found via $env:PSModulePath • Contents made accessible to the user via the Import-Module cmdlet
  • 27. Why Bother with a PowerShell Module? • Makes sharing of groups of functions and scripts easy • Simple XCOPY style deployment of the module folder either internally or publishing to an external website • Make your commonly used functions available to yourself without ‘Profile Bloat’ – they are available as and when you need them from a module
  • 28. VI Property Module • Currently contains 47 custom VI Properties • Expanding in number all the time • Maintained at www.lucd.info
  • 29. What is a VI Property? • Create custom properties that persist per PowerCLI session
  • 30. VI Property Module • New cmdlet Get-VIProperty displays VI Properties in existing session • Module contains VI properties for: – Cluster – Datastore – Harddisk – PhysicalNic – Portgroup – ScsiControler – ScsiLun – Snapshot – VirtualMachine – VMHost Create your own and submit them for addition to the module.
  • 31. vSphere Distributed Switch PowerCLI cmdlets • The no.1 most requested missing feature from PowerCLI • Community effort from LucD to fill the gap • Community effort available as a module in the PowerCLI Book • Now released as a snapin as a VMware Fling • So NOT supported (yet) – Does not work with PowerCLI 5.0 (yet) – 32bit only
  • 32. vSphere Distributed Switch PowerCLI cmdlets
  • 33. vSphere Distributed Switch PowerCLI cmdlets
  • 35. Resources • Image Builder – Image Builder • How to run ESXi stateless with vSphere Auto Deploy – Gabe’s Virtual World • Alan Renouf on PowerScripting to talk What’s New in PowerCLI 5.0.