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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard