In Chapter 3, Managing Azure Virtual Machines with PowerShell, we created a new Microsoft Azure virtual machine. In that example, the virtual machine was named PSAuto2012R2
, and the cloud service was named PSAutomation2012R2
. We will use the following steps to manage this cloud service and connect to the virtual machine with RDP:
Open Microsoft Azure PowerShell from the Start menu and connect it to an Azure subscription.
Note
We must first be connected to Azure in order to create and manage cloud services. If not connected to Azure, refer to the Connecting to a Microsoft Azure subscription section in Chapter 1, Getting Started with Azure and PowerShell. In addition, we should have an Azure virtual machine up-and-running. Refer to Chapter 3, Managing Azure Virtual Machines with PowerShell, for more detail on how to create a new virtual machine.
Use the
Get-AzureService
cmdlet (PS C:\> Get-AzureService
) to...