title: Example of Get-AzureADUser [-Filter <String>] command
body: <p>Command: Get-AzureADUser [-Filter ] command</p>
  
  <p>msdn says Parameters
  -Filter
  Specifies an oData v3.0 filter statement. This parameter controls which objects are returned.</p>
  
  <p>how to set filter to get the same result as Azure module v1 commands</p>
  
  <pre><code>Get-MsolUser -All| Where-Object {$_.isLicensed -eq "True"}| Select-Object UserPrincipalName -ExpandProperty Licenses|Select-Object UserPrincipalName -ExpandProperty ServiceStatus|Where-Object {$_.ProvisioningStatus -eq "Success" -and $_.ServicePlan.ServiceName -like "MCO*"}|select UserPrincipalName -Unique
  </code></pre>
  
  <p>I have searched all over the place to find a proper example of setting filter but could not and i ended up here.
  I am basically trying to convert my Azure module v1 commands to Azure module v2 commands.</p>