lib/fog/azurerm/docs/storage.md in fog-azure-rm-0.3.3 vs lib/fog/azurerm/docs/storage.md in fog-azure-rm-0.3.4
- old
+ new
@@ -29,16 +29,16 @@
If you only want to manage the storage accounts, you can create the connection without the storage account information:
```ruby
azure_storage_service = Fog::Storage.new(
- :provider => 'AzureRM',
- :tenant_id => '<Tenantid>', # Tenant id of Azure Active Directory Application
- :client_id => '<Clientid>', # Client id of Azure Active Directory Application
- :client_secret => '<ClientSecret>', # Client Secret of Azure Active Directory Application
- :subscription_id => '<Subscriptionid>', # Subscription id of an Azure Account
- :environment => '<AzureCloud/AzureChinaCloud/AzureUSGovernment/AzureGermanCloud>' # Azure cloud environment. Default is AzureCloud.
+ provider: 'AzureRM',
+ tenant_id: '<Tenantid>', # Tenant id of Azure Active Directory Application
+ client_id: '<Clientid>', # Client id of Azure Active Directory Application
+ client_secret: '<ClientSecret>', # Client Secret of Azure Active Directory Application
+ subscription_id: '<Subscriptionid>', # Subscription id of an Azure Account
+ environment: '<AzureCloud/AzureChinaCloud/AzureUSGovernment/AzureGermanCloud>' # Azure cloud environment. Default is AzureCloud.
)
```
If you only want to manage the storage data, you can create the connection without the Azure subscription information:
@@ -76,16 +76,17 @@
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>',
- :account_type => '<Standard/Premium>', # Optional. Default value 'Standard'. Allowed values can only be Standard or Premium
- :replication => 'LRS', # Optional. Default value 'LRS'
- :encryption => true # Optional. If you want to enable encryption. Default value is 'false'
+ name: '<Storage Account name>',
+ location: '<Location>',
+ 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'
+ encryption: true, # [Optional] Enables encryption. Default is false.
+ tags: { key1: "value1", key2: "value2", keyN: "valueN" } # [Optional]
)
```
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
@@ -386,75 +387,9 @@
"category" => "guidance",
"docType" => "textDocuments"
}
directory.save(is_create: false)
```
-
-### Create Recovery Vault
-
-Create a new Recovery Vault object
-
-```ruby
-azure_storage_service.recovery_vaults.create(
- name: '<vault_name>',
- location: '<location>',
- resource_group: '<resource_group_name>'
-```
-
-### Get Recovery Vault
-
-Retrieves a Recovery Vault object
-
-```ruby
-recovery_vault = azure_storage_service.recovery_vaults.get(
- 'Vault Name',
- 'Vault Resource Group'
-)
-```
-
-### List Recovery Vaults
-
-List the Recovery Vaults in a resource group
-
-```ruby
-azure_storage_service.recovery_vaults('Resource Group Name').each do |recovery_vault|
- puts recovery_vault.inspect
-end
-```
-
-### Enable Backup Protection
-
-Enables backup protection for a virtual machine in the recovery vault. Backup protection for a virtual machine must be enabled before running backup.
-
-```ruby
-recovery_vault.enable_backup_protection('Virtual Machine Name', 'Virtual Machine Resource Group')
-```
-
-### Disable Backup Protection
-
-Disables backup protection for a virtual machine in the recovery vault.
-
-```ruby
-recovery_vault.disable_backup_protection('Virtual Machine Name', 'Virtual Machine Resource Group')
-```
-
-### Start Backup
-
-Starts the backup process for a given virtual machine
-
-```ruby
-recovery_vault.start_backup('Virtual Machine Name', 'Virtual Machine Resource Group')
-```
-
-### Destroy Recovery Vault
-
-Destroys the Recovery Vault
-
-```ruby
-recovery_vault.destroy
-```
-
-Note that a Recovery Vault must not contain any backup protectable items or tasks running in order for you to delete it. If any item is present, it must be deleted from the portal first before running this command.
## Support and Feedback
Your feedback is appreciated! If you have specific issues with the fog ARM, you should file an issue via Github.