#DNS This document explains how to get started using Azure DNS Service with Fog. ## Usage First of all, you need to require the Fog library by executing: ```ruby require 'fog/azurerm' ``` ## Create Connection Next, create a connection to the DNS Service: ```ruby azure_dns_service = Fog::DNS::AzureRM.new( tenant_id: '', # Tenant id of Azure Active Directory Application client_id: '', # Client id of Azure Active Directory Application client_secret: '', # Client Secret of Azure Active Directory Application subscription_id: '', # Subscription id of an Azure Account :environment => '' # Azure cloud environment. Default is AzureCloud. ) ``` ## Check Zone Existence ```ruby azure_dns_service.zones.check_zone_exists(, ) ``` ## Create Zone Create a new Zone ```ruby azure_dns_service.zones.create( name: '', resource_group: '' ) ``` ## List Zones ```ruby azure_dns_service.zones.each do |zone| puts "#{zone.name}" puts "#{zone.resource_group}" end ``` ## Retrieve a single Zone Get a single record of Zone ```ruby zone = azure_dns_service .zones .get('', '') puts "#{zone.name}" ``` ## Destroy a single Zone Get Zone object from the get method(described above) and then destroy that Zone. ```ruby zone.destroy ``` ## Check Record Set Existence ```ruby azure_dns_service.record_sets.check_record_set_exists(, , , ) ``` ## Create Record Set Create a new Record Set ```ruby azure_dns_service.record_sets.create( name: '', resource_group: '', zone_name: '', records: , type: '', ttl: