Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created May 3, 2017 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/1862c88d5fae90bf06e6e9928db77370 to your computer and use it in GitHub Desktop.
Save justinyoo/1862c88d5fae90bf06e6e9928db77370 to your computer and use it in GitHub Desktop.
Know Your Cloud Resource Costs on Azure
var resourceGroupCostsResults =
resourceGroupCosts.Select(p =>
ResourceGroupCostResult.GetResourceGroupCostResult(
p,
resourceGroups,
settings.Tags))
.GroupBy(
ResourceGroupCostResultKey.GetResourceGroupCostResultKey,
ResourceGroupCostResult.GetResourceGroupCostResult)
.OrderByDescending(p => p.Cost);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment