forked from mirrors/kingfisher
20 lines
No EOL
849 B
YAML
20 lines
No EOL
849 B
YAML
rules:
|
|
- name: Credentials in Connect-VIServer Invocation
|
|
id: kingfisher.vmware.1
|
|
pattern: |
|
|
(?xi)
|
|
Connect-VIServer
|
|
.{0,50}
|
|
-User \s+ (\S{3,30}) \s+ (?# username )
|
|
.{0,50}
|
|
-Password \s+ (\S{3,30}) (?# password )
|
|
examples:
|
|
- 'Connect-VIServer -Server 192.168.1.51 -User administrator@vSphere.local -Password VMware1!'
|
|
- |
|
|
#Set-PowerCLIConfiguration -InvalidCertificateAction:Ignore
|
|
Connect-VIServer "$endpoint" -User "$username" -Password "$password" | Out-Null
|
|
- 'Connect-VIServer $ESXiHost.EsxiHost -user $ESXiUser -password $ESXipass'
|
|
- '$null = connect-viserver vc.lab.local -user administrator@vsphere.local -password VMware1!'
|
|
|
|
references:
|
|
- https://developer.broadcom.com/powercli/latest/vmware.vimautomation.core/commands/connect-viserver |