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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritise this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritise the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and AzureAD Provider) Version
Terraform: 1.2.2
AzureAD provider: 2.23.0
Terraform Configuration Files
terraform {
required_version=">= 1.2"required_providers {
azurerm={
source ="hashicorp/azurerm"
version ="~> 3.10.0"
}
azuread={
source ="hashicorp/azuread"
version ="~> 2.23.0"
}
}
backend"azurerm" {
resource_group_name="xxx"storage_account_name="xxx"container_name="xxx"key="xxx"subscription_id="xxx"
}
}
provider"azurerm" {
features {}
}
Expected Behavior
AzureAD Provider should be able to access Azure with OIDC
Actual Behavior
The provider produces the following output in GitHub Actions:
╷
│Error: Invalid provider configuration
│
│Provider "registry.terraform.io/hashicorp/azuread" requires explicit
│configuration. Add a provider block to the root module and configure the
│provider's required arguments as described in the provider documentation.
│
╵
╷
│Error: building client: unable to obtain access token: githubAssertion: cannot request token: Get "***": unsupported protocol scheme ""
│
│ with provider["registry.terraform.io/hashicorp/azuread"],
│ on <empty> line 0:
│ (source code not available)
│
╵
Error: Terraform exited with code 1.
Error: Process completed with exit code 1.
Steps to Reproduce
We use a GitHub Actions reusable workflow that looks like this:
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.
Community Note
Terraform (and AzureAD Provider) Version
Terraform:
1.2.2
AzureAD provider:
2.23.0
Terraform Configuration Files
Expected Behavior
AzureAD Provider should be able to access Azure with OIDC
Actual Behavior
The provider produces the following output in GitHub Actions:
Steps to Reproduce
We use a GitHub Actions reusable workflow that looks like this:
Important Factoids
Using OIDC with the AzureRM Provider is working just fine.
Tried adding a empty provider block like this:
That removes the error saying "Provider requires explicit configuration", but not the one for "unable to obtain access token".
Also tried adding:
Then the workflow fails at terraform validation saying the "features" block is not expected.
The text was updated successfully, but these errors were encountered: