Comments (4)
Hi, I can't see an API call to query the VMs by name. The only call is the one used which returns all the vCenter VMs. The issue here is that PowerShell requires the key names of a hash to be unique but vCenter doesn't require VM names to be unique. There's no reason to create the hash. It's probably efficient to check if a hash contains a key but we can search in code instead. Try PR #172.
from powercli-example-scripts.
haven't had the time to look into it yet (cause was found last night) but isn't there anything in the virtualmachine helper or something? will check it tonight as well
from powercli-example-scripts.
btw that break isn't needed since the function to add the desktop does work, this way it wouldn't I believe. We need to get rid of the error
from powercli-example-scripts.
The break
is needed other wise if there are duplicates the output list will be out of sync with the input list.
Note that it only breaks from the internal loop. The way the function is used in Add-HVDesktop
requires the index of the input and output to match.
from powercli-example-scripts.
Related Issues (20)
- Desktop.Desktop_Update can't update Datastore settings
- Modify SsoAdmin module to use SecureString for Passwords HOT 1
- remove-hventitlement removes all entitlements
- New-OSCustomizationSpec DomainAdminPassword and DomainPassword properties from DomainCredentials show plain text. HOT 1
- Set-SsoAuthenticationPolicy: Certificate Revocation "Disabled" Option?
- Get-HVPoolSpec of manual pool does not include machine info
- deleteOrRefreshMachineAfterLogoff can only be set for floating user assignment HOT 1
- GlobalSettings.GlobalSettings_Update can't update displayPreLoginMessage (and other boolen properties) via function HOT 1
- Please Add flag for -AddGroup to Set-SsoPersonUser
- Unexpected error Get-SsoPersonUser getting [email protected] HOT 1
- Updating Connection Server General settings HOT 1
- Launching an application headlessly on VMware Horizon server using PowerCLI
- Error while importing pool in json HOT 1
- VMWare.HV.Helper - New-HVPool: Implement addVirtualTPM for instant clones HOT 1
- VMWare.HV.Helper - New-HVPool: implement vGPU profile for instant clones HOT 1
- Non-persistent OS customization spec for Linux does not copy extension data - customization fails HOT 1
- Import-CIVAppTemplate fails HOT 1
- Creating New-HVPool with NVIDIA A16 vGPU Profiles
- Support Modern Auth methods in VMware.vSphere.SsoAdmin
- Support specifying NumCPU, Ram, CoresPerSocket parameters for the Start-HVPool cmdlet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powercli-example-scripts.