I am creating a powershell script using Azure CLI where I am using Get-AzureRmResource command to fetch all the resources in a subscription.
This command is giving the details of deleted resources also , which are not longer in Azure portal as well. How can I get only those resources which are present in the portal

