Chapter 09/circuit-oneops-1-master/components/cookbooks/azure_base/libraries/resource_group_manager.rb
# This method will retrieve the resource group from azure.
# if the resource group is not found it will return a nil.
This method will retrieve the resource group from azure.
if the resource group is not found it will return a nil.
This method will retrieve the resource group from azure . if the resource group is not found it will return a nil .
def exists?
      begin
        response = @client.resource_groups.check_existence(@rg_name).value!
        return response.body
      rescue MsRestAzure::AzureOperationError => e
        OOLog.fatal("Error checking resource group: #{@rg_name}. Exception: #{e.body}")
      rescue => ex
        OOLog.fatal("Error checking resource group: #{ex.message}")
      end
    end
def exists? begin response = @client . resource_groups . check_existence ( @rg_name ) . value! return response . body rescue MsRestAzure :: AzureOperationError => e OOLog . fatal ( "Error checking resource group: #{@rg_name}. Exception: #{e.body}" ) rescue => ex OOLog . fatal ( "Error checking resource group: #{ex.message}" ) end end
This method will retrieve the resource group from azure.
This method will retrieve the resource group from azure .