title: Invalid value specified for property 'groupTypes' of resource 'Group'
body: <p>I am new to Azure and I am trying to create a dynamic Azure Ad group through PowerShell by following below cmdlet:</p>
  <pre><code>New-AzureADMSGroup -DisplayName &quot;GroupName&quot; -Description &quot;Des&quot; -MailEnabled $False -MailNickname &quot;Mail&quot; -SecurityEnabled $True  -GroupTypes &quot;Dynamic&quot;
  </code></pre>
  <p>But I am getting the below error:</p>
  <pre><code>New-AzureADMSGroup : Error occurred while executing NewMSGroup
  Code: Request_BadRequest
  Message: Invalid value specified for property 'groupTypes' of resource 'Group'.
  InnerError:
    RequestId: 419e641b-a15a-4417-840c-ce30a3541d8d
    DateTimeStamp: Wed, 15 Jun 2022 05:25:33 GMT
  HttpStatusCode: BadRequest
  HttpStatusDescription: Bad Request
  HttpResponseStatus: Completed
  At line:1 char:1
  + New-AzureADMSGroup -DisplayName &quot;Testgroup1&quot; -Description &quot;Group assi ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [New-AzureADMSGroup], ApiException
      + FullyQualifiedErrorId : Microsoft.Open.MSGraphBeta.Client.ApiException,Microsoft.Open.MSGraphBeta.PowerShell.NewMSGroup
  </code></pre>
  <p>I am following this Microsoft Document:</p>
  <p><a href="https://docs.microsoft.com/en-us/powershell/module/azuread/new-azureadmsgroup?view=azureadps-2.0" rel="nofollow noreferrer">New-AzureADMSGroup (AzureAD) | Microsoft Docs</a></p>
  <p>I tried to modify the command like below:</p>
  <pre><code>New-AzureADMSGroup -DisplayName &quot;GroupName&quot; -Description &quot;Des&quot; -MailEnabled $False -MailNickname &quot;Mail&quot; -SecurityEnabled $True  -GroupTypes &quot;DynamicGroup&quot;
  </code></pre>
  <p>But it did not work. I am still getting the same error.</p>
  <p>How to create dynamic Azure Ad group? Did anyone face the same issue?</p>