在Azure App Service创建脚本

时间:2018-02-04 01:16:30

标签: powershell azure paas uipath

我想在Azure中创建/配置App Service。尝试使用Azure应用服务安装脚本(由软件开发人员提供)时,会出现问题。我想将软件从本地计算机推送到预先创建的Azure Paas App Service

这是错误:

  

。\ Publish-Orchestrator.ps1 -action Deploy   -package" C:\ Users \ xxxxxxx \ Desktop \ RoboOrchestrator \ RoboOrchestrator.zip" `   -publishSettingsPath" C:\ Users \ xxxxxxx \ Desktop \ RoboOrchestrator \ NLRoboTest-Orchestrator.PublishSettings"

**失败并出现错误。

  

部署包:   无法部署包C:\ Users \ xxxxxxx \ Desktop \ RoboOrchestrator \ RobotOrchestrator.zip   在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 **

如果我尝试调试Powershell以获得更多关于VERBOSE的反馈,则不会显示任何内容。

    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

我该怎么办才能让它开始说话?

亲切的问候

0 个答案:

没有答案