This cmdlet deploys a server profile to a specific server.
Install-LXCAConfigProfile [-Connection LXCAConnection]
-ProfileID String
-TargetComputeNodeId String[]
-Restart String
[-AsJob]
[CommonParameter]
Install-LXCAConfigProfile [-Connection LXCAConnection]
-ProfileID String
-TargetRackServerId String[]
-Restart String
[-AsJob]
[CommonParameter]
If you specify the -AsJob parameter, this cmdlet returns a Job object. The ConfigPatternDeployResult objects can be retrieved from Job.Output.
If you do not specify the -AsJob parameter, this cmdlet, it returns one or more ConfigPatternDeployResult objects.
The following example retrieves a server profile from one server and deploys it to another server.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$profile = Get-LXCAConfigProfile | where {$_.ServerUuid -ieq AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA}
Remove-LXCAConfigProfileFromSystem -Profile $profile
Install-LXCAConfigProfile -ProfileId $profile.Id -TargetComputeNodeId BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB`
-restart defer
Disconnect-LXCA