Issue

When scanning an Azure Tenant the agent fails to connect and the following error is displayed:


Your Azure credentials have not been set up or have expired, please run Add-AzureAccount to set up your Azure credentials.



Cause

This error can be seen if the account being used has not completed the welcome wizard in the Azure Portal.



Resolution
Login to the Azure Portal as the user account, ensure that the account is valid and complete the welcome wizard if required.