Closed ericgarff closed 1 month ago
I have validated the client secret above by logging into az cli.
Hi @ericgarff ,
Thank you for taking time to report this issue.
According to the error message, the subscription id specified in the azurerm
provider block could not be found in the az account list --output table
results. Please confirm whether the correct subscription ID is specified or az cli is logged in the correct account.
Thank you, @ms-henglu, even though I thought I'd logged in to the account with that sub ID, apparently I hadn't. Sorry to waste your time.
Thank you for taking the time to raise this! I am going to close this with @ms-henglu‘s response as an answer. If you have future questions, I suggest using the Community Resources, such as the Azure Provider forum.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
v1.9.5
AzureRM Provider Version
4.2.0
Affected Resource(s)/Data Source(s)
provider
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
AzureCli authorizer works.
Actual Behaviour
See Output above
Steps to Reproduce
Important Factoids
I have validated the subscription ID, tenant ID, client ID, and client secret. This was working previously using azurerm provider 3.85.0, but that gets a different error about token validity
References
No response