Azure Cloud Service and Remote Desktop

Hello, I’m having problem deploying cloud service package which has Remote Desktop enabled in csdef and cscfg files. The error I’m receiving is

Set-AzureDeployment : BadRequest : Legacy plugin RemoteForwarder is found in
15:59:54Error
role . Please remove the import from Service
15:59:54Error
Definition file to use the Extension.
15:59:54Error
At C:\Octopus\Work\20151005204812-8\DeployToAzure.ps1:69 char:5
15:59:54Error

  • Set-AzureDeployment -Upgrade -ServiceName $OctopusAzureServiceName 
    

15:59:54Error
-Package …
15:59:54Error

15:59:54Error

15:59:54Error
    + CategoryInfo          : CloseError: (:) [Set-AzureDeployment], ComputeCl 
15:59:54Error
   oudException
15:59:54Error
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagemen 
15:59:54Error
   t.HostedServices.SetAzureDeploymentCommand
15:59:54Error
15:59:54Error
Script 'C:\Octopus\Work\20151005204812-8\DeployToAzure.ps1' returned non-zero exit code: 1
15:59:54Error
Running rollback conventions...
15:59:54Error
Script 'C:\Octopus\Work\20151005204812-8\DeployToAzure.ps1' returned non-zero exit code: 1
16:00:04Fatal
The step failed: The remote script failed with exit code 1

In ServiceDefinition.csdef I have the following lines

    <Imports>      
	  <Import moduleName="Diagnostics" />	  
           <Import moduleName="RemoteForwarder" />
           <Import moduleName="RemoteAccess" />
    </Imports>

It looks like Octopus does not have access to Azure SDK which has the RemoteAccess and RemoteForwarder extensions. Please let me know how I can configure Octopus to recognize Remote Access modules?

Hi Alex,

Thanks for getting in touch!

That BadRequest is actually coming back from Azure I believe. What version of the SDK did you create those files under?

Damian

Hello Damian, I used latest SDK 2.7. Should I try a test packaging using the same SDK via Visual Studio?

Hello, any news on this one? I’ve been having the same with the Azure SDK 2.8.

Hello Damian and Jeroen,

I found out that since Azure SDK 2.5 we have to use powershell cmdlet Set-AzureServiceRemoteDesktopExtension to enable RDP for Cloud Service. Basically Microsoft moved away from RDP configuration in Service Configuration and replaced it with powershell. I hope this helps you Jeroen and anyone else having similar problem.

Let me know if you need help with this or diagnostics which is also done differently now.

Alex

Hi Alex,

thanks for the feedback.
I solved the issue by deleting all the running instances in the cloud service and redeploying. I also deleted a previous certificate.
After this I did a clean install and there were no more complains.

Hope this helps someone.

Jeroen