lib/fog/azurerm/docs/resources.md in fog-azure-rm-0.1.2 vs lib/fog/azurerm/docs/resources.md in fog-azure-rm-0.2.0
- old
+ new
@@ -14,16 +14,24 @@
Next, create a connection to the Resources Service:
```ruby
azure_resources_service = Fog::Resources::AzureRM.new(
- 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
+ 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.
)
```
+
+## Check Resource Group Existence
+
+```ruby
+ azure_resources_service.resource_groups.check_resource_group_exists(<Resource Group name>)
+```
+
## Create Resource Group
Create a new resource group
```ruby
@@ -106,9 +114,21 @@
azure_resources_service.delete_resource_tag(
'<Resource-ID>',
'<Tag-Key>',
'<Tag-Value>'
)
+```
+
+## Check Resource Existence
+
+```ruby
+ azure_resources_service.azure_resources.check_azure_resource_exists(<Resource-ID>, <API-Version>)
+```
+
+## Check Deployment Existence
+
+```ruby
+ azure_resources_service.deployments.check_deployment_exists(<Resource Group Name>, <Deployment name>)
```
## Create Deployment
Create a Deployment