hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.65k forks source link

Support for azurerm_machine_learning_datastore_datalake_gen2 with a storage account in an another azure subscription #27336

Open ltutar opened 2 months ago

ltutar commented 2 months ago

Is there an existing issue for this?

Community Note

Description

The current implementation of resource _azurerm_machine_learning_datastore_datalakegen2 is not supporting a referral to a storage account in an another Azure subscription. This is also confirmed with 27254) It would be nice to have this functionality through Terraform since the Azure UI is providing this functionality.

New or Affected Resource(s)/Data Source(s)

azurerm_machine_learning_datastore_datalake_gen2

Potential Terraform Configuration

# raw_layer_containers and the data storage are existing in a different Azure subscription.
resource "azurerm_machine_learning_datastore_datalake_gen2" "dsleventdev" {
  name                 = "levent"
  description          = "dsleventdev"
  workspace_id         = module.mlwsleventdev.id
  storage_container_id = data.azurerm_storage_containers.raw_layer_containers.containers[index(data.azurerm_storage_containers.raw_layer_containers.containers[*].name, var.levent_storage_account_container_name)].resource_manager_id
  tags                 = module.foundation.tags
}

References

No response

gustavnygren commented 2 weeks ago

Are there any updates on this, or have you been able to find a solution Itutar? Eager to get it to work :)

ltutar commented 2 weeks ago

No @gustavnygren I do not have a solution. We have put this part out of terraform implementation and doing it unfortunately manually.

gustavnygren commented 2 weeks ago

That's unfortunate. Thank you for responding :)