I am trying to run below powershell script and passing $project_name
in --project
parameter but that is not accepting and not referring to variable. How would i use that ?
$project_name = "webapp_deploy1"
$command = "C:\Program Files\Octopus Deploy\Octopus\Octopus.Migrator.exe"
$param = @('partial-export','--project=$project_name','--password=deploy1','--directory=D:\Export Project','--ignore-history','--ignore-deployments','--ignore-tenants','--ignore-certificates','--ignore-machines')
& $command $param