POLLOX
POLLOX

Reputation: 302

How to control Azure VMs using Powershell

Hello I´m trying to automate AZURE VM management like Amazon EC2. Is there any way to manage AZURE VM from Powershell like Amazon EC2 API ?. I can´t find API easily documentation or how to do it. Thanks in advance :)

Upvotes: 3

Views: 1189

Answers (2)

David Makogon
David Makogon

Reputation: 71120

Windows Azure has a REST-based API for just about everything, including the management API. Additionally, the API has a corresponding set of Windows Azure PowerShell cmdlets that you can call, which essentially lets you automate your entire deployment via PowerShell.

The most recent version, 2.2.2, has the ability to persist subscription settings, obviating the need for repeating parameters such as subscription ID and certificate thumbprint. Michael Washam, Technical Evangelist, blogged about v2.2.2 here.

Upvotes: 0

Preet Sangha
Preet Sangha

Reputation: 65556

Windows Azure Management Cmdlets lists a number of AzureVM cmdlets.

  • Add-AzureDataDisk : Adds a new data disk to a virtual machine object.
  • Add-AzureProvisioningConfig : Adds the provisioning configuration to a Windows Azure virtual machine.
  • Add-AzureEndpoint : Adds a new endpoint to a Windows Azure virtual machine

  • Export-AzureVM : Exports a Windows Azure virtual machine state to a file.

.....and tonnes more

Do these not cover what you need?

Upvotes: 4

Related Questions