DatastoreFileshare

class DatastoreFileshare : KotlinCustomResource

Manages a Machine Learning File Share DataStore.

Example Usage

With Azure File Share

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appinsights.Insights;
import com.pulumi.azure.appinsights.InsightsArgs;
import com.pulumi.azure.keyvault.KeyVault;
import com.pulumi.azure.keyvault.KeyVaultArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.machinelearning.Workspace;
import com.pulumi.azure.machinelearning.WorkspaceArgs;
import com.pulumi.azure.machinelearning.inputs.WorkspaceIdentityArgs;
import com.pulumi.azure.storage.Share;
import com.pulumi.azure.storage.ShareArgs;
import com.pulumi.azure.machinelearning.DatastoreFileshare;
import com.pulumi.azure.machinelearning.DatastoreFileshareArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var current = CoreFunctions.getClientConfig();
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.applicationType("web")
.build());
var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.skuName("premium")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.applicationInsightsId(exampleInsights.id())
.keyVaultId(exampleKeyVault.id())
.storageAccountId(exampleAccount.id())
.identity(WorkspaceIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var exampleShare = new Share("exampleShare", ShareArgs.builder()
.storageAccountName(exampleAccount.name())
.quota(1)
.build());
var exampleDatastoreFileshare = new DatastoreFileshare("exampleDatastoreFileshare", DatastoreFileshareArgs.builder()
.workspaceId(exampleWorkspace.id())
.storageFilesahareId(azurerm_storage_share.test().resource_manager_id())
.accountKey(exampleAccount.primaryAccessKey())
.build());
}
}

Import

Machine Learning DataStores can be imported using the resource id, e.g.

$ pulumi import azure:machinelearning/datastoreFileshare:DatastoreFileshare example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/mlw1/dataStores/datastore1

Properties

Link copied to clipboard
val accountKey: Output<String>?

The access key of the Storage Account. Conflicts with shared_access_signature.

Link copied to clipboard
val description: Output<String>?

Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isDefault: Output<Boolean>

Indicate whether this Machines Learning DataStore is the default for the Workspace.

Link copied to clipboard
val name: Output<String>

The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Specifies which identity to use when retrieving data from the specified source. Defaults to None. Possible values are None, WorkspaceSystemAssignedIdentity and WorkspaceUserAssignedIdentity.

Link copied to clipboard

The Shared Access Signature of the Storage Account. Conflicts with account_key.

Link copied to clipboard

The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val workspaceId: Output<String>

The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.