In typical Microsoft fashion, the modules have been deprecated and replaced repeatedly:
AzureRMfor interatin g with ARM.
AzureADmodule doesn't support PowerShell Core, running only on Windows PowerShell.
AzureAD.Standard.Previewdoes, but has been abandoned since 2018.
AzureADPreviewmodule is used as a pre-release for
AzureAD, but also lacks support for Core.
Azuremodule is deprecated.
AzureRMmodule is deprecated.
For Linux and macOS support, or PowerShell Core on Windows:
Register-PackageSource -ProviderName 'PowerShellGet' -Name 'Posh Test Gallery' -Location 'https://www.poshtestgallery.com/api/v2/' Install-Module AzureAD.Standard.Preview
Note, however, that the
AzureAD.Standard.Preview module hasn't been updated in several years.