You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: building account: getting authenticated object ID: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: MSIS9617: The received grant is invalid. The resource for which the grant was issued is no longer valid on this STS.
│ To re-authenticate, please run:
│ az login --scope https://graph.windows.net/.default
│
│ with provider["registry.terraform.io/hashicorp/azurestack"],
│ on test.tf line 1, in provider "azurestack":
│ 1: provider "azurestack" {
│
╵
Panic Output
Expected Behaviour
plan runs successfuly
Actual Behaviour
plan fails
Steps to Reproduce
terraform plan
Important Factoids
Azure stack hub disconnected environment with ADFS
The error seems to happen because the command "az ad signed-in-user show" is ran implicitely, as visible in c:\users<myuser>.azure\commands logs.
Running that command manually fails with the exact same error message, but I don't know why it's ran when running terraform plan in the first place.
Running terraform with a client id/secret instead of using az cli login works fine, but forces us to create SPN for everyone using terraform which is not super convenient
References
#0000
The text was updated successfully, but these errors were encountered:
Community Note
Terraform (and AzureStack Provider) Version
Tried with both Terraform v1.1.1 and v 1.9.5 windows as wel as 1.10.5 linux
azurestack provider v1.0.0
az cli v1.29.0
Affected Resource(s)
any resource
Terraform Configuration Files
Debug Output
terraform.exe plan
│ Error: building account: getting authenticated object ID: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: MSIS9617: The received grant is invalid. The resource for which the grant was issued is no longer valid on this STS.
│ To re-authenticate, please run:
│ az login --scope https://graph.windows.net/.default
│
│ with provider["registry.terraform.io/hashicorp/azurestack"],
│ on test.tf line 1, in provider "azurestack":
│ 1: provider "azurestack" {
│
╵
Panic Output
Expected Behaviour
plan runs successfuly
Actual Behaviour
plan fails
Steps to Reproduce
terraform plan
Important Factoids
Azure stack hub disconnected environment with ADFS
The error seems to happen because the command "az ad signed-in-user show" is ran implicitely, as visible in c:\users<myuser>.azure\commands logs.
Running that command manually fails with the exact same error message, but I don't know why it's ran when running terraform plan in the first place.
Running terraform with a client id/secret instead of using az cli login works fine, but forces us to create SPN for everyone using terraform which is not super convenient
References
The text was updated successfully, but these errors were encountered: