Open jakubslonxlab opened 2 months ago
Hi @jakubslonxlab, thanks for opening this issue. By default, the azuread_application
resource sets requested_access_token_version = 1
, which is the same default value as the API. If you are getting this error, it suggests that for one reason or another the application must have this property set to 2
. Can you try adding the following to your configuration?
resource "azuread_application" "sp_application" {
# ...
api {
requested_access_token_version = 2
}
}
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
azuread_application
We are not setting a property for
api
block on the resource. We have changed the permissions as part of our investigation, but this did not affect the behaviour.Terraform Configuration Files
Permissions that we assign:
Expected Behavior
Create the
azuread_application
resource:Actual Behavior
Steps to Reproduce
terraform plan
terraform apply
-> fails