lib/fog/azurerm/docs/compute.md in far-gem-0.5.1 vs lib/fog/azurerm/docs/compute.md in far-gem-0.5.2
- old
+ new
@@ -59,11 +59,12 @@
password: '<Password>', # [Optional], if 'platform' partameter is 'Linux'.
vhd_path: '<Path of VHD>', # [Optional], if you want to create the VM from a custom image.
custom_data: '<Custom Data Value>', # [Optional], if you want to add custom data in this VM.
os_disk_caching: '<Caching Type>', # [Optional], can be one of None, ReadOnly, ReadWrite
managed_disk_storage_type: '<Storage Account Type>', # [Optional], if storage_account_name is passed, can be StandardLRS or PremiumLRS
- os_disk_size: <Disk Size> # [Optional], size of the os disk in GB (upto 1023)
+ os_disk_size: <Disk Size>, # [Optional], size of the os disk in GB (upto 1023)
+ os_disk_name: '<Disk Name>' # [Optional], name of the os disk
)
```
**Info:**
@@ -95,11 +96,12 @@
password: '<Password>', # [Optional], if 'platform' partameter is 'Linux'.
image_ref: '<Image ID>', # [Optional], if you want to create the VM from a custom image.
custom_data: '<Custom Data Value>', # [Optional], if you want to add custom data in this VM.
os_disk_caching: '<Caching Type>', # [Optional], can be one of None, ReadOnly, ReadWrite
managed_disk_storage_type: '<Storage Account Type>', # [Optional], if storage_account_name is passed, can be StandardLRS or PremiumLRS
- os_disk_size: <Disk Size> # [Optional], size of the os disk in GB (upto 1023)
+ os_disk_size: <Disk Size>, # [Optional], size of the os disk in GB (upto 1023)
+ os_disk_name: '<Disk Name>' # [Optional], name of the os disk
)
```
### Virtual Machine (Unmanaged OS Disk)
@@ -121,11 +123,12 @@
version: '<Version>', # Not required if custom image is being used
platform: '<OS Type>',
availability_set_id: '<Availability Set Id>', # [Optional]
vhd_path: '<Path of VHD>', # [Optional], if you want to create the VM from a custom image.
custom_data: '<Custom Data Value>', # [Optional], if you want to add custom data in this VM.
- os_disk_size: <Disk Size> # [Optional], size of the os disk in GB (upto 1023)
+ os_disk_size: <Disk Size>, # [Optional], size of the os disk in GB (upto 1023)
+ os_disk_name: '<Disk Name>' # [Optional], name of the os disk
)
```
## Create Server Asynchronously
@@ -151,11 +154,12 @@
password: '<Password>', # [Optional], if 'platform' partameter is 'Linux'.
vhd_path: '<Path of VHD>', # [Optional], if you want to create the VM from a custom image.
custom_data: '<Custom Data Value>', # [Optional], if you want to add custom data in this VM.
os_disk_caching: '<Caching Type>', # [Optional], can be one of None, ReadOnly, ReadWrite
managed_disk_storage_type: '<Storage Account Type>', # [Optional], can be StandardLRS or PremiumLRS
- os_disk_size: <Disk Size> # [Optional], size of the os disk in GB (upto 1023)
+ os_disk_size: <Disk Size>, # [Optional], size of the os disk in GB (upto 1023)
+ os_disk_name: '<Disk Name>' # [Optional], name of the os disk
)
```
Following methods are available to handle async respoonse:
- state
- pending?
@@ -382,9 +386,11 @@
Get an managed disk object from the get method and then destroy that managed disk.
```ruby
managed_disk.destroy
+# Can be made asynchronously (is synchronous by default)
+managed_disk.destroy(true)
```
## Check Availability Set Existence
```ruby