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 empty in Azure Cloud Shell #6310
Comments
It seems that there is the same issue when a managed identity is used for authentication. |
Yes, that appears to be the same problem. I was logged in as user though, Cloud Shell manages that. This does get the object id in that case: data external account_info {
program = [
"az",
"ad",
"signed-in-user",
"show",
"--query",
"{object_id:objectId}",
"-o",
"json",
]
} |
I have the exact same issue |
I get the same issue from a VM authenticating with MSI.
The feature they are waiting on was implemented in this commit hashicorp/go-azure-helpers@c443704 - so I think that someone just need to get them to change the code. |
@JoeSainsburys in the commit you linked to, the There is another related issue about this: #7787 |
👋 CloudShell utilizes MSI authentication, which is the root-cause of this bug - as such I'm going to close this in favour of #7787 which is tracking that issue, would you mind subscribing to that issue for updates? Thanks! |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_client_config
(data)Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform init
terraform apply
Important Factoids
This only happens when run from Azure Cloud Shell (shell.azure.com)
References
The text was updated successfully, but these errors were encountered: