Import Job Args
An import job instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md Uses Azure REST API version 2024-03-01. Other available API versions: 2024-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storagecache [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
importJobs_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var importJob = new AzureNative.StorageCache.ImportJob("importJob", new()
{
AmlFilesystemName = "fs1",
ConflictResolutionMode = AzureNative.StorageCache.ConflictResolutionMode.OverwriteAlways,
ImportJobName = "job1",
ImportPrefixes = new[]
{
"/",
},
Location = "eastus",
MaximumErrors = 0,
ResourceGroupName = "scgroup",
Tags =
{
{ "Dept", "ContosoAds" },
},
});
});
package main
import (
storagecache "github.com/pulumi/pulumi-azure-native-sdk/storagecache/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagecache.NewImportJob(ctx, "importJob", &storagecache.ImportJobArgs{
AmlFilesystemName: pulumi.String("fs1"),
ConflictResolutionMode: pulumi.String(storagecache.ConflictResolutionModeOverwriteAlways),
ImportJobName: pulumi.String("job1"),
ImportPrefixes: pulumi.StringArray{
pulumi.String("/"),
},
Location: pulumi.String("eastus"),
MaximumErrors: pulumi.Int(0),
ResourceGroupName: pulumi.String("scgroup"),
Tags: pulumi.StringMap{
"Dept": pulumi.String("ContosoAds"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storagecache.ImportJob;
import com.pulumi.azurenative.storagecache.ImportJobArgs;
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) {
var importJob = new ImportJob("importJob", ImportJobArgs.builder()
.amlFilesystemName("fs1")
.conflictResolutionMode("OverwriteAlways")
.importJobName("job1")
.importPrefixes("/")
.location("eastus")
.maximumErrors(0)
.resourceGroupName("scgroup")
.tags(Map.of("Dept", "ContosoAds"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storagecache:ImportJob job1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}
Constructors
Properties
Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
How the import job will handle conflicts. For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported. OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty. Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
An array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.
Total non-conflict oriented errors the import job will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately and is the default.
The name of the resource group. The name is case insensitive.