Provider azurerm returns "Resource does not exist error" when accessing customer's resources with partner's account

I have a problem with the Terraform CLI and would like to ask for some advice:
We have a partner account and a customer account of Microsoft Partner Center. When I execute “az login --tenant <customer_tenant>”
to login by partner’s username and password, the login is successful and it returns the correct account information. But when I tried to execute “terraform apply” to deploy the example resources described in the doc Build Infrastructure - Terraform Azure Example | Terraform - HashiCorp Learn, an error returned:

│ Error: building account: getting authenticated object ID: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 3: ERROR: Resource ‘00000000-0000-0000-0000-000000000000’ does not exist or one of its queried reference-property objects are not present.

Even when I executed "az account set --subscription “<customer_subscription>” " or added the subscription_id to the provider block:

provider “azurerm” {
features {}
subscription_id = “<customer_subscription>”
tenant_id = “<customer_tenant>”

The error message is still returned.

Does anyone know why? Please help me, thanks. :grinning: