Deploy custom policies with Azure Pipelines

John Maria Antony 81 Reputation points
2025-04-16T22:08:19.17+00:00

Hi Team,

I have been using a powershell script to upload custom policies with Azure Pipeline.
Link: Deploy custom policies with Azure Pipelines

As you know, Microsoft Azure AD Graph API is retired and everyone needs to migrate to Microsoft Graph as per the link https://learn.microsoft.com/en-us/graph/migrate-azure-ad-graph-overview

I am bit confused if the Powershell script in the link Deploy custom policies with Azure Pipelines using Azure AD Graph.

Can someone advise if I need to update my script to Microsoft Graph?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,633 questions
0 comments No comments
{count} votes

Accepted answer
  1. SrideviM 3,735 Reputation points Microsoft External Staff Moderator
    2025-04-19T07:47:37.53+00:00

    Hello John Maria Antony,

    I understand you are trying to confirm whether the PowerShell script for deploying custom policies with Azure Pipelines is still using Azure AD Graph. I checked the script from the article you mentioned, and it is already using Microsoft Graph.

    To clarify, Azure AD Graph is the older API with the endpoint https://graph.windows.net, while Microsoft Graph is the newer API with the endpoint https://graph.microsoft.com. Microsoft Graph provides access to a wider range of Microsoft 365 services and is the supported option going forward.

    Since your script uses the Microsoft identity platform v2.0 token endpoint and calls https://graph.microsoft.com, there’s no need for any changes related to the Graph API migration.

    Hope this clarifies things a bit!


    If this answer was helpful, please click "Accept the answer" and mark Yes, as this can help other community members.

    User's image

    If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.