The subscription is not registered to use namespace ‘Microsoft.AzureActiveDirectory’. See https://aka.ms/rps-not-found for how to register subscriptions.
To fix this use Azure Power Shell and hit the command Register-AzureRmResourceProvider -ProviderNamespace Microsoft.AzureActiveDirectory Now the error will go away. Hope this helps