APIOps Toolkit for Azure APIM - Error publishing API

Prathap S 0 Reputation points
2024-02-23T14:58:22.7333333+00:00

I'm using APIOPS toolkit to migrate APIs from one instance to another. I'm able to extract single API using configuration extractor yaml file. While publishing the same, I'm facing error with no proper explaination. Exception: /home/vsts/work/_temp/d12e6752-caa2-44b0-a001-2242c7dc60bc.ps1:9 Line | 9 | if ($LASTEXITCODE -ne 0) { throw "Running publisher failed."} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Running publisher failed. ##[debug]Exit code 1 received from tool '/usr/bin/pwsh' ##[debug]STDIO streams have closed for tool '/usr/bin/pwsh' ##[debug]task result: Failed ##[error]PowerShell exited with code '1'. ##[debug]Processed: ##vso[task.issue type=error;]PowerShell exited with code '1'. ##[debug]Processed: ##vso[task.complete result=Failed;]PowerShell exited with code '1'. ##[debug]task result: Failed ##[error]PowerShell wrote one or more lines to the standard error stream. ##[debug]Processed: ##vso[task.issue type=error;]PowerShell wrote one or more lines to the standard error stream. ##[debug]Processed: ##vso[task.complete result=Failed;]PowerShell wrote one or more lines to the standard error stream. ##[error]Exception: /home/vsts/work/_temp/d12e6752-caa2-44b0-a001-2242c7dc60bc.ps1:9 Line | 9 | if ($LASTEXITCODE -ne 0) { throw "Running publisher failed."} ##[debug]Processed: ##vso[task.issue type=error;]Exception: /home/vsts/work/_temp/d12e6752-caa2-44b0-a001-2242c7dc60bc.ps1:9 Line | 9 | if ($LASTEXITCODE -ne 0) { throw "Running publisher failed."} ##[error] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Running publisher failed. ##[debug]Processed: ##vso[task.issue type=error;] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Running publisher failed.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,327 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.