Skip to content

Linter gives deprecation warning for azurerm_key_vault argument #2133

@mundij01

Description

@mundij01

Extension Version

v2.37.2

VS Code Version

Version: 1.104.1 (system setup)
Commit: 0f0d87fa9e96c856c5212fc86db137ac0d783365
Date: 2025-09-17T23:36:24.973Z
Electron: 37.3.1
ElectronBuildId: 12404162
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Windows_NT x64 10.0.22631

Operating System

Windows 11 Enterprise v23H2 OS Build 22631.5909

Terraform Version

Terraform v1.13.2 on windows_386

Steps to Reproduce

  1. create a root module
  2. create azurerm_key_vault using example in provider documentation
  3. you'll see the problem reported by the extension

Expected Behavior

Problem being reported is "enable_rbac_authorization" is deprecated: Reason: "" I expect the reason to be populated. Current azurerm v4.45.1 provider documentation for azurerm_key_vault does not mention the enable_rbac_authorization argument is deprecated.

Actual Behavior

Problem being reported is "enable_rbac_authorization" is deprecated: Reason: ""

Terraform Configuration

resource "azurerm_key_vault" "this" {
  name                          = var.keyvault_name
  location                      = data.azurerm_resource_group.this.location
  resource_group_name           = data.azurerm_resource_group.this.name
  sku_name                      = "standard"
  tenant_id                     = data.azurerm_client_config.current.tenant_id
  public_network_access_enabled = false
  soft_delete_retention_days    = 7
  purge_protection_enabled      = false
  enable_rbac_authorization     = true


  access_policy {
    tenant_id = data.azurerm_client_config.current.tenant_id
    object_id = data.azurerm_client_config.current.object_id

    key_permissions = [
      "Get",
      "List"
    ]

    secret_permissions = [
      "Get",
      "List",
      "Set",
      "Delete",
      "Recover",
      "Backup",
      "Restore"
    ]

    certificate_permissions = []

    storage_permissions = []
  }

  tags = local.tags
}

Project Structure

Gist

No response

Anything Else?

No response

Workarounds

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions