What is a vCenter Server 7.0 profile? ^
vCenter Server profiles allow us to import and export the vCenter Server configuration via REST APIs, including management, network, authentication, and user configurations. The exported configurations are stored in an easily readable JSON file and can be imported to other vCenter Servers. These profiles can maintain version control between vCenter Servers, so that you can propagate the exported configurations to multiple vCenter Servers. As of now, the maximum supported number of vCenter Servers is 100.
The vCenter Server profile simplifies setup and change management and provides easy detection of noncompliance configs, automated remediation, and configuration data in a user-readable format that empowers today's vSphere administrators. You can easily revert to the last known good configuration by importing the profiles.
vCenter Server profile REST APIs ^
vCenter Server profiles comprise four REST APIs: List, Export, Validate, and Import. As of the initial release of vSphere 7.0, there is no UI for vCenter profiles. The REST APIs can be consumed with DCLI, PowerCLI, or other automation tools (Ansible, Puppet, Chef, etc.). All APIs are also available in the developer center under API Explorer.
As a first step, you can configure all the necessary configurations and settings for one of the vCenter Servers. This can act as the "golden template" of configurations for all other vCenter Servers in the environment.
You can export the vCenter Server profile (appliance configurations, network configurations, and users and privileges) from the source vCenter Server. That profile configuration can then be reviewed for needed changes.
The vCenter Server profile can be modified to suit the administrator's needs. Once a new version of the profile is created with modifications, it can then be used to propagate the modifications to other vCenter Servers. You can selectively export/import the configuration to the other vCenter Servers.
For example, for some vCenter Servers, you can import only the appliance and network configurations and for other vCenter Servers, you can apply all the configurations such as appliance, network, and user configurations. So you can choose to apply only the necessary configurations required for the vCenter Server from the exported profiles.
You can also validate the configuration against a target vCenter Server using the Validate REST API. vCenter Server profile validation allows the changes from the source vCenter Server to be checked against the target vCenter Server for inconsistencies or errors. A response of "valid" or "invalid" is returned. Validation returns the config error information and resolution for each invalid setting, if any.
Where to find the REST APIs? ^
You can easily find all the APIs for vCenter Server profiles in the developer center, under API Explorer. Select the appliance from the drop-down list under the Select API option, and search the term "profile" to quickly find the vCenter Server profile APIs.
Subscribe to 4sysops newsletter!
I hope this article will help you to understand the vCenter Server profile feature, released with VMware vSphere 7.0.