azurermMachineLearningDatastoreFileshare
Manages a Machine Learning File Share DataStore.
Example Usage with Azure File Share
/*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: [{}],
});
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermStorageAccountExample = new azurerm.storageAccount.StorageAccount(
this,
"example_2",
{
account_replication_type: "GRS",
account_tier: "Standard",
location: azurermResourceGroupExample.location,
name: "workspacestorageaccount",
resource_group_name: azurermResourceGroupExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermStorageAccountExample.overrideLogicalId("example");
const azurermStorageShareExample = new azurerm.storageShare.StorageShare(
this,
"example_3",
{
name: "example",
quota: 1,
storage_account_name: azurermStorageAccountExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermStorageShareExample.overrideLogicalId("example");
const dataAzurermClientConfigCurrent =
new azurerm.dataAzurermClientConfig.DataAzurermClientConfig(
this,
"current",
{}
);
const azurermApplicationInsightsExample =
new azurerm.applicationInsights.ApplicationInsights(this, "example_5", {
application_type: "web",
location: azurermResourceGroupExample.location,
name: "workspace-example-ai",
resource_group_name: azurermResourceGroupExample.name,
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermApplicationInsightsExample.overrideLogicalId("example");
const azurermKeyVaultExample = new azurerm.keyVault.KeyVault(
this,
"example_6",
{
location: azurermResourceGroupExample.location,
name: "workspaceexamplekeyvault",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "premium",
tenant_id: dataAzurermClientConfigCurrent.tenantId,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermKeyVaultExample.overrideLogicalId("example");
const azurermMachineLearningWorkspaceExample =
new azurerm.machineLearningWorkspace.MachineLearningWorkspace(
this,
"example_7",
{
application_insights_id: azurermApplicationInsightsExample.id,
identity: [
{
type: "SystemAssigned",
},
],
key_vault_id: azurermKeyVaultExample.id,
location: azurermResourceGroupExample.location,
name: "example-workspace",
resource_group_name: azurermResourceGroupExample.name,
storage_account_id: azurermStorageAccountExample.id,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMachineLearningWorkspaceExample.overrideLogicalId("example");
const azurermMachineLearningDatastoreFileshareExample =
new azurerm.machineLearningDatastoreFileshare.MachineLearningDatastoreFileshare(
this,
"example_8",
{
account_key: azurermStorageAccountExample.primaryAccessKey,
name: "example-datastore",
storage_filesahare_id:
"${azurerm_storage_share.test.resource_manager_id}",
workspace_id: azurermMachineLearningWorkspaceExample.id,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMachineLearningDatastoreFileshareExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created. -
workspaceId
- (Required) The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created. -
storageFileshareId
- (Required) The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
-
accountKey
- (Optional) The access key of the Storage Account. Conflicts withsharedAccessSignature
. -
sharedAccessSignature
- (Optional) The Shared Access Signature of the Storage Account. Conflicts withaccountKey
. -
description
- (Optional) Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created. -
serviceDataIdentity
- (Optional) Specifies which identity to use when retrieving data from the specified source. Defaults tonone
. Possible values arenone
,workspaceSystemAssignedIdentity
andworkspaceUserAssignedIdentity
. -
tags
- (Optional) A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the Machine Learning DataStore. -
isDefault
- Indicate whether this Machines Learning DataStore is the default for the Workspace.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Machine Learning DataStore.read
- (Defaults to 5 minutes) Used when retrieving the Machine Learning DataStore.update
- (Defaults to 30 minutes) Used when updating the Machine Learning DataStore.delete
- (Defaults to 30 minutes) Used when deleting the Machine Learning DataStore.
Import
Machine Learning DataStores can be imported using the resourceId
, e.g.