Data sources not found when using Az cli/ Az login to authenticate terraform

I am trying to migrate my terraform script for Azure to use the Az login instead of a service principal , I am using

provider “azuread” {

}
I am able to authenticate and run the plan - But one problem i see that the none of the data sources
eg-
data “azurerm_storage_account”
data “azurerm_container_registry” “”
are able to fetch the details - Error: Error: Storage Account “axxxxxxxs” (Resource Group “xxxxxxrr”) was not found

Have you defined the provider for azurerm?