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

az costmanagement query deprecated #148

Open
JohannesRudolph opened this issue Apr 26, 2022 · 1 comment
Open

az costmanagement query deprecated #148

JohannesRudolph opened this issue Apr 26, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JohannesRudolph
Copy link
Member

Describe the bug
Azure CLI no longer ships the az costmanagement query command used by collie https://github.com/Azure/azure-cli-extensions/blob/main/src/costmanagement/HISTORY.rst#021

This means that attempts to fetch cost data from azure fail for users with that new version of the azure cli extension installed.

Reach of the bug
Only users using Azure with that new version of the azure cli extension installed.

Impact of the bug
collie tenant costs command fails with errors

To Reproduce

  1. az extension list. verify v0.2.1 of costmanagement extension is installed, e.g.
[
  {
    "experimental": false,
    "extensionType": "whl",
    "name": "costmanagement",
    "path": "/home/jrudolph/.azure/cliextensions/costmanagement",
    "preview": false,
    "version": "0.2.1"
  }
]
  1. collie tenant costs

Expected behavior
Collie fetches cost data as before.

Azure CLI extension release notes claim

You can aggregate or filter the raw data from az costmanagement export instead.

@JohannesRudolph JohannesRudolph added the bug Something isn't working label Apr 26, 2022
@JohannesRudolph
Copy link
Member Author

A workaround for this issue is explicitly installing a working version that predates this breaking change

az extension remove -n costmanagement
az extension add --name costmanagement --version 0.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants