tag:help.appveyor.com,2012-11-13:/discussions/problems/2152-switch-azurewebsiteslotAppVeyor: Discussion 2018-10-19T08:17:12Ztag:help.appveyor.com,2012-11-13:Comment/368440032015-05-15T17:07:28Z2015-05-15T17:07:28ZSwitch-AzureWebsiteSlot <div><p>Have you tried calling <code>import-module Azure</code> before
that cmdlet?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368440032015-05-17T18:20:11Z2015-05-17T18:20:11ZSwitch-AzureWebsiteSlot <div><p>I have and it doesn't seem to resolve the issue.</p></div>conortag:help.appveyor.com,2012-11-13:Comment/368440032015-05-18T04:01:27Z2015-05-18T04:01:27ZSwitch-AzureWebsiteSlot <div><p>OK, I've got it.</p>
<p>The cmdlet itself is not a problem at all. It exists on Pro
environment images and you don't need to specify <code>os</code>. I
tested it here: <a href="https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/1.0.494">
https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/...</a></p>
<p>Then that <code>The method or operation is not
implemented</code> error comes from AppVeyor custom PowerShell host
and it means cmdlet is asking for some input which obviously not
supported/implemented. Most probably there are some parameters
missing while calling that cmdlet.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368440032015-05-18T12:03:32Z2015-05-18T12:03:32ZSwitch-AzureWebsiteSlot <div><p>Right. Would it be possible to have the errors passed through so
we can see what's going on. As you can see, I went through about 70
builds trying to debug that :)</p>
<p>I have no idea why the command works for me and not there which
also makes it difficult for me to debug.</p>
<p>Is it possible to connect to your servers and run powershell
commands directly?</p></div>conortag:help.appveyor.com,2012-11-13:Comment/368440032015-05-18T17:19:24Z2015-05-18T17:19:24ZSwitch-AzureWebsiteSlot <div><p>You can look into VM via RDP: <a href="https://github.com/appveyor/ci/blob/master/scripts/enable-rdp.ps1">
https://github.com/appveyor/ci/blob/master/scripts/enable-rdp.ps1</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/368440032015-05-19T08:40:19Z2015-05-19T08:40:19ZSwitch-AzureWebsiteSlot <div><p>Thanks. That's very useful.</p>
<p>I <em>think</em> the issue may have been due to running commands
that require confirmation. Adding a -Force flag got the build
through.</p></div>conor