Skip to content

Commit 723bcb1

Browse files
committed
Removed examples that use parameters only available in the Preview module
1 parent 402b6e8 commit 723bcb1

File tree

1 file changed

+1
-47
lines changed

1 file changed

+1
-47
lines changed

azureadps-2.0/AzureAD/New-AzureADMSGroup.md

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,7 @@ New-AzureADMSGroup [-Description <String>] -DisplayName <String> [-IsAssignableT
2121
## DESCRIPTION
2222
The New-AzureADMSGroup cmdlet creates an Azure Active Directory (Azure AD) group.
2323

24-
For information about creating dynamic groups, see Using attributes to create advanced rules (https://azure.microsoft.com/en-us/documentation/articles/active-directory-accessmanagement-groups-with-advanced-rules/).
25-
26-
## EXAMPLES
27-
28-
### Example 1: Create a dynamic group
29-
```
30-
PS C:\> New-AzureADMSGroup -DisplayName "Dynamic Group 01" -Description "Dynamic group created from PS" -MailEnabled $False -MailNickName "group" -SecurityEnabled $True -GroupTypes "DynamicMembership" -MembershipRule "(user.department -contains ""Marketing"")" -MembershipRuleProcessingState "On"
31-
32-
Id : 9126185e-25df-4522-a380-7ab697a7241c
33-
Description : Dynamic group created from PS
34-
OnPremisesSyncEnabled :
35-
DisplayName : Dynamic Group 01
36-
OnPremisesLastSyncDateTime :
37-
Mail :
38-
MailEnabled : False
39-
MailNickname : group
40-
OnPremisesSecurityIdentifier :
41-
ProxyAddresses : {}
42-
SecurityEnabled : True
43-
GroupTypes : {}
44-
MembershipRule : (user.department -eq "Marketing") MembershipRuleProcessingState : Paused
45-
```
46-
47-
This command creates a new dynamic group with the following rule:
48-
49-
\`user.department -contains "Marketing"\`
50-
51-
The double quotation marks are replaced with single quotation marks.
52-
53-
The processing state is On.
54-
This means that all users in the directory that qualify the rule are added as members to the group.
55-
Any users that do not qualify are removed from the group.
56-
57-
### Example 2: Create a group assignable to role
24+
### Example : Create a group assignable to role
5825
```
5926
PS C:\> New-AzureADMSGroup -DisplayName "HelpDesk admin group" -Description "Group assignable to role" -MailEnabled $False -MailNickname "helpDeskAdminGroup" -SecurityEnabled $True -IsAssignableToRole $True -Visibility "Private"
6027
@@ -71,19 +38,6 @@ SecurityEnabled : True
7138
GroupTypes : {}
7239
```
7340

74-
### Example 3: Create a group with label assignment
75-
```
76-
PS C:\> New-AzureADMSGroup -Description "Group associated with a label" -DisplayName "HelpDesk admin group" -GroupTypes "Unified" -LabelId "00000000-0000-0000-0000-000000000000" -MailEnabled $True -MailNickname "helpDeskAdminGroup" -SecurityEnabled $False
77-
78-
Id : 11111111-1111-1111-1111-111111111111
79-
Description : Group associated with a label
80-
DisplayName : HelpDesk admin group
81-
GroupTypes : ["Unified"]
82-
MailEnabled : True
83-
MailNickname : helpDeskAdminGroup
84-
SecurityEnabled : False
85-
```
86-
8741
## PARAMETERS
8842

8943
### -Description

0 commit comments

Comments
 (0)