Microsoft Azure Active Directory Createserviceprincipal Example

AuthenticationAuthorizationIdentityMicrosoftMicrosoft EntraOpenID ConnectSAMLSCIMSingle Sign-OnZero Trust

Microsoft Azure Active Directory Createserviceprincipal Example is an example object payload from Microsoft Azure Active Directory, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "createServicePrincipal",
  "method": "POST",
  "path": "/servicePrincipals",
  "summary": "Create Service Principal",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "CreateserviceprincipalRequestExample",
      "example": {
        "appId": "500123",
        "displayName": "example_value",
        "accountEnabled": true,
        "appRoleAssignmentRequired": true,
        "tags": [
          "example_value"
        ],
        "notificationEmailAddresses": [
          "example_value"
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "201",
      "contentType": "application/json",
      "name": "Createserviceprincipal201Example",
      "example": {
        "accountEnabled": true,
        "appDescription": "example_value",
        "appDisplayName": "example_value",
        "appId": "500123",
        "appOwnerOrganizationId": "500123",
        "appRoleAssignmentRequired": true,
        "appRoles": [
          {
            "allowedMemberTypes": {},
            "description": "A sample description.",
            "displayName": "example_value",
            "id": "abc123",
            "isEnabled": true,
            "value": "example_value"
          }
        ],
        "displayName": "example_value",
        "homepage": "https://www.example.com",
        "keyCredentials": [
          {
            "customKeyIdentifier": "example_value",
            "displayName": "example_value",
            "endDateTime": "2026-01-15T10:30:00Z",
            "key": "example_value",
            "keyId": "500123",
            "startDateTime": "2026-01-15T10:30:00Z",
            "type": "example_value",
            "usage": "Sign"
          }
        ],
        "loginUrl": "https://www.example.com",
        "logoutUrl": "https://www.example.com",
        "notificationEmailAddresses": [
          "example_value"
        ],
        "oauth2PermissionScopes": [
          {
            "adminConsentDescription": "example_value",
            "adminConsentDisplayName": "example_value",
            "id": "abc123",
            "isEnabled": true,
            "type": "User",
            "userConsentDescription": "example_value",
            "userConsentDisplayName": "example_value",
            "value": "example_value"
          }
        ],
        "passwordCredentials": [
          {
            "customKeyIdentifier": "example_value",
            "displayName": "example_value",
            "endDateTime": "2026-01-15T10:30:00Z",
            "hint": "example_value",
            "keyId": "500123",
            "secretText": "example_value",
            "startDateTime": "2026-01-15T10:30:00Z"
          }
        ],
        "replyUrls": [
          "https://www.example.com"
        ],
        "servicePrincipalNames": [
          "example_value"
        ],
        "servicePrincipalType": "example_value",
        "signInAudience": "example_value",
        "tags": [
          "example_value"
        ],
        "tokenEncryptionKeyId": "500123"
      }
    }
  ]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/microsoft-azure-active-directory-createserviceprincipal-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.