Мы испытываем очень раздражающую ошибку в среде Service Manager Automation (SMA). Команда «Get-AutomationVariable» ничего не возвращает, когда она заключена в круглые скобки ...SMA Get-AutomationVariable ошибка
Неужели кто-нибудь сталкивается с той же проблемой?
workflow Start-TestWorkflow
{
$Stage = Get-AutomationVariable -Name 'SMAStage'
$ModulePath = Get-AutomationVariable -Name 'ModulePath'
$Stage
$ModulePath
"---------------------"
$Stage2 = (Get-AutomationVariable -Name 'SMAStage')
$ModulePath2 = (Get-AutomationVariable -Name 'ModulePath')
$Stage2
$ModulePath2
}
Выход:
PROD
\\contoso.com\dfs\Applications\SMAS\PROD\Modules
---------------------