Update VMware.VMC.psm1

This commit is contained in:
seanpmassey
2019-08-07 15:27:37 -05:00
parent 2c79a86531
commit 0ba0b870af

View File

@@ -25,7 +25,7 @@ Function Get-VMCCommand {
} }
Function Connect-VMCVIServer { Function Connect-VMCVIServer {
<# <#
.NOTES .NOTES
=========================================================================== ===========================================================================
Created by: VMware Created by: VMware
@@ -43,7 +43,7 @@ Function Connect-VMCVIServer {
Connect-VMCVIServer -Server <VMC vCenter address> -User <Username> -Password <Password> Connect-VMCVIServer -Server <VMC vCenter address> -User <Username> -Password <Password>
.NOTES .NOTES
Easiest way is to pipe through your credentials from Get-VMCSDDCDefaultCredential Easiest way is to pipe through your credentials from Get-VMCSDDCDefaultCredential
#> #>
Param ( Param (
[Parameter(Mandatory=$true)]$Org, [Parameter(Mandatory=$true)]$Org,
[Parameter(Mandatory=$true)]$Sddc, [Parameter(Mandatory=$true)]$Sddc,
@@ -64,7 +64,8 @@ Function Connect-VMCVIServer {
Write-Host "Connecting to VMC CIS Endpoint" $Server Write-Host "Connecting to VMC CIS Endpoint" $Server
Connect-CisServer -Server $Server -User $creds.cloud_username -Password $creds.cloud_password | Add-Member -MemberType Noteproperty -Name Location -Value "VMC" Connect-CisServer -Server $Server -User $creds.cloud_username -Password $creds.cloud_password | Add-Member -MemberType Noteproperty -Name Location -Value "VMC"
} }
} }
Function Get-VMCOrg { Function Get-VMCOrg {
<# <#
.NOTES .NOTES