Azure Service Principal - Best Practices

bodempudi venkata subbarao 21 Reputation points
2022-08-09T06:39:17.94+00:00

Hello Community,

we have couple questions about using service principal in Microsoft azure for managing programmatic access of resources.

  1. How we organize service principals?
  2. creating multiple service principals is correct or not.
  3. what is best way of using single service principal at multiple places with minimal effect(considering minimal dependency).

please share your thoughts here.

Thanks
Venkat

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Accepted answer
  1. Carlos Solís Salazar 18,191 Reputation points MVP Volunteer Moderator
    2022-08-09T12:20:02.453+00:00

    Hi @bodempudi venkata subbarao

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    In this post @Siva-kumar-selvaraj respond to a similar question

    You can use the same or have different Service principal for accessing Azure resources in general, but we recommend following the best practices highlighted here and general guidance about Securing service principals also, more importantly, monitor service principal sign-ins which enables you to assess whether and how you need to respond to potential issues such as unauthorized access.

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.
    NOTE: To answer you as quickly as possible, please mention me in your reply.



2 additional answers

Sort by: Most helpful
  1. Mohammed Altamash Mohammed Suleman Khan 2,331 Reputation points
    2022-08-10T18:34:03.2+00:00

    Hi @bodempudi venkata subbarao

    Replying to your query point wise

    • How we organize service principals? - You can find / manage all your service principal in Enterprise App registration and find their association with another resource/ policy / App.
    • Creating multiple service principals is correct or not. : It is correct , Its enhance security of your over-all cloud environment.
    • What is best way of using single service principal at multiple places with minimal effect(considering minimal dependency) : A single service principle is associated to single resource only , you can not find same service principle with another resources , When you operate/Create Service principal , make sure you are Owner of subscription other wise you may face dependency in further operations.

    Regards

    ------------------ If you find this answer helpful , please accept the answer -----------------------

    0 comments No comments

  2. bodempudi venkata subbarao 21 Reputation points
    2022-08-16T06:56:41.397+00:00

    Thank you all for your response.

    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.