lib/fog/azurerm/docs/compute.md in fog-azure-rm-0.3.1 vs lib/fog/azurerm/docs/compute.md in fog-azure-rm-0.3.2

- old
+ new

@@ -36,10 +36,13 @@ Create a new linux server **Info:** Attribute **network_interface_card_ids** is an array of NICs ids. The NIC id at index zero will become primary NIC of this server(virtual machine) by default. +**Info:** +When using **managed_disk_storage_type** you should not pass the **vhd_path** as the managed disk will be used for the OS disk. Also, data disks cannot be attached to a VM which uses managed disks for the OS disk. + ```ruby azure_compute_service.servers.create( name: '<VM Name>', location: 'West US', resource_group: '<Resource Group Name>', @@ -54,11 +57,12 @@ sku: '14.04.2-LTS', # Not required if custom image is being used version: 'latest', # Not required if custom image is being used platform: 'Linux', vhd_path: '<Path of VHD>', # Optional, if you want to create the VM from a custom image. custom_data: 'echo customData', # Optional, if you want to add custom data in this VM. - os_disk_caching: Fog::ARM::Compute::Models::CachingTypes::None # Optional, can be one of None, ReadOnly, ReadWrite + os_disk_caching: Fog::ARM::Compute::Models::CachingTypes::None, # Optional, can be one of None, ReadOnly, ReadWrite + managed_disk_storage_type: Azure::ARM::Compute::Models::StorageAccountTypes::StandardLRS # Optional, can be StandardLRS or PremiumLRS ) ``` Create a new windows server @@ -77,11 +81,12 @@ offer: 'WindowsServerEssentials', # Not required if custom image is being used sku: 'WindowsServerEssentials', # Not required if custom image is being used version: 'latest', # Not required if custom image is being used platform: 'Windows', vhd_path: '<Path of VHD>', # Optional, if you want to create the VM from a custom image. - custom_data: 'echo customData' # Optional, if you want to add custom data in this VM. + custom_data: 'echo customData', # Optional, if you want to add custom data in this VM. + managed_disk_storage_type: Azure::ARM::Compute::Models::StorageAccountTypes::StandardLRS # Optional, can be StandardLRS or PremiumLRS ) ``` ## Create Server Asynchronously @@ -103,10 +108,11 @@ sku: '14.04.2-LTS', # Not required if custom image is being used version: 'latest', # Not required if custom image is being used platform: 'Linux', vhd_path: '<Path of VHD>', # Optional, if you want to create the VM from a custom image. custom_data: 'echo customData', # Optional, if you want to add custom data in this VM. - os_disk_caching: Fog::ARM::Compute::Models::CachingTypes::None # Optional, can be one of None, ReadOnly, ReadWrite + os_disk_caching: Fog::ARM::Compute::Models::CachingTypes::None, # Optional, can be one of None, ReadOnly, ReadWrite + managed_disk_storage_type: Azure::ARM::Compute::Models::StorageAccountTypes::StandardLRS # Optional, can be StandardLRS or PremiumLRS ) ``` Following methods are available to handle async respoonse: - state - pending?