DSCResources/MSFT_AADServicePrincipal/settings.json

{
  "resourceName": "AADServicePrincipal",
  "description": "This resource configures an Azure Active Directory ServicePrincipal.",
  "roles": {
    "read": [],
    "update": [
      "Application Administrator"
    ]
  },
  "permissions": {
    "graph": {
      "delegated": {
        "read": [
          {
            "name": "Application.Read.All"
          },
          {
            "name": "Group.Read.All"
          },
          {
            "name": "User.Read.All"
          }
        ],
        "update": [
          {
            "name": "Application.ReadWrite.All"
          },
          {
            "name": "Group.Read.All"
          },
          {
            "name": "User.Read.All"
          }
        ]
      },
      "application": {
        "read": [
          {
            "name": "Application.Read.All"
          },
          {
            "name": "Group.Read.All"
          },
          {
            "name": "User.Read.All"
          }
        ],
        "update": [
          {
            "name": "Application.ReadWrite.All"
          },
          {
            "name": "Group.Read.All"
          },
          {
            "name": "User.Read.All"
          }
        ]
      }
    }
  },
  "requiredModules": [
    "Microsoft.Graph.Applications",
    "Microsoft.Graph.Authentication",
    "Microsoft.Graph.Groups",
    "Microsoft.Graph.Users",
    "MSCloudLoginAssistant"
  ],
  "supportedEnvironments": [
    "Global",
    "USGov"
  ],
  "mode": "Data",
  "commands": [
    {
      "module": "Microsoft.Graph.Applications",
      "cmdlets": [
        "Get-MgApplication",
        "Get-MgServicePrincipal",
        "Get-MgServicePrincipalAppRoleAssignedTo",
        "New-MgServicePrincipal",
        "New-MgServicePrincipalAppRoleAssignedTo",
        "New-MgServicePrincipalOwnerByRef",
        "Remove-MgServicePrincipal",
        "Remove-MgServicePrincipalAppRoleAssignedTo",
        "Remove-MgServicePrincipalOwnerDirectoryObjectByRef",
        "Update-MgApplication",
        "Update-MgServicePrincipal"
      ]
    },
    {
      "module": "Microsoft.Graph.Authentication",
      "cmdlets": [
        "Invoke-MgGraphRequest"
      ]
    },
    {
      "module": "Microsoft.Graph.Groups",
      "cmdlets": [
        "Get-MgGroup"
      ]
    },
    {
      "module": "Microsoft.Graph.Users",
      "cmdlets": [
        "Get-MgUser"
      ]
    }
  ]
}