Hci Edge Device
Arc-enabled edge device with HCI OS. Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2023-08-01-preview.
Example Usage
Create HCI Edge Device
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hciEdgeDevice = new AzureNative.AzureStackHCI.HciEdgeDevice("hciEdgeDevice", new()
{
EdgeDeviceName = "default",
Kind = "HCI",
Properties = new AzureNative.AzureStackHCI.Inputs.HciEdgeDevicePropertiesArgs
{
DeviceConfiguration = new AzureNative.AzureStackHCI.Inputs.DeviceConfigurationArgs
{
DeviceMetadata = "",
NicDetails = new[]
{
new AzureNative.AzureStackHCI.Inputs.NicDetailArgs
{
AdapterName = "ethernet",
ComponentId = "VMBUS{f8615163-df3e-46c5-913f-f2d2f965ed0g} ",
DefaultGateway = "10.10.10.1",
DefaultIsolationId = "0",
DnsServers = new[]
{
"100.10.10.1",
},
DriverVersion = "10.0.20348.1547 ",
InterfaceDescription = "NDIS 6.70 ",
Ip4Address = "10.10.10.10",
SubnetMask = "255.255.255.0",
},
},
},
},
ResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
});
});
Content copied to clipboard
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewHciEdgeDevice(ctx, "hciEdgeDevice", &azurestackhci.HciEdgeDeviceArgs{
EdgeDeviceName: pulumi.String("default"),
Kind: pulumi.String("HCI"),
Properties: &azurestackhci.HciEdgeDevicePropertiesArgs{
DeviceConfiguration: &azurestackhci.DeviceConfigurationArgs{
DeviceMetadata: pulumi.String(""),
NicDetails: azurestackhci.NicDetailArray{
&azurestackhci.NicDetailArgs{
AdapterName: pulumi.String("ethernet"),
ComponentId: pulumi.String("VMBUS{f8615163-df3e-46c5-913f-f2d2f965ed0g} "),
DefaultGateway: pulumi.String("10.10.10.1"),
DefaultIsolationId: pulumi.String("0"),
DnsServers: pulumi.StringArray{
pulumi.String("100.10.10.1"),
},
DriverVersion: pulumi.String("10.0.20348.1547 "),
InterfaceDescription: pulumi.String("NDIS 6.70 "),
Ip4Address: pulumi.String("10.10.10.10"),
SubnetMask: pulumi.String("255.255.255.0"),
},
},
},
},
ResourceUri: pulumi.String("subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1"),
})
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.azurestackhci.HciEdgeDevice;
import com.pulumi.azurenative.azurestackhci.HciEdgeDeviceArgs;
import com.pulumi.azurenative.azurestackhci.inputs.HciEdgeDevicePropertiesArgs;
import com.pulumi.azurenative.azurestackhci.inputs.DeviceConfigurationArgs;
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 hciEdgeDevice = new HciEdgeDevice("hciEdgeDevice", HciEdgeDeviceArgs.builder()
.edgeDeviceName("default")
.kind("HCI")
.properties(HciEdgeDevicePropertiesArgs.builder()
.deviceConfiguration(DeviceConfigurationArgs.builder()
.deviceMetadata("")
.nicDetails(NicDetailArgs.builder()
.adapterName("ethernet")
.componentId("VMBUS{f8615163-df3e-46c5-913f-f2d2f965ed0g} ")
.defaultGateway("10.10.10.1")
.defaultIsolationId("0")
.dnsServers("100.10.10.1")
.driverVersion("10.0.20348.1547 ")
.interfaceDescription("NDIS 6.70 ")
.ip4Address("10.10.10.10")
.subnetMask("255.255.255.0")
.build())
.build())
.build())
.resourceUri("subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1")
.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:azurestackhci:HciEdgeDevice default /{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
properties for Arc-enabled edge device with HCI OS.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.