Repository navigation
Show CostAnalysis
Performs analysis of the data returned by Get-SubscriptionCost and generates charts and statistics.
Show-CostAnalysis [[-Cost] <Object>] [-ComparePrevious] [[-ConvertToCurrency] <String>]
[[-SparkLineSize] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Use with Get-SubscriptionCost to generate charts and statistics for Azure consumption data. Useful for getting a quick view of the historical costs of one of more Azure subscriptions across one or more months and to see the current Total costs, cost by day (as a chart), Top 15 most expensive service types, etc.
Get-SubscriptionCost | Show-CostAnalysis
Returns cost analysis information for the current billing month for all subscriptions in the current Azure context.
Show-CostAnalysis -Cost $Cost -SparkLineSize 5
Returns cost analysis information for the cost data in $Cost with Sparkline charts that are 5 rows in height.
The cost object returned by Get-SubscriptionCost
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseSwitch: Enables additional analysis and charts for the previous cost data, Requires Get-SubscriptionCost -ComparePrevious be used for the cost data.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: ComparePrev
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseSpecify via 3 letter code, a currency that you would like the subscription costs converted to. E.g: USD, GBP, EUR, CAD
Type: String
Parameter Sets: (All)
Aliases: Currency
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe row height of sparklines to generate (requires PSparkines module). Default: 3.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: 3
Accept pipeline input: False
Accept wildcard characters: False{{Fill ProgressAction Description}}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).