Auto Export Job Args
An auto export 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-07-01.
Example Usage
autoExportJobs_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var autoExportJob = new AzureNative.StorageCache.AutoExportJob("autoExportJob", new()
{
AmlFilesystemName = "fs1",
AutoExportJobName = "job1",
AutoExportPrefixes = new[]
{
"/",
},
Location = "eastus",
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.NewAutoExportJob(ctx, "autoExportJob", &storagecache.AutoExportJobArgs{
AmlFilesystemName: pulumi.String("fs1"),
AutoExportJobName: pulumi.String("job1"),
AutoExportPrefixes: pulumi.StringArray{
pulumi.String("/"),
},
Location: pulumi.String("eastus"),
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.AutoExportJob;
import com.pulumi.azurenative.storagecache.AutoExportJobArgs;
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 autoExportJob = new AutoExportJob("autoExportJob", AutoExportJobArgs.builder()
.amlFilesystemName("fs1")
.autoExportJobName("job1")
.autoExportPrefixes("/")
.location("eastus")
.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:AutoExportJob job1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs/{autoExportJobName}
Constructors
Properties
The administrative status of the auto export job. Possible values: 'Enable', 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By default it is set to 'Enable'.
Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
An array of blob paths/prefixes that get auto exported to the cluster namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1.
The name of the resource group. The name is case insensitive.
The operational state of auto export. InProgress indicates the export is running. Disabling indicates the user has requested to disable the export but the disabling is still in progress. Disabled indicates auto export has been disabled. DisableFailed indicates the disabling has failed. Failed means the export was unable to continue, due to a fatal error.