lib/azure/armrest/virtual_machine_service.rb
# Create and return a new VirtualMachineService instance. Most
# methods for a VirtualMachineService instance will return one or more
# VirtualMachine instances.
#
# This subclass accepts the additional :provider option as well. The
# default is 'Microsoft.Compute'. You may need to set this to
# 'Microsoft.ClassicCompute' for your purposes.
#
Create and return a new VirtualMachineService instance. Most
methods for a VirtualMachineService instance will return one or more
VirtualMachine instances.

This subclass accepts the additional :provider option as well.
Create and return a new VirtualMachineService instance . Most methods for a VirtualMachineService instance will return one or more VirtualMachine instances . This subclass accepts the additional : provider option as well .
def vm_operate(action, vmname, group, options = {})
        raise ArgumentError, "must specify resource group" unless group
        raise ArgumentError, "must specify name of the vm" unless vmname
        url = build_url(group, vmname, action)
        response = rest_post(url, options.to_json)
        Azure::Armrest::ResponseHeaders.new(response.headers).tap do |headers|
          headers.response_code = response.code
        end
      end
def vm_operate ( action , vmname , group , options = { } ) raise ArgumentError , "must specify resource group" unless group raise ArgumentError , "must specify name of the vm" unless vmname url = build_url ( group , vmname , action ) response = rest_post ( url , options . to_json ) Azure :: Armrest :: ResponseHeaders . new ( response . headers ) . tap do | headers | headers . response_code = response . code end end
Create and return a new VirtualMachineService instance.
Create and return a new VirtualMachineService instance .
action
<not_specific>
vmname
<not_specific>
group
<not_specific>
options
<not_specific>