I've installed AzureRM.Netcore in Bash Cloud Shell (I've previously installed PowerShell Core 6 beta 5).
If I run any AzureRM command before I log in to Azure I get the following error message:
PS > get-azurermresourcegroup
get-azurermresourcegroup : The Azure PowerShell session has not been properly initialized. Please import the module and try again.
That error message is misleading and not very helpful, and doesn't provide a step to fix a problem.