lib/cloudcost/azure.rb
def filter_sku_for_us_locations_and_vms_disks_only(sku)
        ret = sku.group_by do |x| 
            ['virtualMachines','disks'].include?(x["resourceType"]) && 
            CFG['AZURE_LOCATIONS'].keys.include?(x["locations"].first)
        end[true]
        return ret
    end
# We will collect all us locations but when building the price
# in the azure_build_price_file.rb script we will only get
# eastus data.
#Locations = {
# "eastus"         => "US East",
# "westus"         => "US West",
# "centralus"      => "US Central",
# "eastus2"        => "US East 2",
# "westus2"        => "US West 2",
# "northcentralus" => "US North Central",
# "southcentralus" => "US South Central",
# "westcentralus"  => "US West Central",
# }
We will collect all us locations but when building the price
in the azure_build_price_file.rb script we will only get
eastus data.
We will collect all us locations but when building the price in the azure_build_price_file . rb script we will only get eastus data .
def filter_sku_for_us_locations_and_vms_disks_only(sku)
        ret = sku.group_by do |x| 
            ['virtualMachines','disks'].include?(x["resourceType"]) && 
            CFG['AZURE_LOCATIONS'].keys.include?(x["locations"].first)
        end[true]
        return ret
    end
def filter_sku_for_us_locations_and_vms_disks_only ( sku ) ret = sku . group_by do | x | [ 'virtualMachines' , 'disks' ] . include? ( x [ "resourceType" ] ) && CFG [ 'AZURE_LOCATIONS' ] . keys . include? ( x [ "locations" ] . first ) end [ true ] return ret end
We will collect all us locations but when building the price
in the azure_build_price_file.rb script we will only get
eastus data.
We will collect all us locations but when building the price in the azure_build_price_file . rb script we will only get eastus data .
sku