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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure CLI v2.37.0 breaks azurerm_client_config - object_id is empty and client id is now the CLI app reg #17886

Open
1 task done
restfulhead opened this issue Aug 4, 2022 · 0 comments

Comments

@restfulhead
Copy link

restfulhead commented Aug 4, 2022

Is there an existing issue for this?

  • I have searched the existing issues

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 "me too" comments, 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

Terraform Version

1.2.6

AzureRM Provider Version

2.84.0

Affected Resource(s)/Data Source(s)

azurerm_client_config

Terraform Configuration Files

terraform {
  backend "azurerm" {
  }
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "=2.84.0"
    }
  }
}

provider "azurerm" {
  skip_provider_registration = true
  features {}
}

data "azurerm_client_config" "current" {
}

output "azurerm_client_config_object_id" {
   value = data.azurerm_client_config.current.object_id
}

Debug Output/Panic Output

...

Expected Behaviour

Prior to Azure CLI v2.37.0, it would output the object id of the current user

Actual Behaviour

The result is empty.

Steps to Reproduce

  1. Install Azure CLI >= v2.37.0
  2. Run az login
  3. Run terraform apply

Important Factoids

No response

References

See Azure/azure-cli#22580 which describes the breaking changes in version 2.37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants