Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

How to assign and apply a Host Profile to ESXi host

$
0
0

I can able to list the Host profiles in my vCenter.

 

var vCenterName = HostName.sdkConnection;

var vCProfile = vCenterName;

for each (var profile in vCProfile.hostProfileManager.profile) { 

  System.log(profile.name);

}

 

can any one help me with VRO pice of code, How to assign (i.e, associate) and apply a host profile to a selected ESXi host.

 

1, i am trying to associate profile with below command.

 

associateProfile(VcManagedEntity []); -> i am confusing to define with host or Profile ManagedEntity in the VcManagedEntity.

 

2, If we directly try by applying the host profile on host, how we can apply host profile with the object

 

var myVcApplyHostProfileConfigurationSpec = new VcApplyHostProfileConfigurationSpec() ;


Viewing all articles
Browse latest Browse all 49146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>