Ask Your Question
3

How can Powershell's Invoke-AzCostManagementQuery be used for timeframes that are not predefined?

asked 2021-09-17 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-08 14:00:00 +0000

scrum gravatar image

To use PowerShell's Invoke-AzCostManagementQuery for timeframes that are not predefined, you can use the "Timeframe" parameter and specify a custom time range using the "Start" and "End" parameters. For example:

Invoke-AzCostManagementQuery -Timeframe Custom -Start "2022-01-01" -End "2022-01-31" -Query "..."

In this example, we are specifying a custom timeframe starting on January 1st, 2022 and ending on January 31st, 2022. The "Query" parameter would be filled in with the desired query to retrieve cost data for that time range.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-09-17 11:00:00 +0000

Seen: 9 times

Last updated: Jul 08 '22