Bhavin Rana
Bhavin Rana

Reputation: 1582

Failed to download RDP file for instance abc_webrole_IN_0 in cloud service testingservicecall

Failed to download RDP file for instance servicecall_webrole_IN_0 in cloud service testingservicecall.

Details:

The supplied cscfg file can not be parsed. 
Got exception Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword.

more info: using windows azure for php mssql with zend.

ServiceConfiguration.cscfg

<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true"/>     
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" />     
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="somename" />     
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="MIIBnQYJKoSomeStringPassucansee" />

      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="2013-12-31T23:59:59.0000000-07:00" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" />

what to put in AccountEncryptedPassword ?

<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="MIIBnQYJKoZIhv... " />

i m using eclipse editor.

Upvotes: 7

Views: 3842

Answers (2)

D.Firka
D.Firka

Reputation: 69

My experience, Just if it happens to someone else:

1) Account Expired so i went to Azure and modified the expiry date (CloudSvc/Remote Desktop)

2) Stopped working with the error posted in this thread.

3) In my case the problem was that the Azure Certificate for remote desktop expired, so you get new one with the same name CN.

4) So when i changed the expiration of the account, kept using the old certificate.

5) the reason it took me some time to find out, is that the Combo to select certificate has the same name twice:

Screenshot of changing RDP user

6) when i changed to the second item with the same name, it started working.

Upvotes: 0

viperguynaz
viperguynaz

Reputation: 12174

you need to rebuild / redeploy the config file with the enable remote access option and the correct cert. If you have manually pasted the encrypted password in, then you likely have a missing or extra character in the username or the password field.

The error is very clear - the config file can't be parsed because the password can't be decrypted.

Use the Visual Studio "Package" Wizard. Right click the Cloud Project >> Package:

Package

Then click "Settings":

Settings

Choose the cert, enter a username, password and expiration date. This will set the appropriate valuse in your ServiceConfiguration file.

Upvotes: 6

Related Questions