Job

Job Resource. API Version: 2020-11-01.

Example Usage

JobsCreate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var job = new AzureNative.DataBox.Job("job", new()
{
Details = new AzureNative.DataBox.Inputs.DataBoxJobDetailsArgs
{
ContactDetails = new AzureNative.DataBox.Inputs.ContactDetailsArgs
{
ContactName = "Public SDK Test",
EmailList = new[]
{
"testing@microsoft.com",
},
Phone = "1234567890",
PhoneExtension = "1234",
},
DataImportDetails = new[]
{
new AzureNative.DataBox.Inputs.DataImportDetailsArgs
{
AccountDetails = new AzureNative.DataBox.Inputs.StorageAccountDetailsArgs
{
DataAccountType = "StorageAccount",
StorageAccountId = "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount",
},
},
},
JobDetailsType = "DataBox",
ShippingAddress = new AzureNative.DataBox.Inputs.ShippingAddressArgs
{
AddressType = "Commercial",
City = "San Francisco",
CompanyName = "Microsoft",
Country = "US",
PostalCode = "94107",
StateOrProvince = "CA",
StreetAddress1 = "16 TOWNSEND ST",
StreetAddress2 = "Unit 1",
},
},
JobName = "SdkJob952",
Location = "westus",
ResourceGroupName = "SdkRg5154",
Sku = new AzureNative.DataBox.Inputs.SkuArgs
{
Name = "DataBox",
},
TransferType = "ImportToAzure",
});
});
package main
import (
databox "github.com/pulumi/pulumi-azure-native/sdk/go/azure/databox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databox.NewJob(ctx, "job", &databox.JobArgs{
Details: databox.DataBoxJobDetails{
ContactDetails: databox.ContactDetails{
ContactName: "Public SDK Test",
EmailList: []string{
"testing@microsoft.com",
},
Phone: "1234567890",
PhoneExtension: "1234",
},
DataImportDetails: []databox.DataImportDetails{
{
AccountDetails: {
DataAccountType: "StorageAccount",
StorageAccountId: "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount",
},
},
},
JobDetailsType: "DataBox",
ShippingAddress: databox.ShippingAddress{
AddressType: "Commercial",
City: "San Francisco",
CompanyName: "Microsoft",
Country: "US",
PostalCode: "94107",
StateOrProvince: "CA",
StreetAddress1: "16 TOWNSEND ST",
StreetAddress2: "Unit 1",
},
},
JobName: pulumi.String("SdkJob952"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("SdkRg5154"),
Sku: &databox.SkuArgs{
Name: pulumi.String("DataBox"),
},
TransferType: pulumi.String("ImportToAzure"),
})
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.databox.Job;
import com.pulumi.azurenative.databox.JobArgs;
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 job = new Job("job", JobArgs.builder()
.details(Map.ofEntries(
Map.entry("contactDetails", Map.ofEntries(
Map.entry("contactName", "Public SDK Test"),
Map.entry("emailList", "testing@microsoft.com"),
Map.entry("phone", "1234567890"),
Map.entry("phoneExtension", "1234")
)),
Map.entry("dataImportDetails", Map.of("accountDetails", Map.ofEntries(
Map.entry("dataAccountType", "StorageAccount"),
Map.entry("storageAccountId", "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount")
))),
Map.entry("jobDetailsType", "DataBox"),
Map.entry("shippingAddress", Map.ofEntries(
Map.entry("addressType", "Commercial"),
Map.entry("city", "San Francisco"),
Map.entry("companyName", "Microsoft"),
Map.entry("country", "US"),
Map.entry("postalCode", "94107"),
Map.entry("stateOrProvince", "CA"),
Map.entry("streetAddress1", "16 TOWNSEND ST"),
Map.entry("streetAddress2", "Unit 1")
))
))
.jobName("SdkJob952")
.location("westus")
.resourceGroupName("SdkRg5154")
.sku(Map.of("name", "DataBox"))
.transferType("ImportToAzure")
.build());
}
}

JobsCreateDevicePassword

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var job = new AzureNative.DataBox.Job("job", new()
{
Details = new AzureNative.DataBox.Inputs.DataBoxJobDetailsArgs
{
ContactDetails = new AzureNative.DataBox.Inputs.ContactDetailsArgs
{
ContactName = "Public SDK Test",
EmailList = new[]
{
"testing@microsoft.com",
},
Phone = "1234567890",
PhoneExtension = "1234",
},
DataImportDetails = new[]
{
new AzureNative.DataBox.Inputs.DataImportDetailsArgs
{
AccountDetails = new AzureNative.DataBox.Inputs.StorageAccountDetailsArgs
{
DataAccountType = "StorageAccount",
SharePassword = "<sharePassword>",
StorageAccountId = "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/databoxbvt1/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount2",
},
},
},
DevicePassword = "<devicePassword>",
JobDetailsType = "DataBox",
ShippingAddress = new AzureNative.DataBox.Inputs.ShippingAddressArgs
{
AddressType = "Commercial",
City = "San Francisco",
CompanyName = "Microsoft",
Country = "US",
PostalCode = "94107",
StateOrProvince = "CA",
StreetAddress1 = "16 TOWNSEND ST",
StreetAddress2 = "Unit 1",
},
},
JobName = "SdkJob9640",
Location = "westus",
ResourceGroupName = "SdkRg7478",
Sku = new AzureNative.DataBox.Inputs.SkuArgs
{
Name = "DataBox",
},
TransferType = "ImportToAzure",
});
});
package main
import (
databox "github.com/pulumi/pulumi-azure-native/sdk/go/azure/databox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databox.NewJob(ctx, "job", &databox.JobArgs{
Details: databox.DataBoxJobDetails{
ContactDetails: databox.ContactDetails{
ContactName: "Public SDK Test",
EmailList: []string{
"testing@microsoft.com",
},
Phone: "1234567890",
PhoneExtension: "1234",
},
DataImportDetails: []databox.DataImportDetails{
{
AccountDetails: {
DataAccountType: "StorageAccount",
SharePassword: "<sharePassword>",
StorageAccountId: "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/databoxbvt1/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount2",
},
},
},
DevicePassword: "<devicePassword>",
JobDetailsType: "DataBox",
ShippingAddress: databox.ShippingAddress{
AddressType: "Commercial",
City: "San Francisco",
CompanyName: "Microsoft",
Country: "US",
PostalCode: "94107",
StateOrProvince: "CA",
StreetAddress1: "16 TOWNSEND ST",
StreetAddress2: "Unit 1",
},
},
JobName: pulumi.String("SdkJob9640"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("SdkRg7478"),
Sku: &databox.SkuArgs{
Name: pulumi.String("DataBox"),
},
TransferType: pulumi.String("ImportToAzure"),
})
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.databox.Job;
import com.pulumi.azurenative.databox.JobArgs;
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 job = new Job("job", JobArgs.builder()
.details(Map.ofEntries(
Map.entry("contactDetails", Map.ofEntries(
Map.entry("contactName", "Public SDK Test"),
Map.entry("emailList", "testing@microsoft.com"),
Map.entry("phone", "1234567890"),
Map.entry("phoneExtension", "1234")
)),
Map.entry("dataImportDetails", Map.of("accountDetails", Map.ofEntries(
Map.entry("dataAccountType", "StorageAccount"),
Map.entry("sharePassword", "<sharePassword>"),
Map.entry("storageAccountId", "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/databoxbvt1/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount2")
))),
Map.entry("devicePassword", "<devicePassword>"),
Map.entry("jobDetailsType", "DataBox"),
Map.entry("shippingAddress", Map.ofEntries(
Map.entry("addressType", "Commercial"),
Map.entry("city", "San Francisco"),
Map.entry("companyName", "Microsoft"),
Map.entry("country", "US"),
Map.entry("postalCode", "94107"),
Map.entry("stateOrProvince", "CA"),
Map.entry("streetAddress1", "16 TOWNSEND ST"),
Map.entry("streetAddress2", "Unit 1")
))
))
.jobName("SdkJob9640")
.location("westus")
.resourceGroupName("SdkRg7478")
.sku(Map.of("name", "DataBox"))
.transferType("ImportToAzure")
.build());
}
}

JobsCreateDoubleEncryption

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var job = new AzureNative.DataBox.Job("job", new()
{
Details = new AzureNative.DataBox.Inputs.DataBoxJobDetailsArgs
{
ContactDetails = new AzureNative.DataBox.Inputs.ContactDetailsArgs
{
ContactName = "Public SDK Test",
EmailList = new[]
{
"testing@microsoft.com",
},
Phone = "1234567890",
PhoneExtension = "1234",
},
DataImportDetails = new[]
{
new AzureNative.DataBox.Inputs.DataImportDetailsArgs
{
AccountDetails = new AzureNative.DataBox.Inputs.StorageAccountDetailsArgs
{
DataAccountType = "StorageAccount",
StorageAccountId = "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount",
},
},
},
JobDetailsType = "DataBox",
Preferences = new AzureNative.DataBox.Inputs.PreferencesArgs
{
EncryptionPreferences = new AzureNative.DataBox.Inputs.EncryptionPreferencesArgs
{
DoubleEncryption = "Enabled",
},
},
ShippingAddress = new AzureNative.DataBox.Inputs.ShippingAddressArgs
{
AddressType = "Commercial",
City = "San Francisco",
CompanyName = "Microsoft",
Country = "US",
PostalCode = "94107",
StateOrProvince = "CA",
StreetAddress1 = "16 TOWNSEND ST",
StreetAddress2 = "Unit 1",
},
},
JobName = "SdkJob6599",
Location = "westus",
ResourceGroupName = "SdkRg608",
Sku = new AzureNative.DataBox.Inputs.SkuArgs
{
Name = "DataBox",
},
TransferType = "ImportToAzure",
});
});
package main
import (
databox "github.com/pulumi/pulumi-azure-native/sdk/go/azure/databox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databox.NewJob(ctx, "job", &databox.JobArgs{
Details: databox.DataBoxJobDetails{
ContactDetails: databox.ContactDetails{
ContactName: "Public SDK Test",
EmailList: []string{
"testing@microsoft.com",
},
Phone: "1234567890",
PhoneExtension: "1234",
},
DataImportDetails: []databox.DataImportDetails{
{
AccountDetails: {
DataAccountType: "StorageAccount",
StorageAccountId: "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount",
},
},
},
JobDetailsType: "DataBox",
Preferences: databox.Preferences{
EncryptionPreferences: databox.EncryptionPreferences{
DoubleEncryption: "Enabled",
},
},
ShippingAddress: databox.ShippingAddress{
AddressType: "Commercial",
City: "San Francisco",
CompanyName: "Microsoft",
Country: "US",
PostalCode: "94107",
StateOrProvince: "CA",
StreetAddress1: "16 TOWNSEND ST",
StreetAddress2: "Unit 1",
},
},
JobName: pulumi.String("SdkJob6599"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("SdkRg608"),
Sku: &databox.SkuArgs{
Name: pulumi.String("DataBox"),
},
TransferType: pulumi.String("ImportToAzure"),
})
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.databox.Job;
import com.pulumi.azurenative.databox.JobArgs;
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 job = new Job("job", JobArgs.builder()
.details(Map.ofEntries(
Map.entry("contactDetails", Map.ofEntries(
Map.entry("contactName", "Public SDK Test"),
Map.entry("emailList", "testing@microsoft.com"),
Map.entry("phone", "1234567890"),
Map.entry("phoneExtension", "1234")
)),
Map.entry("dataImportDetails", Map.of("accountDetails", Map.ofEntries(
Map.entry("dataAccountType", "StorageAccount"),
Map.entry("storageAccountId", "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount")
))),
Map.entry("jobDetailsType", "DataBox"),
Map.entry("preferences", Map.of("encryptionPreferences", Map.of("doubleEncryption", "Enabled"))),
Map.entry("shippingAddress", Map.ofEntries(
Map.entry("addressType", "Commercial"),
Map.entry("city", "San Francisco"),
Map.entry("companyName", "Microsoft"),
Map.entry("country", "US"),
Map.entry("postalCode", "94107"),
Map.entry("stateOrProvince", "CA"),
Map.entry("streetAddress1", "16 TOWNSEND ST"),
Map.entry("streetAddress2", "Unit 1")
))
))
.jobName("SdkJob6599")
.location("westus")
.resourceGroupName("SdkRg608")
.sku(Map.of("name", "DataBox"))
.transferType("ImportToAzure")
.build());
}
}

JobsCreateExport

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var job = new AzureNative.DataBox.Job("job", new()
{
Details = new AzureNative.DataBox.Inputs.DataBoxJobDetailsArgs
{
ContactDetails = new AzureNative.DataBox.Inputs.ContactDetailsArgs
{
ContactName = "Public SDK Test",
EmailList = new[]
{
"testing@microsoft.com",
},
Phone = "1234567890",
PhoneExtension = "1234",
},
DataExportDetails = new[]
{
new AzureNative.DataBox.Inputs.DataExportDetailsArgs
{
AccountDetails = new AzureNative.DataBox.Inputs.StorageAccountDetailsArgs
{
DataAccountType = "StorageAccount",
StorageAccountId = "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/akvenkat/providers/Microsoft.Storage/storageAccounts/aaaaaa2",
},
TransferConfiguration = new AzureNative.DataBox.Inputs.TransferConfigurationArgs
{
TransferAllDetails = new AzureNative.DataBox.Inputs.TransferConfigurationTransferAllDetailsArgs
{
Include = new AzureNative.DataBox.Inputs.TransferAllDetailsArgs
{
DataAccountType = "StorageAccount",
TransferAllBlobs = true,
TransferAllFiles = true,
},
},
TransferConfigurationType = "TransferAll",
},
},
},
JobDetailsType = "DataBox",
ShippingAddress = new AzureNative.DataBox.Inputs.ShippingAddressArgs
{
AddressType = "Commercial",
City = "San Francisco",
CompanyName = "Microsoft",
Country = "US",
PostalCode = "94107",
StateOrProvince = "CA",
StreetAddress1 = "16 TOWNSEND ST",
StreetAddress2 = "Unit 1",
},
},
JobName = "SdkJob6429",
Location = "westus",
ResourceGroupName = "SdkRg8091",
Sku = new AzureNative.DataBox.Inputs.SkuArgs
{
Name = "DataBox",
},
TransferType = "ExportFromAzure",
});
});
package main
import (
databox "github.com/pulumi/pulumi-azure-native/sdk/go/azure/databox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databox.NewJob(ctx, "job", &databox.JobArgs{
Details: databox.DataBoxJobDetails{
ContactDetails: databox.ContactDetails{
ContactName: "Public SDK Test",
EmailList: []string{
"testing@microsoft.com",
},
Phone: "1234567890",
PhoneExtension: "1234",
},
DataExportDetails: []databox.DataExportDetails{
{
AccountDetails: {
DataAccountType: "StorageAccount",
StorageAccountId: "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/akvenkat/providers/Microsoft.Storage/storageAccounts/aaaaaa2",
},
TransferConfiguration: {
TransferAllDetails: {
Include: {
DataAccountType: "StorageAccount",
TransferAllBlobs: true,
TransferAllFiles: true,
},
},
TransferConfigurationType: "TransferAll",
},
},
},
JobDetailsType: "DataBox",
ShippingAddress: databox.ShippingAddress{
AddressType: "Commercial",
City: "San Francisco",
CompanyName: "Microsoft",
Country: "US",
PostalCode: "94107",
StateOrProvince: "CA",
StreetAddress1: "16 TOWNSEND ST",
StreetAddress2: "Unit 1",
},
},
JobName: pulumi.String("SdkJob6429"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("SdkRg8091"),
Sku: &databox.SkuArgs{
Name: pulumi.String("DataBox"),
},
TransferType: pulumi.String("ExportFromAzure"),
})
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.databox.Job;
import com.pulumi.azurenative.databox.JobArgs;
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 job = new Job("job", JobArgs.builder()
.details(Map.ofEntries(
Map.entry("contactDetails", Map.ofEntries(
Map.entry("contactName", "Public SDK Test"),
Map.entry("emailList", "testing@microsoft.com"),
Map.entry("phone", "1234567890"),
Map.entry("phoneExtension", "1234")
)),
Map.entry("dataExportDetails", Map.ofEntries(
Map.entry("accountDetails", Map.ofEntries(
Map.entry("dataAccountType", "StorageAccount"),
Map.entry("storageAccountId", "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/akvenkat/providers/Microsoft.Storage/storageAccounts/aaaaaa2")
)),
Map.entry("transferConfiguration", Map.ofEntries(
Map.entry("transferAllDetails", Map.of("include", Map.ofEntries(
Map.entry("dataAccountType", "StorageAccount"),
Map.entry("transferAllBlobs", true),
Map.entry("transferAllFiles", true)
))),
Map.entry("transferConfigurationType", "TransferAll")
))
)),
Map.entry("jobDetailsType", "DataBox"),
Map.entry("shippingAddress", Map.ofEntries(
Map.entry("addressType", "Commercial"),
Map.entry("city", "San Francisco"),
Map.entry("companyName", "Microsoft"),
Map.entry("country", "US"),
Map.entry("postalCode", "94107"),
Map.entry("stateOrProvince", "CA"),
Map.entry("streetAddress1", "16 TOWNSEND ST"),
Map.entry("streetAddress2", "Unit 1")
))
))
.jobName("SdkJob6429")
.location("westus")
.resourceGroupName("SdkRg8091")
.sku(Map.of("name", "DataBox"))
.transferType("ExportFromAzure")
.build());
}
}

JobsCreateWithUserAssignedIdentity

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var job = new AzureNative.DataBox.Job("job", new()
{
Details = new AzureNative.DataBox.Inputs.DataBoxJobDetailsArgs
{
ContactDetails = new AzureNative.DataBox.Inputs.ContactDetailsArgs
{
ContactName = "Public SDK Test",
EmailList = new[]
{
"testing@microsoft.com",
},
Phone = "1234567890",
PhoneExtension = "1234",
},
DataImportDetails = new[]
{
new AzureNative.DataBox.Inputs.DataImportDetailsArgs
{
AccountDetails = new AzureNative.DataBox.Inputs.StorageAccountDetailsArgs
{
DataAccountType = "StorageAccount",
StorageAccountId = "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/databoxbvt1/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount2",
},
},
},
JobDetailsType = "DataBox",
ShippingAddress = new AzureNative.DataBox.Inputs.ShippingAddressArgs
{
AddressType = "Commercial",
City = "San Francisco",
CompanyName = "Microsoft",
Country = "US",
PostalCode = "94107",
StateOrProvince = "CA",
StreetAddress1 = "16 TOWNSEND ST",
StreetAddress2 = "Unit 1",
},
},
Identity = new AzureNative.DataBox.Inputs.ResourceIdentityArgs
{
Type = "UserAssigned",
UserAssignedIdentities =
{
{ "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/akvenkat/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sdkIdentity", null },
},
},
JobName = "SdkJob5337",
Location = "westus",
ResourceGroupName = "SdkRg7552",
Sku = new AzureNative.DataBox.Inputs.SkuArgs
{
Name = "DataBox",
},
TransferType = "ImportToAzure",
});
});
package main
import (
databox "github.com/pulumi/pulumi-azure-native/sdk/go/azure/databox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databox.NewJob(ctx, "job", &databox.JobArgs{
Details: databox.DataBoxJobDetails{
ContactDetails: databox.ContactDetails{
ContactName: "Public SDK Test",
EmailList: []string{
"testing@microsoft.com",
},
Phone: "1234567890",
PhoneExtension: "1234",
},
DataImportDetails: []databox.DataImportDetails{
{
AccountDetails: {
DataAccountType: "StorageAccount",
StorageAccountId: "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/databoxbvt1/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount2",
},
},
},
JobDetailsType: "DataBox",
ShippingAddress: databox.ShippingAddress{
AddressType: "Commercial",
City: "San Francisco",
CompanyName: "Microsoft",
Country: "US",
PostalCode: "94107",
StateOrProvince: "CA",
StreetAddress1: "16 TOWNSEND ST",
StreetAddress2: "Unit 1",
},
},
Identity: &databox.ResourceIdentityArgs{
Type: pulumi.String("UserAssigned"),
UserAssignedIdentities: pulumi.AnyMap{
"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/akvenkat/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sdkIdentity": nil,
},
},
JobName: pulumi.String("SdkJob5337"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("SdkRg7552"),
Sku: &databox.SkuArgs{
Name: pulumi.String("DataBox"),
},
TransferType: pulumi.String("ImportToAzure"),
})
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.databox.Job;
import com.pulumi.azurenative.databox.JobArgs;
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 job = new Job("job", JobArgs.builder()
.details(Map.ofEntries(
Map.entry("contactDetails", Map.ofEntries(
Map.entry("contactName", "Public SDK Test"),
Map.entry("emailList", "testing@microsoft.com"),
Map.entry("phone", "1234567890"),
Map.entry("phoneExtension", "1234")
)),
Map.entry("dataImportDetails", Map.of("accountDetails", Map.ofEntries(
Map.entry("dataAccountType", "StorageAccount"),
Map.entry("storageAccountId", "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/databoxbvt1/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount2")
))),
Map.entry("jobDetailsType", "DataBox"),
Map.entry("shippingAddress", Map.ofEntries(
Map.entry("addressType", "Commercial"),
Map.entry("city", "San Francisco"),
Map.entry("companyName", "Microsoft"),
Map.entry("country", "US"),
Map.entry("postalCode", "94107"),
Map.entry("stateOrProvince", "CA"),
Map.entry("streetAddress1", "16 TOWNSEND ST"),
Map.entry("streetAddress2", "Unit 1")
))
))
.identity(Map.ofEntries(
Map.entry("type", "UserAssigned"),
Map.entry("userAssignedIdentities", Map.of("/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/akvenkat/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sdkIdentity", ))
))
.jobName("SdkJob5337")
.location("westus")
.resourceGroupName("SdkRg7552")
.sku(Map.of("name", "DataBox"))
.transferType("ImportToAzure")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:databox:Job SdkJob5337 /subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg7552/providers/Microsoft.DataBox/jobs/SdkJob5337

Properties

Link copied to clipboard

Reason for cancellation.

Link copied to clipboard

Delivery Info of Job.

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

Delivery type of Job.

Link copied to clipboard
val details: Output<Any>?

Details of a job run. This field will only be sent for expand details filter.

Link copied to clipboard

Top level error for the job.

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

Msi identity of the resource

Link copied to clipboard
val isCancellable: Output<Boolean>

Describes whether the job is cancellable or not.

Link copied to clipboard

Flag to indicate cancellation of scheduled job.

Link copied to clipboard
val isDeletable: Output<Boolean>

Describes whether the job is deletable or not.

Link copied to clipboard

Is Prepare To Ship Enabled on this job

Link copied to clipboard

Describes whether the shipping address is editable or not.

Link copied to clipboard
val location: Output<String>

The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed.

Link copied to clipboard
val name: Output<String>

Name of the object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sku: Output<SkuResponse>

The sku type.

Link copied to clipboard
val startTime: Output<String>

Time at which the job was started in UTC ISO 8601 format.

Link copied to clipboard
val status: Output<String>

Name of the stage which is in progress.

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

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

The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).

Link copied to clipboard
val transferType: Output<String>

Type of the data transfer.

Link copied to clipboard
val type: Output<String>

Type of the object.

Link copied to clipboard
val urn: Output<String>