lib/azure/virtual_machine_management/serialization.rb in azure-0.7.0.pre vs lib/azure/virtual_machine_management/serialization.rb in azure-0.7.0.pre2
- old
+ new
@@ -87,11 +87,11 @@
) do
xml.RoleName { xml.text params[:vm_name] }
xml.OsVersion('i:nil' => 'true')
xml.RoleType 'PersistentVMRole'
xml.ConfigurationSets do
- provisioning_configuration_to_xml(xml, params, options) if image.image_type == 'OS'
+ provisioning_configuration_to_xml(xml, params, options) if image.image_type == 'OS' || image.image_type == 'VM'
xml.ConfigurationSet('i:type' => 'NetworkConfigurationSet') do
xml.ConfigurationSetType 'NetworkConfiguration'
xml.InputEndpoints do
default_endpoints_to_xml(xml, options)
tcp_endpoints_to_xml(
@@ -279,10 +279,12 @@
vm.data_disks = data_disks_from_xml(role)
subnet = xml_content(role,
'ConfigurationSets ConfigurationSet SubnetNames SubnetName'
)
vm.subnet = subnet unless subnet.empty?
+ static_virtual_network_ipaddress = xml_content(role,'ConfigurationSets ConfigurationSet StaticVirtualNetworkIPAddress')
+ vm.static_virtual_network_ipaddress = static_virtual_network_ipaddress unless static_virtual_network_ipaddress.empty?
vm.os_type = xml_content(role, 'OSVirtualHardDisk OS')
vm.disk_name = xml_content(role, 'OSVirtualHardDisk DiskName')
vm.media_link = xml_content(role, 'OSVirtualHardDisk MediaLink')
vm.image = xml_content(role, 'OSVirtualHardDisk SourceImageName')
break
@@ -365,9 +367,10 @@
endpoints_to_xml(xml, endpoints)
end
xml.SubnetNames do
xml.SubnetName vm.subnet if vm.subnet
end
+ xml.StaticVirtualNetworkIPAddress vm.static_virtual_network_ipaddress if vm.static_virtual_network_ipaddress
end
end
xml.OSVirtualHardDisk do
end
end