Microsoft Graph · AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security

An Azure Function runs nightly without a signed-in user and uses the Microsoft Graph .NET SDK with a service principal. The required Microsoft Graph…

Practice question from Microsoft Graph (AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security), with the correct answer and a step-by-step solution.

medium · MCQ · Q-85240E

An Azure Function runs nightly without a signed-in user and uses the Microsoft Graph .NET SDK with a service principal. The required Microsoft Graph application permissions have already been configured and admin consent has been granted. Which scope should be supplied when creating the Graph client for client-credentials authentication?

  1. A.User.Read
  2. B.https://graph.microsoft.com/.defaultCorrect answer
  3. C.https://login.microsoftonline.com/.default
  4. D.offline_access

Solution

The client-credentials flow uses the Microsoft Graph resource scope https://graph.microsoft.com/.default. Microsoft Entra ID uses this value to issue a token containing the statically configured and consented application permissions.

More from Microsoft Graph

All of Microsoft Graph

Practise more Implement Azure Security

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed