-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
data.azurerm_client_config.current.object_id return "" empty when upgrading az cli to 2.37.0 #16982
Comments
Switching to using the azuread provider is a workaround for now. |
This also works:
|
* Terraform 1.2.1 * Update providers * Switch to azuread_client_config, mitigating hashicorp/terraform-provider-azurerm#16982
Fixed via #17074 |
This functionality has been released in v3.9.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Remove version constraints for fxture to always use latest version of providers when running tests. This prevents issues caused by breaking changes in the Azure CLI, e.g. hashicorp/terraform-provider-azurerm#16982. Closes #16
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.2.1
AzureRM Provider Version
3.7.0 or 2.88.1
Affected Resource(s)/Data Source(s)
data.azurerm_client_config.current.object_id
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
object_id = "object id of the logged in user"
Actual Behaviour
When upgrading the azure cli to version 2.37.0
Steps to Reproduce
Upgrading the azure cli to version 2.37.0
Login to azure with a user
terraform apply the code above
Note:
az ad signed-in-user show
was returning objectId with previous versions
now return "id" for the user object_id
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: