I had this problem but I had to set the subscription explicitly. There were multiple subscription in the tenant
az account set --subscription xxxxxxxxxxx