We recommend using Azure Native.
azure.machinelearning.DatastoreFileshare
Explore with Pulumi AI
Manages a Machine Learning File Share DataStore.
Example Usage
With Azure File Share
Coming soon!
Coming soon!
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());
}
}
Coming soon!
Coming soon!
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleInsights:
type: azure:appinsights:Insights
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
applicationType: web
exampleKeyVault:
type: azure:keyvault:KeyVault
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
tenantId: ${current.tenantId}
skuName: premium
exampleAccount:
type: azure:storage:Account
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
accountTier: Standard
accountReplicationType: GRS
exampleWorkspace:
type: azure:machinelearning:Workspace
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
applicationInsightsId: ${exampleInsights.id}
keyVaultId: ${exampleKeyVault.id}
storageAccountId: ${exampleAccount.id}
identity:
type: SystemAssigned
exampleShare:
type: azure:storage:Share
properties:
storageAccountName: ${exampleAccount.name}
quota: 1
exampleDatastoreFileshare:
type: azure:machinelearning:DatastoreFileshare
properties:
workspaceId: ${exampleWorkspace.id}
storageFilesahareId: ${azurerm_storage_share.test.resource_manager_id}
accountKey: ${exampleAccount.primaryAccessKey}
variables:
current:
fn::invoke:
Function: azure:core:getClientConfig
Arguments: {}
Create DatastoreFileshare Resource
new DatastoreFileshare(name: string, args: DatastoreFileshareArgs, opts?: CustomResourceOptions);
@overload
def DatastoreFileshare(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_key: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
service_data_identity: Optional[str] = None,
shared_access_signature: Optional[str] = None,
storage_fileshare_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
workspace_id: Optional[str] = None)
@overload
def DatastoreFileshare(resource_name: str,
args: DatastoreFileshareArgs,
opts: Optional[ResourceOptions] = None)
func NewDatastoreFileshare(ctx *Context, name string, args DatastoreFileshareArgs, opts ...ResourceOption) (*DatastoreFileshare, error)
public DatastoreFileshare(string name, DatastoreFileshareArgs args, CustomResourceOptions? opts = null)
public DatastoreFileshare(String name, DatastoreFileshareArgs args)
public DatastoreFileshare(String name, DatastoreFileshareArgs args, CustomResourceOptions options)
type: azure:machinelearning:DatastoreFileshare
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatastoreFileshareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DatastoreFileshareArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatastoreFileshareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatastoreFileshareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatastoreFileshareArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DatastoreFileshare Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DatastoreFileshare resource accepts the following input properties:
- string
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- Workspace
Id string The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- Account
Key string The access key of the Storage Account. Conflicts with
shared_access_signature
.- Description string
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- Name string
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- Service
Data stringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- string
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- Dictionary<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.
- string
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- Workspace
Id string The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- Account
Key string The access key of the Storage Account. Conflicts with
shared_access_signature
.- Description string
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- Name string
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- Service
Data stringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- string
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- 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.
- String
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- workspace
Id String The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- account
Key String The access key of the Storage Account. Conflicts with
shared_access_signature
.- description String
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- name String
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- service
Data StringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- String
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- 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.
- string
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- workspace
Id string The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- account
Key string The access key of the Storage Account. Conflicts with
shared_access_signature
.- description string
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- name string
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- service
Data stringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- string
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- {[key: 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.
- str
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- workspace_
id str The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- account_
key str The access key of the Storage Account. Conflicts with
shared_access_signature
.- description str
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- name str
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- service_
data_ stridentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- str
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- Mapping[str, str]
A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- String
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- workspace
Id String The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- account
Key String The access key of the Storage Account. Conflicts with
shared_access_signature
.- description String
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- name String
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- service
Data StringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- String
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- Map<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.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatastoreFileshare resource produces the following output properties:
- id str
The provider-assigned unique ID for this managed resource.
- is_
default bool Indicate whether this Machines Learning DataStore is the default for the Workspace.
Look up Existing DatastoreFileshare Resource
Get an existing DatastoreFileshare resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatastoreFileshareState, opts?: CustomResourceOptions): DatastoreFileshare
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_key: Optional[str] = None,
description: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
service_data_identity: Optional[str] = None,
shared_access_signature: Optional[str] = None,
storage_fileshare_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
workspace_id: Optional[str] = None) -> DatastoreFileshare
func GetDatastoreFileshare(ctx *Context, name string, id IDInput, state *DatastoreFileshareState, opts ...ResourceOption) (*DatastoreFileshare, error)
public static DatastoreFileshare Get(string name, Input<string> id, DatastoreFileshareState? state, CustomResourceOptions? opts = null)
public static DatastoreFileshare get(String name, Output<String> id, DatastoreFileshareState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Key string The access key of the Storage Account. Conflicts with
shared_access_signature
.- Description string
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- Is
Default bool Indicate whether this Machines Learning DataStore is the default for the Workspace.
- Name string
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- Service
Data stringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- string
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- string
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- Dictionary<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.
- Workspace
Id string The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- Account
Key string The access key of the Storage Account. Conflicts with
shared_access_signature
.- Description string
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- Is
Default bool Indicate whether this Machines Learning DataStore is the default for the Workspace.
- Name string
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- Service
Data stringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- string
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- string
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- 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.
- Workspace
Id string The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- account
Key String The access key of the Storage Account. Conflicts with
shared_access_signature
.- description String
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- is
Default Boolean Indicate whether this Machines Learning DataStore is the default for the Workspace.
- name String
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- service
Data StringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- String
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- String
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- 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.
- workspace
Id String The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- account
Key string The access key of the Storage Account. Conflicts with
shared_access_signature
.- description string
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- is
Default boolean Indicate whether this Machines Learning DataStore is the default for the Workspace.
- name string
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- service
Data stringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- string
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- string
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- {[key: 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.
- workspace
Id string The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- account_
key str The access key of the Storage Account. Conflicts with
shared_access_signature
.- description str
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- is_
default bool Indicate whether this Machines Learning DataStore is the default for the Workspace.
- name str
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- service_
data_ stridentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- str
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- str
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- Mapping[str, str]
A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- workspace_
id str The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
- account
Key String The access key of the Storage Account. Conflicts with
shared_access_signature
.- description String
Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created.
- is
Default Boolean Indicate whether this Machines Learning DataStore is the default for the Workspace.
- name String
The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created.
- service
Data StringIdentity Specifies which identity to use when retrieving data from the specified source. Defaults to
None
. Possible values areNone
,WorkspaceSystemAssignedIdentity
andWorkspaceUserAssignedIdentity
.- String
The Shared Access Signature of the Storage Account. Conflicts with
account_key
.- String
The ID of the Storage Account File Share. Changing this forces a new Machine Learning DataStore to be created.
- Map<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.
- workspace
Id String The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created.
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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.