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
terraform {
required_providers {
azuread={
source ="hashicorp/azuread"
version ="~> 3"
}
}
}
# Configure the Azure Active Directory Providerprovider"azuread" {
tenant_id="ad****************70"
}
locals {
app_object_id="/applications/a7********************c6"# the owner id below is an object id of a other applicationowner_id="2b******************2e"
}
resource"azuread_application_owner""application_owners" {
application_id=local.app_object_idowner_object_id=local.owner_id
}
Output
azuread_application_owner.application_owners: Creating...
╷
│ Error: checking for presence of existing Application Id Owner (Application: "a7**********************c6"
│ Directory Object: "2b************************2e"): unable to list Owners with filter "id eq '2b*******************2e'": unexpected status 400 (400 Bad Requ
est) with error: Request_BadRequest: Unsupported directory object class 'Application' in resource identifier for reference 'owners'.
│
│ with azuread_application_owner.application_owners,
│ on main.tf line 22, in resource "azuread_application_owner" "application_owners":
│ 22: resource "azuread_application_owner" "application_owners" {
│
│ checking for presence of existing Application Id Owner (Application: "a7**********************c6"
│ Directory Object: "2b*******************2e"): unable to list Owners with filter "id eq '2b*******************2e'": unexpected status 400 (400 Bad
│ Request) with error: Request_BadRequest: Unsupported directory object class 'Application' in resource identifier for reference 'owners'.
Affected Resource(s)
azuread_application_owner
Terraform Configuration Files
Output
Debug Output
The text was updated successfully, but these errors were encountered: