How to set service tree properties with graph API via bicep template

Ying Liu 0 Reputation points Microsoft Employee
2025-06-11T14:30:53.1633333+00:00

I am creating extra ID via bicep template . However, I can't find any service tree properties in the graph api... which will easy to lead to security compliance issue.

can anyone share your idea?

resource entraApp 'Microsoft.Graph/applications@v1.0' = {
  displayName: entraAppDisplayName
  uniqueName: entraAppUniqueName
  web: {
    redirectUris: [
      apimOauthCallback
    ]
  }
  api: {
    oauth2PermissionScopes: exposedScopes
    requestedAccessTokenVersion: 2
    preAuthorizedApplications: [
      {
        appId: publicClientIdOauthSignin
        delegatedPermissionIds: [
          exposedScopes[0].id
        ]
      }
    ]
  }
  requiredResourceAccess: [
    {
      resourceAppId: '00000003-0000-0000-c000-000000000000'
      resourceAccess: [
        {
          id: 'e1fe6dd8-ba31-4d61-89e7-88639da4683d' // User.Read
          type: 'Scope'
        }
      ]
    }
  ]
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Arielle Crowe 0 Reputation points Microsoft Employee
    2025-06-11T17:20:58.65+00:00

    Use the 'serviceManagementReference' property

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.