Network Device Args
The Network Device resource definition. Uses Azure REST API version 2023-06-15. In version 2.x of the Azure Native provider, it used API version 2023-02-01-preview. Other available API versions: 2023-02-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native managednetworkfabric [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
NetworkDevices_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var networkDevice = new AzureNative.ManagedNetworkFabric.NetworkDevice("networkDevice", new()
{
Annotation = "annotation",
HostName = "NFA-Device",
Location = "eastuseuap",
NetworkDeviceName = "example-device",
NetworkDeviceSku = "DeviceSku",
ResourceGroupName = "example-rg",
SerialNumber = "Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX",
Tags =
{
{ "keyID", "KeyValue" },
},
});
});
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := managednetworkfabric.NewNetworkDevice(ctx, "networkDevice", &managednetworkfabric.NetworkDeviceArgs{
Annotation: pulumi.String("annotation"),
HostName: pulumi.String("NFA-Device"),
Location: pulumi.String("eastuseuap"),
NetworkDeviceName: pulumi.String("example-device"),
NetworkDeviceSku: pulumi.String("DeviceSku"),
ResourceGroupName: pulumi.String("example-rg"),
SerialNumber: pulumi.String("Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX"),
Tags: pulumi.StringMap{
"keyID": pulumi.String("KeyValue"),
},
})
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.managednetworkfabric.NetworkDevice;
import com.pulumi.azurenative.managednetworkfabric.NetworkDeviceArgs;
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 networkDevice = new NetworkDevice("networkDevice", NetworkDeviceArgs.builder()
.annotation("annotation")
.hostName("NFA-Device")
.location("eastuseuap")
.networkDeviceName("example-device")
.networkDeviceSku("DeviceSku")
.resourceGroupName("example-rg")
.serialNumber("Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX")
.tags(Map.of("keyID", "KeyValue"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:managednetworkfabric:NetworkDevice example-device /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}
Constructors
Properties
Switch configuration description.
Name of the Network Device.
Network Device SKU name.
The name of the resource group. The name is case insensitive.
Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber.