Azure vm module-resource in different subscription

I have vm deployed (using module with for_each) in one subscription with log analytics in same subscription.
now we want to use the log analytics which is in another subscription xx
I have added below to
provider “azurerm” {
alias = “st”
subscription_id = “xx”
features {}

block looks like

data "azurerm_log_analytics_workspace" "example" {
name                = "acctest-01"
  resource_group_name = "acctest"

but still getting Error: Error: acctest-01 not found