File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ Function Get-BcContainerServerConfiguration {
14
14
)
15
15
16
16
Invoke-ScriptInBcContainer - containerName $containerName - ScriptBlock{ Param ($ContainerName )
17
- $config = Get-NAVServerConfiguration - serverinstance BC - AsXml
18
- $Object = [ordered ]@ { " ContainerName" = $ContainerName }
17
+ $config = Get-NavServerInstance | Get-NAVServerConfiguration - AsXml
18
+ $object = [ordered ]@ { " ContainerName" = $ContainerName }
19
19
if ($config ) {
20
20
$Config.configuration.appSettings.add | ForEach-Object {
21
- $Object += @ { " $ ( $_.Key ) " = $_.Value }
21
+ $object += @ { " $ ( $_.Key ) " = $_.Value }
22
22
}
23
23
}
24
24
else {
25
- $Object += @ { " ServerInstance" = " " }
25
+ $object += @ { " ServerInstance" = " " }
26
26
}
27
27
$object | ConvertTo-Json - Depth 99 - compress
28
28
} - argumentList $containerName | ConvertFrom-Json
You can’t perform that action at this time.
0 commit comments