Device Args
The Data Box Edge/Gateway device. Uses Azure REST API version 2023-07-01. In version 2.x of the Azure Native provider, it used API version 2022-03-01. Other available API versions: 2022-03-01, 2022-04-01-preview, 2022-12-01-preview, 2023-01-01-preview, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native databoxedge [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
DataBoxEdgeDevicePut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var device = new AzureNative.DataBoxEdge.Device("device", new()
{
DeviceName = "testedgedevice",
Location = "WUS",
ResourceGroupName = "GroupForEdgeAutomation",
Sku = new AzureNative.DataBoxEdge.Inputs.SkuArgs
{
Name = AzureNative.DataBoxEdge.SkuName.Edge,
Tier = AzureNative.DataBoxEdge.SkuTier.Standard,
},
Tags = null,
});
});
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewDevice(ctx, "device", &databoxedge.DeviceArgs{
DeviceName: pulumi.String("testedgedevice"),
Location: pulumi.String("WUS"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
Sku: &databoxedge.SkuArgs{
Name: pulumi.String(databoxedge.SkuNameEdge),
Tier: pulumi.String(databoxedge.SkuTierStandard),
},
Tags: pulumi.StringMap{},
})
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.databoxedge.Device;
import com.pulumi.azurenative.databoxedge.DeviceArgs;
import com.pulumi.azurenative.databoxedge.inputs.SkuArgs;
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 device = new Device("device", DeviceArgs.builder()
.deviceName("testedgedevice")
.location("WUS")
.resourceGroupName("GroupForEdgeAutomation")
.sku(SkuArgs.builder()
.name("Edge")
.tier("Standard")
.build())
.tags()
.build());
}
}
DataBoxEdgeDevicePutWithDataResidency
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var device = new AzureNative.DataBoxEdge.Device("device", new()
{
DataResidency = new AzureNative.DataBoxEdge.Inputs.DataResidencyArgs
{
Type = AzureNative.DataBoxEdge.DataResidencyType.ZoneReplication,
},
DeviceName = "testedgedevice",
Location = "WUS",
ResourceGroupName = "GroupForEdgeAutomation",
Sku = new AzureNative.DataBoxEdge.Inputs.SkuArgs
{
Name = AzureNative.DataBoxEdge.SkuName.Edge,
Tier = AzureNative.DataBoxEdge.SkuTier.Standard,
},
Tags = null,
});
});
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewDevice(ctx, "device", &databoxedge.DeviceArgs{
DataResidency: &databoxedge.DataResidencyArgs{
Type: pulumi.String(databoxedge.DataResidencyTypeZoneReplication),
},
DeviceName: pulumi.String("testedgedevice"),
Location: pulumi.String("WUS"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
Sku: &databoxedge.SkuArgs{
Name: pulumi.String(databoxedge.SkuNameEdge),
Tier: pulumi.String(databoxedge.SkuTierStandard),
},
Tags: pulumi.StringMap{},
})
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.databoxedge.Device;
import com.pulumi.azurenative.databoxedge.DeviceArgs;
import com.pulumi.azurenative.databoxedge.inputs.DataResidencyArgs;
import com.pulumi.azurenative.databoxedge.inputs.SkuArgs;
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 device = new Device("device", DeviceArgs.builder()
.dataResidency(DataResidencyArgs.builder()
.type("ZoneReplication")
.build())
.deviceName("testedgedevice")
.location("WUS")
.resourceGroupName("GroupForEdgeAutomation")
.sku(SkuArgs.builder()
.name("Edge")
.tier("Standard")
.build())
.tags()
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:databoxedge:Device testedgedevice /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}
Constructors
Properties
The details of data-residency related properties for this resource
The device name.
Msi identity of the resource
The location of the device. This is a supported and registered Azure geographical region (for example, West US, East US, or Southeast Asia). The geographical region of a device cannot be changed once it is created, but if an identical geographical region is specified on update, the request will succeed.
The resource group name.