Using this script we could export all the non compliance resources sitting under same AD tenant.If you want to export respurce for particualr subscrition then use where condition in Script.$subs= Get-AzureRmSubscription | where {$_.Name -eq "suscription Name} | Select-Object -Exp