turbot / steampipe-mod-azure-insights

View dashboards and reports across all of your Azure subscriptions using Powerpipe and Steampipe.
https://hub.powerpipe.io/mods/turbot/azure_insights
Apache License 2.0
10 stars 2 forks source link

Update mod.sp to address deprecation warning #114

Closed khushboo9024 closed 10 months ago

khushboo9024 commented 11 months ago

Describe the bug The current version of the mod returns a warning due to using the deprecated option version instead of min_version for the azure and azuread plugin.

This issue can be trivially resolved by updating

  require {
    steampipe = "0.18.0"
    plugin "azure" {
      version = "0.40.1"
    }
    plugin "azuread" {
      version = "0.8.3"
    }
  }

to

  require {
    steampipe {
      min_version = ""0.18.0"
    }
    plugin "azure" {
      min_version = "0.40.1"
    }
    plugin "azuread" {
      min_version = "0.8.3"
    }
  }

Steampipe version (steampipe -v) Example: v0.3.0

Plugin version (steampipe plugin list) Example: v0.5.0

To reproduce Steps to reproduce the behavior (please include relevant code and/or commands).

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.