Get-​Azure​Rm​AD​Group

Filters active directory groups.

Syntax

Get-AzureRmADGroup
   [-ObjectId <Guid>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
Get-AzureRmADGroup
   -ObjectId <Guid>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
Get-AzureRmADGroup
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -SearchString <String>

Description

Filters active directory groups.

Examples

-------------------------- Filters groups using object id --------------------------

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmADGroup -ObjectId 85F89C90-780E-4AA6-9F4F-6F268D322EEE

Gets group with 85F89C90-780E-4AA6-9F4F-6F268D322EEE id

-------------------------- Filters groups using Search String --------------------------

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmADGroup -SearchString Joe

Filters all ad groups that has Joe in the display name.

-------------------------- List AD groups --------------------------

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmADGroup

Gets all AD groups

Required Parameters

-SearchString

The group display name

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ObjectId

Object id of the group.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False