Need power shell script to get all Azure dynamic with all details. Anybody could help.

Aditya 10 Reputation points
2023-03-03T14:12:49.99+00:00

Need power shell script to get all Azure dynamic with all details. Anybody could help.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,152 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,845 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Bjoern Peters 8,856 Reputation points
    2023-03-03T16:43:13.97+00:00

    Hi Aditya,

    Welcome to Q&A Forum, this is a great place to get support, answers and tips.

    Thank you for posting your query, I'll be more than glad to help you out.

    What exactly do you want to achive?

    What do you understand by "Azure dynamic with all details"?

    There is no (ready to use) script which you can download, you have to write such a script on your own or hire someone to write that script for you according to your needs.

    Every environment, every subscription is different... one or more subscription, one or more tenants and/or (sub)domains, different regions, different services... so you have to create your own script based on your needs and environments.

    Maybe we can assist you creating such a script, but you have to be more precise what you want and what you need...

    I hope my answer is helpful to you,

    Your

    Bjoern Peters

    If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!

    0 comments No comments

  2. Aditya 10 Reputation points
    2023-03-06T06:48:42.86+00:00

    What do you understand by "Azure dynamic with all details"? :- Means in my environment need every dynamic group with all details.

    What exactly do you want to achieve? :- I need every dynamic group details including all attribute like name, desc, membership role and owner etc.

    0 comments No comments

  3. Aditya 10 Reputation points
    2023-04-24T04:54:49.5633333+00:00

    To get azure dynamic group detials:- Get-AzureADMSGroup -Filter "groupTypes/any(c:c eq 'DynamicMembership')" -all $true | Select -Property id, DisplayName, Description ,@{n='Group Owner';e={(Get-AzureADGroupOwner -ObjectId $_.id ).UserPrincipalName}}, source, IsAssignableToRole, OnPremisesSyncEnabled ,OnPremisesSecurityIdentifier, OnPremisesLastSyncDateTime ,ADSyncOperators ,SecurityEnabled, MembershipRule, MembershipRuleProcessingState, MailEnabled, Mail, MailNickname, Visibility, CreatedDateTime, RenewedDateTime | export-csv "c:\allazuregroupdetails.csv" -NoTypeInformation

    0 comments No comments