我想在 Azure 中创建/配置应用服务。尝试使用 Azure 应用服务安装脚本(由软件开发人员提供)时出现问题。我想将软件从本地计算机推送到预先创建的 Azure Paas 应用服务
这是错误:
.\Publish-Orchestrator.ps1
-action Deploy
-package "C:\Users\xxxxxxx\Desktop\RoboOrchestrator\RoboOrchestrator.zip" ` -publishSettingsPath "C:\Users\xxxxxxx\Desktop\RoboOrchestrator\NLRoboTest-Orchestrator.PublishSettings"
**失败并出现错误。
Deploy-Package : 无法部署包 C:\Users\xxxxxxx\Desktop\RoboOrchestrator\RobotOrchestrator.zip At C:\users\xxxxxxx\Desktop\RoboOrchestrator\Publish-Orchestrator.ps1:93 char:5 + Deploy-Package $package $publishSettings.PublishSettings + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Deploy-Package**
如果我尝试使用 VERBOSE 调试 Powershell 以获得更多反馈,则没有任何显示。
Write-Host "`nExecuting command:`n" -ForegroundColor Yellow
Write-Host "msdeploy.exe $args`n"
$shouldContinue = $unattended -or (Prompt-ForContinuation)
if (!$shouldContinue) {
Write-Host "`nExiting...`n" -ForegroundColor Yellow
Exit 0
}
Write-Host ""
#
$proccess = Start-Process $script:msDeployExe -ArgumentList $args -Wait -NoNewWindow -PassThru -verbose **>C:\Users\xxxxxxx\Desktop\RoboOrchestrator\msdeploysync-verbose.log**
if ($proccess.ExitCode) {
Write-Error "`nFailed to deploy package $package"
Exit 1
}
Write-Host "`nPackage $package deployed successfully" -ForegroundColor Green
我该怎么做才能让它开始说话?
亲切的问候