With PowerShell it is fast and convenient to manage my development and test servers running on Windows Azure. It is just easier to use command line tools than logging into the Azure management portal shutting down each VM. To set up PowerShell:
- Install the Azure PowerShell cmdlets
- Start the Azure PowerShell (do not start the regular PowerShell as it is not preconfigured with the Azure PowerShell cmdlets)
- Authorize Azure PowerShell to access your Azure subscriptions by typing in the Azure PowerShell shell:
Add-AzureAccount
In the sign-in window, provide your Microsoft credentials for the Azure account.
If you like me have multiple Azure subscriptions – change the default subscription with:
Select-AzureSubscription
[-SubscriptionName]
To start an Azure VM the syntax is:
Start-AzureVM [–Name] [-ServiceName]
To start a VM named vs2015 in the cloud service lybCloudService requires as little as:
|
No comments:
Post a Comment