Azure Terms of Use scripting

Phil Whitmore 1 Reputation point
2021-07-06T15:50:28.507+00:00

I'm working on scripting the provisioning of Conditional access policies through PowerShell with the Microsoft.Graph and AzureADPreview modules. I have so far been unable to find a scripted method of getting the Terms of Use AgreementID to allow me to feed this into a variable which is dependent on the environment

Anyone have any ideas on how to complete this?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,880 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,775 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Diana Wanjuhi 1,376 Reputation points
    2021-07-12T11:08:46.847+00:00

    Hello @Phil Whitmore Thank you for reaching out. Are you asking how to list the terms of use of an agreement ?

    If so, you can use the get-mgagreement cmdlet which is part of the Microsoft Graph PowerShell SDK.

    Let me know if this helps and if you have further questions,

    Diana.

    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.