Enables remote access to role instances for the current Windows Azure service.
Enable-AzureRemoteDesktop [-Username] <String>
Run Enable-AzureRemoteDesktop from a service directory to enable remote access to the virtual machines that host the service's web role and worker role instances. You can use a remote desktop connection to configure a virtual machine or troubleshoot issues with your application.
This cmdlet creates a certificate to use for authentication with the role instances and uploads it to the service configuration. You need only provide a user name and password to use for authentication. You can enter the username as a parameter. You will be prompted for a password. You will need to provide a strong password that contains at least six characters, and includes a character from three of the following four categories: lowercase letters, uppercase letters, numbers, and special characters. Only English-language characters are supported.
Remote access will be configured on the role instances when you next deploy or update the service (using Publish-AzureService).
|After you enable RDP for a service, you can open a remote desktop connection to any role instance using the Windows Azure Platform Management Portal. To open the Management Portal, use your Windows Live ID to log into http://windows.azure.com. Then follow the instructions in Enabling Remote Desktop with Windows Azure Roles to connect to a role instance.|
Specifies a user name to use for authentication. The name does not need to be associated with a user account.
Configure remote access for the MyService service, specifying the user name YoursTruly and the password p@ssWrd for authentication:
PS C:\node\MyService> Enable-AzureRemoteDesktop YoursTruly cmdlet Enable-AzureRemoteDesktop at command pipeline position 1 Supply values for the following parameters: Password: ********
Republish the MyService service to enable remote access to the role instances:
PS C:\node\MyService> Publish-AzureService Publishing to Windows Azure. This may take several minutes... 3:56:44 PM - Preparing deployment for MyService with Subscription ID: 0807028c-e0a5-4773-82e3-8cae71dd5702... 3:56:58 PM - Connecting... 3:57:03 PM - Verifying storage account 'MyService'... 3:57:04 PM - Uploading Package... 3:58:05 PM - Upgrading...PS C:\node\MyService> Enable-AzureRemoteDesktop 4:17:09 PM - Created Deployment ID: 7ce799c2023a4ae9b346b970044ed14c. 4:17:09 PM - Starting... 4:17:09 PM - Initializing... 4:17:10 PM - Instance WebRole1_IN_0 of role WebRole1 is ready. 4:17:11 PM - Created Website URL: http://MyService.cloudapp.net. 4:17:11 PM - Complete.