Use this data source to access information about an existing Machine Learning Workspace.
provider "azurerm" {
features {}
}
data "azurerm_machine_learning_workspace" "existing" {
name = "example-workspace"
resource_group_name = "example-resources"
}
output "id" {
value = azurerm_machine_learning_workspace.existing.id
}
The following arguments are supported:
name
- (Required) The name of the Machine Learning Workspace exists.
resource_group_name
- (Required) The name of the Resource Group where the Machine Learning Workspace exists.
The following attributes are exported:
id
- The ID of the Machine Learning Workspace.
location
- The location where the Machine Learning Workspace exists.
identity
- An identity
block as defined below.
tags
- A mapping of tags assigned to the Machine Learning Workspace.
The identity
block exports the following attributes:
type
- The Type of Managed Identity assigned to this Machine Learning Workspace.
identity_ids
- A list of User Assigned Identity IDs assigned to this Machine Learning Workspace.
principal_id
- The Principal ID of the System Assigned Managed Identity assigned to this Machine Learning Workspace.
tenant_id
- The Tenant ID of the System Assigned Managed Identity assigned to this Machine Learning Workspace.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Machine Learning Workspace.