Fixed submitted body formatting
This commit is contained in:
@@ -19,8 +19,10 @@ function Set-ZertoUserCredential {
|
|||||||
process {
|
process {
|
||||||
$uri = '/localsite/virtualizationsettings'
|
$uri = '/localsite/virtualizationsettings'
|
||||||
$body = @{
|
$body = @{
|
||||||
UserName = $UserCredential.UserName
|
Credentials = @{
|
||||||
Password = $UserCredential.GetNetworkCredential().Password
|
UserName = $UserCredential.UserName
|
||||||
|
Password = $UserCredential.GetNetworkCredential().Password
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( $PSCmdlet.ShouldProcess( $script:zvmServer, "Updating hypervisor service account credentials" )) {
|
if ( $PSCmdlet.ShouldProcess( $script:zvmServer, "Updating hypervisor service account credentials" )) {
|
||||||
Invoke-ZertoRestRequest -uri $uri -Method PUT -body ($body | ConvertTo-Json)
|
Invoke-ZertoRestRequest -uri $uri -Method PUT -body ($body | ConvertTo-Json)
|
||||||
|
|||||||
Reference in New Issue
Block a user