lib/fog/azurerm/docs/storage.md in fog-azure-rm-0.0.4 vs lib/fog/azurerm/docs/storage.md in fog-azure-rm-0.0.5
- old
+ new
@@ -58,19 +58,29 @@
azure_storage_service.storage_accounts.check_name_availability('<Storage Account name>')
```
## Create Storage Account
-Create a new storage account
+Create a new storage account. Replication attribute for Standard and Premium account types are as follows
+Standard: LRS (Standard Locally-redundant storage)
+ ZRS (Standard Zone-redundant storage)
+ GRS (Standard Geo-redundant storage)
+ RAGRS (Standard Read access geo-redundant storage)
+Premium: LRS (Premium Locally-redundant storage)
+
```ruby
azure_storage_service.storage_accounts.create(
:name => '<Storage Account name>',
:location => 'West US',
- :resource_group => '<Resource Group name>'
+ :resource_group => '<Resource Group name>',
+ :account_type => '<Standard/Premium>' # Optional. Default value 'Standard'. Allowed values can only be Standard or Premium
+ :replication => 'LRS' # Optional. Default value 'LRS'
)
```
+Premium Storage account store data on solid state drives (SSDs). For more details on standard and premium storage accounts, see [Introduction to Microsoft Azure Storage](https://azure.microsoft.com/en-us/documentation/articles/storage-introduction/) and [Premium Storage: High-Performance Storage for Azure Virtual Machine Workloads](https://azure.microsoft.com/en-us/documentation/articles/storage-premium-storage/).
+
## List storage accounts
##### List storage accounts in a subscription
```ruby
@@ -104,10 +114,12 @@
Get access keys of a storage account
```ruby
keys_hash = storage_acc.get_access_keys
-puts "#{keys_hash['key1']} #{keys_hash['key2']}"
+keys_hash.each do |keys|
+ puts "#{keys.key_name}: #{keys.value}"
+end
```
## Destroy a single Storage Account
Get storage account object from the get method and then destroy that storage account.