-1

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. powershell

Thanks

chiprule
  • 29
  • 4
  • 2
    Because it's a **required** [parameter](https://github.com/Azure/azure-powershell/blob/main/src/Resources/Resources/help/New-AzADGroup.md) – Theo Oct 26 '21 at 15:30

1 Answers1

0

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

Ecstasy
  • 1,866
  • 1
  • 9
  • 17
  • 1
    Hi DeepDave-MT, Thank you for reply. My Question is why is necessary/mandatory mail nickname for a security group. Thank you – chiprule Oct 27 '21 at 16:04
  • You can refer to [In active directory, what is mailNickname used for?](https://stackoverflow.com/questions/504868/in-active-directory-what-is-mailnickname-used-for) – Ecstasy Oct 28 '21 at 04:37