The AzureAD module will be soon deprecated. You can use the MgGraph module instead. Reference: https://learn.microsoft.com/en-us/powershell/microsoftgraph/migration-steps?view=graph-powershell-1.0
Here is an example using the MgGraph module:
$date = Get-Date (Get-Date).AddDays(-60) -Format O
Connect-MgGraph -Scopes 'User.Read.All'
Get-MgUser -Filter "createdDateTime ge $date" -Property Id,DisplayName,UserPrincipalName,CreatedDateTime | `
Select-Object Id,DisplayName,UserPrincipalName,CreatedDateTime | `
ConvertTo-Csv -NoTypeInformation | `
Out-File -FilePath C:\temp\myusers.csv