Skip to content

alfredorevilla/msgraph-angular-dotnetcore

Repository files navigation

MS Graph Advanced Queries and JSON batching demo

Highlights

  • Use of consistencyLevel: eventual request header to enable advanced queries.
  • Use of $search query parameter to search applications by displayName.
  • Use of $count query parameter to retrieve total number of applications
  • Use of JSON batching to retrieve all application owners and service principals in a single call.

How to build

  • From Visual Studio:
    Press CTRL+F8

  • From command line:
    Run dotnet build from solution folder
    Run nppm install from ClientApp folder

How to run

  • From Visual Studio:
    Press CTRL+F5

  • From command line:
    Run dotnet run from solution folder

How to configure client credentials

Edit file launchSettings.json and add values for AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET under profiles\{profile}\environmentVariables:

{
  "profiles": {
    "{profile}": {
      "environmentVariables": {
        "AZURE_TENANT_ID": "string",
        "AZURE_CLIENT_ID": "string",
        "AZURE_CLIENT_SECRET": "string"
      }
    }
  }
}

Copyright

Copyright (c) 2020 Microsoft. All rights reserved.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published