Chapter 09/circuit-oneops-1-master/components/cookbooks/azure/libraries/resource_group.rb
# This method will delete the resource group
This method will delete the resource group
This method will delete the resource group
def delete(rg_name)
      begin
        start_time = Time.now.to_i
        response = @client.resource_groups.delete(rg_name).value!
        end_time = Time.now.to_i
        OOLog.info("Resource Group deleted in #{end_time - start_time} seconds")
      rescue MsRestAzure::AzureOperationError => e
        OOLog.fatal("Error deleting resource group: #{e.body}")
      rescue => ex
        OOLog.fatal("Error deleting resource group: #{ex.message}")
      end
    end
def delete ( rg_name ) begin start_time = Time . now . to_i response = @client . resource_groups . delete ( rg_name ) . value! end_time = Time . now . to_i OOLog . info ( "Resource Group deleted in #{end_time - start_time} seconds" ) rescue MsRestAzure :: AzureOperationError => e OOLog . fatal ( "Error deleting resource group: #{e.body}" ) rescue => ex OOLog . fatal ( "Error deleting resource group: #{ex.message}" ) end end
This method will delete the resource group
This method will delete the resource group
rg_name
<not_specific>