PowerCLI, dodawanie “credentials” na stałe dla użytkownika.

VMware
1

Dla skryptów wywoływanych task schedulera albo z konta użytkownika kłopotliwe jest wołanie za każdym logowaniem do vCenter danych: użytkownika i hasła.

Z tego względu wygodnie jest użyć specjalną fukcję: New-VICredentialStoreItem. Funkcja ta utrzymuje dane logowania (w postaci zaszyfrowanej – ale niczym wyrafinowanym) w profilu użytkownika.

 

Proste użycie:

New-VICredentialStoreItem -Host 192.168.10.10 -User "Andrey" -Password "my favorite password" 

Ciekawy blog w temacie:
https://blogs.vmware.com/PowerCLI/2011/11/have-you-seen-powerclis-credential-store-feature.html
Dokumentacja
https://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/New-VICredentialStoreItem.html

1 Comment

Leave a Reply to Janusz Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

VMware
VCF, backup configuration

Backup implementation for VMware component is fairly easy. Just the requirements is to configure SFTP server in proper way and make it network available to the VMware components. SDDC Manager and NSX Manager backup In VCF Operations it is possible to configure backup for SDDC Manager and NSX Manager. Go …

VMware
VCF Automation, fresh environment configuration with identity providers and access control.

Introduction Login Login as user admin to the Organization name: system or if selected manual: Check the connections (in Administration section), where you should see connection to the vCenter and NSX-t manager as those are provided automatically via VCF Operations: the same for VCF Instances: Also check your networking: Identity …

VMware
VCF SoS

SoS (Supportability and Serviceability) command can be used for troubleshooting purpose to generate VCF (per component) log bundle, massively enable/disable ssh service on ESXi, vCenter, password and certificates expiry status, verify cluster health and many other. while troubleshooting, the following commands can be helpful: