diff --git a/internal/services/machinelearning/machine_learning_workspace_resource.go b/internal/services/machinelearning/machine_learning_workspace_resource.go index c33421bfd852..dcb1902026c5 100644 --- a/internal/services/machinelearning/machine_learning_workspace_resource.go +++ b/internal/services/machinelearning/machine_learning_workspace_resource.go @@ -181,6 +181,11 @@ func resourceMachineLearningWorkspace() *pluginsdk.Resource { Computed: true, }, + "workspace_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "tags": commonschema.Tags(), }, } @@ -337,6 +342,7 @@ func resourceMachineLearningWorkspaceRead(d *pluginsdk.ResourceData, meta interf d.Set("primary_user_assigned_identity", props.PrimaryUserAssignedIdentity) d.Set("public_network_access_enabled", *props.PublicNetworkAccess == workspaces.PublicNetworkAccessEnabled) d.Set("v1_legacy_mode_enabled", props.V1LegacyMode) + d.Set("workspace_id", props.WorkspaceId) kvId, err := commonids.ParseKeyVaultIDInsensitively(*props.KeyVault) if err != nil { diff --git a/website/docs/r/machine_learning_workspace.html.markdown b/website/docs/r/machine_learning_workspace.html.markdown index 56f9967343c1..5e0ffdacfe89 100644 --- a/website/docs/r/machine_learning_workspace.html.markdown +++ b/website/docs/r/machine_learning_workspace.html.markdown @@ -416,6 +416,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `discovery_url` - The url for the discovery service to identify regional endpoints for machine learning experimentation services. +* `workspace_id` - The immutable id associated with this workspace. + --- An `identity` block exports the following: