Files
Brian Wuchner 248a86f0a2 Fixing instances of sort with sort-object
Fixes #535 - module using sort instead of sort-object causing unexpected behavior on powershell core/Linux.
Instead of only addressing the issue at hand, I looked for other instances of sort being used instead of sort-object for other modules within this repo and corrected those as well.  I think I got most of them, but feel free to raise another issue if you find another.  If the sort was in an example/help statement, or was inside the logic/process of the function, I replaced sort with sort-object.  In the one case where the sort was only applied to the output I removed the statement -- this way the function user can add the sort in their script and not have to sort output twice.  I changed a couple  select/where with select-object/where-object along the way as well just as I saw them.

Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
2022-02-03 20:11:02 -05:00
..

Prerequisites/Steps to use this module:

  1. This module only works for vSphere products that support VM Encryption. E.g. vSphere 6.5 and later.
  2. All the functions in this module only work for KMIP Servers.
  3. Install the latest version of Powershell and PowerCLI.
  4. Import this module by running: Import-Module -Name "location of this module"
  5. Get-Command -Module "This module Name" to list all available functions.

Note: Deprecating the below functions related to KMServer and KMSCluster from VMware.VMEncryption and using instead the ones from VMware.VimAutomation.Storage,

1, VMware.VMEncryption\Get-DefaultKMSCluster, use instead VMware.VimAutomation.Storage\Get-KmsCluster|where {$.UseAsDefaultKeyProvider}|foreach {$.id}

2, VMware.VMEncryption\Get-KMSCluster, use instead VMware.VimAutomation.Storage\Get-KmsCluster|select id

3, VMware.VMEncryption\Get-KMSClusterInfo, use instead VMware.VimAutomation.Storage\Get-KmsCluster|foreach {$_.extensiondata}

4, VMware.VMEncryption\Get-KMServerInfo, use instead VMware.VimAutomation.Storage\Get-KeyManagementServer|foreach {$_.extensiondata}

5, VMware.VMEncryption\New-KMServer, use instead VMware.VimAutomation.Storage\Add-KeyManagementServer

6, VMware.VMEncryption\Remove-KMServer, use instead VMware.VimAutomation.Storage\Remove-KeyManagementServer

7, VMware.VMEncryption\Set-DefaultKMSCluster, use instead VMware.VimAutomation.Storage\Set-KmsCluster -UseAsDefaultKeyProvider