Azure-docs: Provide updated samples for Forecast API

Created on 16 Feb 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

The filters provided on the page below with the api version listed are not functioning as expected. It ignores the 'Grain' filter and defaults to daily. https://docs.microsoft.com/en-us/rest/api/consumption/forecasts/list Any ideas?

URI = https://management.azure.com/subscriptions/$subid/providers/Microsoft.Consumption/forecasts?=Grain eq 'Monthly'&api-version=2018-10-01


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author billinsvc doc-bug triaged

All 4 comments

@jzuchora87 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@bandersmsft - Please review.

Grain or date filters don't seem to work at all. This is how I tested date filtering:
https://management.azure.com/subscriptions/$subId/providers/Microsoft.Consumption/forecasts?$filter=usagedate ge '2019-09-01' AND usagedate le '2019-11-01'&api-version=2019-05-01

It defaulted to showing 'daily' and only for the current month.

@jzuchora87 I apologize this old issue wasn’t resolved. In an effort to refocus resources on current issues, I’m closing this one. If you feel that the issue wasn’t adequately addressed and you still need assistance, please feel free to reactivate.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ponant picture Ponant  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

bityob picture bityob  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

Favna picture Favna  Â·  3Comments