简体   繁体   中英

Create a Security group in Azure and MailNickname

I'm creating a New Security group in azure powershell. The wizard asks me for a DisplayName and...for a MailNickname and I can't understand why. 电源外壳

Thanks

Thank you Theo . Posting your suggestion as an answer to help other community members.

DisplayName and MailNickname both are required parameters.

New-AzADGroup

New-AzADGroup -DisplayName <String> -MailNickname <String> [-Description <String>]
 [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]

DisplayName

The display name for the group.

Type: System.String
Parameter Sets: (All)
Aliases:

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

MailNickname

The mail nickname for the group. Cannot contain the @ sign.

Type: System.String
Parameter Sets: (All)
Aliases:

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

You can refer to New-AzADGroup

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM