tag:help.appveyor.com,2012-11-13:/discussions/problems/25909-add-your-own-cloud-fails-on-macosAppVeyor: Discussion 2020-04-03T18:47:22Ztag:help.appveyor.com,2012-11-13:Comment/480029152020-01-13T21:21:20Z2020-01-13T21:21:20ZAdd your own cloud fails on macos<div><p>Hi Mark,</p>
<p>Could you try running this script with your token and see what error you are getting:</p>
<pre>
<code> $apiToken = '<your-token>'
$headers = @{
"Authorization" = "Bearer $apiToken"
"Content-type" = "application/json"
}
Invoke-RestMethod -Uri "https://ci.appveyor.com/api/projects" -Headers $headers -Method Get</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/480029152020-01-18T11:37:52Z2020-01-18T11:37:55ZAdd your own cloud fails on macos<div><p>Thank you Feodor,</p>
<p>You gave me a hint how to resolve this. I've tried snippet you suggested and saw that Auth method is not allowed so I've checked security settings and turned on<br>
<code>API v1 & API v2</code> auth and after that was able to setup own build agent with pwsh cmdlet</p></div>Mark Tstag:help.appveyor.com,2012-11-13:Comment/480029152020-01-19T02:53:38Z2020-01-19T02:53:38ZAdd your own cloud fails on macos<div><p>Cool, thanks for the update!</p></div>Feodor Fitsner