Data Source: azurermMachineLearningWorkspace
Use this data source to access information about an existing Machine Learning Workspace.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.provider.AzurermProvider(this, "azurerm", {
features: [{}],
});
new cdktf.TerraformOutput(this, "id", {
value: "${azurerm_machine_learning_workspace.existing.id}",
});
new azurerm.dataAzurermMachineLearningWorkspace.DataAzurermMachineLearningWorkspace(
this,
"existing",
{
name: "example-workspace",
resource_group_name: "example-resources",
}
);
Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the Machine Learning Workspace exists. -
resourceGroupName
- (Required) The name of the Resource Group where the Machine Learning Workspace exists.
Attributes Reference
The following attributes are exported:
-
id
- The ID of the Machine Learning Workspace. -
location
- The location where the Machine Learning Workspace exists. -
identity
- Anidentity
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. -
identityIds
- A list of User Assigned Identity IDs assigned to this Machine Learning Workspace. -
principalId
- The Principal ID of the System Assigned Managed Identity assigned to this Machine Learning Workspace. -
tenantId
- The Tenant ID of the System Assigned Managed Identity assigned to this Machine Learning Workspace.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Machine Learning Workspace.