Azure Scanning

In order to scan an asset in azure environment do we have to use cloud engine or is it best to put the agent on it? Ive been able to scan with normal scan engine but it failed credentials…