New-MsolGroup
Adds a new group to the Azure Active Directory.
Syntax
New-MsolGroup
[-DisplayName <String>]
[-Description <String>]
[-ManagedBy <String>]
[-TenantId <Guid>]
[<CommonParameters>]
Description
The New-MsolGroup cmdlet adds a new security group to Azure Active Directory.
Examples
Example 1: Create a security group
PS C:\> New-MsolGroup -DisplayName "MyGroup" -Description "My test group"
This command creates a security group called MyGroup.
Parameters
-Description
Specifies a description of the group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DisplayName
Specifies a display name of the group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ManagedBy
Specifies the owner of the group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TenantId
Specifies the unique ID of the tenant on which to perform the operation. The default value is the tenant of the current user. This parameter applies only to partner users.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
Microsoft.Online.Administration.Group
Will return the new group that was created.