зеркало из
1
0
Форкнуть 0
This commit is contained in:
Ranjan Kumar 2014-02-10 15:23:13 +05:30
Родитель 9fd0735d6c
Коммит 6d1cfe9a8b
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -392,7 +392,8 @@ options = {
:vm_size => 'Small', #valid choices are (ExtraSmall, Small, Medium, Large, ExtraLarge, A6, A7) :vm_size => 'Small', #valid choices are (ExtraSmall, Small, Medium, Large, ExtraLarge, A6, A7)
:affinity_group_name => 'affinity1', :affinity_group_name => 'affinity1',
:virtual_network_name => 'xplattestvnet', :virtual_network_name => 'xplattestvnet',
:subnet_name => 'subnet1' :subnet_name => 'subnet1',
:availability_set_name => 'availabiltyset1'
} }
virtual_machine_service.create_virtual_machine(params,options,add_role=false) virtual_machine_service.create_virtual_machine(params,options,add_role=false)
# Here add_role is used as a flag to create multiple roles under the same cloud service. This parameter is false # Here add_role is used as a flag to create multiple roles under the same cloud service. This parameter is false

Просмотреть файл

@ -85,6 +85,7 @@ module Azure
# * +:ssh_port+ - Integer. Specifies the SSH port number. # * +:ssh_port+ - Integer. Specifies the SSH port number.
# * +:vm_size+ - String. Specifies the size of the virtual machine instance. # * +:vm_size+ - String. Specifies the size of the virtual machine instance.
# * +:winrm_transport+ - Array. Specifies WINRM transport protocol. # * +:winrm_transport+ - Array. Specifies WINRM transport protocol.
# * +:availability_set_name+ - String. Specifies the availability set name.
# #
# ==== add_role # ==== add_role
# #