Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.CostManagement swagger incorrect #14572

Open
jazelenk opened this issue May 27, 2021 · 3 comments
Open

Microsoft.CostManagement swagger incorrect #14572

jazelenk opened this issue May 27, 2021 · 3 comments
Labels
Cost Management - Query All issues in cost management associated with tags, dimensions and forecasts. Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@jazelenk
Copy link

https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/costmanagement.json

QueryDatasetConfiguration shows a "columns" option. The Microsoft.CostManagement team says that no such option exists. Indeed, attempting to use it fails.

https://github.com/Azure/azure-rest-api-specs/tree/master/specification/cost-management/resource-manager/Microsoft.CostManagement/stable shows API versions 2020-06-01 and 2021-01-01. Those versions are not recognized by the RP, and the team confirmed that they are not valid. I believe this is the root cause of Azure/azure-sdk-for-python#16102 - some autorest-like thing sees those versions and attempts to use them as defaults because they are newer and published in -stable.

@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label May 27, 2021
@leni-msft leni-msft added Cost Management Service Attention Workflow: This issue is responsible by Azure service team. labels May 31, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label May 31, 2021
@ghost
Copy link

ghost commented May 31, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ms-premp, @ramaganesan-rg.

Issue Details

https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/costmanagement.json

QueryDatasetConfiguration shows a "columns" option. The Microsoft.CostManagement team says that no such option exists. Indeed, attempting to use it fails.

https://github.com/Azure/azure-rest-api-specs/tree/master/specification/cost-management/resource-manager/Microsoft.CostManagement/stable shows API versions 2020-06-01 and 2021-01-01. Those versions are not recognized by the RP, and the team confirmed that they are not valid. I believe this is the root cause of Azure/azure-sdk-for-python#16102 - some autorest-like thing sees those versions and attempts to use them as defaults because they are newer and published in -stable.

Author: jazelenk
Assignees: leni-msft
Labels:

Cost Management, Service Attention, needs-triage

Milestone: -

@jochav
Copy link
Contributor

jochav commented Jun 10, 2021

Hi there, we are looking into it right now, thanks for the heads up @jazelenk

@ShilpiGautam ShilpiGautam added Cost Management - Query All issues in cost management associated with tags, dimensions and forecasts. and removed Cost Management labels Oct 28, 2021
@omrodrig
Copy link
Contributor

For the first issue regarding the "columns" field. The document is misleading. "Columns" is not a field used in the request. This field is used in the response. I will update the documentation accordingly. With regards to the second issue regarding 2020-06-01 and 2020-01-01 not recognizing the RP Query, this will be resolved with our newest version 2020-10-01. Which has already been deployed recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cost Management - Query All issues in cost management associated with tags, dimensions and forecasts. Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants