AzureBareMetalInstanceArgs

data class AzureBareMetalInstanceArgs(val azureBareMetalInstanceId: Output<String>? = null, val azureBareMetalInstanceName: Output<String>? = null, val hardwareProfile: Output<HardwareProfileArgs>? = null, val hwRevision: Output<String>? = null, val location: Output<String>? = null, val networkProfile: Output<NetworkProfileArgs>? = null, val osProfile: Output<OSProfileArgs>? = null, val partnerNodeId: Output<String>? = null, val powerState: Output<Either<String, AzureBareMetalInstancePowerStateEnum>>? = null, val proximityPlacementGroup: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageProfile: Output<StorageProfileArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AzureBareMetalInstanceArgs>

AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) Uses Azure REST API version 2024-08-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-08-01-preview.

Example Usage

AzureBareMetalInstances_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var azureBareMetalInstance = new AzureNative.BareMetalInfrastructure.AzureBareMetalInstance("azureBareMetalInstance", new()
{
AzureBareMetalInstanceId = "23415635-4d7e-41dc-9598-8194f22c24e1",
AzureBareMetalInstanceName = "myBMIInstance",
HardwareProfile = new AzureNative.BareMetalInfrastructure.Inputs.HardwareProfileArgs
{
AzureBareMetalInstanceSize = AzureNative.BareMetalInfrastructure.AzureBareMetalInstanceSizeNamesEnum.S72,
HardwareType = AzureNative.BareMetalInfrastructure.AzureBareMetalHardwareTypeNamesEnum.Cisco_UCS,
},
HwRevision = "Rev 3",
Location = "westus",
NetworkProfile = new AzureNative.BareMetalInfrastructure.Inputs.NetworkProfileArgs
{
CircuitId = "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit",
NetworkInterfaces = new[]
{
new AzureNative.BareMetalInfrastructure.Inputs.NetworkInterfaceArgs
{
IpAddress = "100.100.100.100",
},
},
},
OsProfile = new AzureNative.BareMetalInfrastructure.Inputs.OSProfileArgs
{
ComputerName = "myComputerName",
OsType = "SUSE",
SshPublicKey = "{ssh-rsa public key}",
Version = "12 SP1",
},
PowerState = AzureNative.BareMetalInfrastructure.AzureBareMetalInstancePowerStateEnum.Started,
ProximityPlacementGroup = "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup",
ResourceGroupName = "myResourceGroup",
StorageProfile = new AzureNative.BareMetalInfrastructure.Inputs.StorageProfileArgs
{
NfsIpAddress = "200.200.200.200",
},
Tags =
{
{ "testkey", "testvalue" },
},
});
});
package main
import (
baremetalinfrastructure "github.com/pulumi/pulumi-azure-native-sdk/baremetalinfrastructure/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := baremetalinfrastructure.NewAzureBareMetalInstance(ctx, "azureBareMetalInstance", &baremetalinfrastructure.AzureBareMetalInstanceArgs{
AzureBareMetalInstanceId: pulumi.String("23415635-4d7e-41dc-9598-8194f22c24e1"),
AzureBareMetalInstanceName: pulumi.String("myBMIInstance"),
HardwareProfile: &baremetalinfrastructure.HardwareProfileArgs{
AzureBareMetalInstanceSize: pulumi.String(baremetalinfrastructure.AzureBareMetalInstanceSizeNamesEnumS72),
HardwareType: pulumi.String(baremetalinfrastructure.AzureBareMetalHardwareTypeNamesEnum_Cisco_UCS),
},
HwRevision: pulumi.String("Rev 3"),
Location: pulumi.String("westus"),
NetworkProfile: &baremetalinfrastructure.NetworkProfileArgs{
CircuitId: pulumi.String("/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit"),
NetworkInterfaces: baremetalinfrastructure.NetworkInterfaceArray{
&baremetalinfrastructure.NetworkInterfaceArgs{
IpAddress: pulumi.String("100.100.100.100"),
},
},
},
OsProfile: &baremetalinfrastructure.OSProfileArgs{
ComputerName: pulumi.String("myComputerName"),
OsType: pulumi.String("SUSE"),
SshPublicKey: pulumi.String("{ssh-rsa public key}"),
Version: pulumi.String("12 SP1"),
},
PowerState: pulumi.String(baremetalinfrastructure.AzureBareMetalInstancePowerStateEnumStarted),
ProximityPlacementGroup: pulumi.String("/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup"),
ResourceGroupName: pulumi.String("myResourceGroup"),
StorageProfile: &baremetalinfrastructure.StorageProfileArgs{
NfsIpAddress: pulumi.String("200.200.200.200"),
},
Tags: pulumi.StringMap{
"testkey": pulumi.String("testvalue"),
},
})
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.baremetalinfrastructure.AzureBareMetalInstance;
import com.pulumi.azurenative.baremetalinfrastructure.AzureBareMetalInstanceArgs;
import com.pulumi.azurenative.baremetalinfrastructure.inputs.HardwareProfileArgs;
import com.pulumi.azurenative.baremetalinfrastructure.inputs.NetworkProfileArgs;
import com.pulumi.azurenative.baremetalinfrastructure.inputs.OSProfileArgs;
import com.pulumi.azurenative.baremetalinfrastructure.inputs.StorageProfileArgs;
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 azureBareMetalInstance = new AzureBareMetalInstance("azureBareMetalInstance", AzureBareMetalInstanceArgs.builder()
.azureBareMetalInstanceId("23415635-4d7e-41dc-9598-8194f22c24e1")
.azureBareMetalInstanceName("myBMIInstance")
.hardwareProfile(HardwareProfileArgs.builder()
.azureBareMetalInstanceSize("S72")
.hardwareType("Cisco_UCS")
.build())
.hwRevision("Rev 3")
.location("westus")
.networkProfile(NetworkProfileArgs.builder()
.circuitId("/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit")
.networkInterfaces(NetworkInterfaceArgs.builder()
.ipAddress("100.100.100.100")
.build())
.build())
.osProfile(OSProfileArgs.builder()
.computerName("myComputerName")
.osType("SUSE")
.sshPublicKey("{ssh-rsa public key}")
.version("12 SP1")
.build())
.powerState("started")
.proximityPlacementGroup("/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup")
.resourceGroupName("myResourceGroup")
.storageProfile(StorageProfileArgs.builder()
.nfsIpAddress("200.200.200.200")
.build())
.tags(Map.of("testkey", "testvalue"))
.build());
}
}

Import

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

$ pulumi import azure-native:baremetalinfrastructure:AzureBareMetalInstance myBMIInstance /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}

Constructors

Link copied to clipboard
constructor(azureBareMetalInstanceId: Output<String>? = null, azureBareMetalInstanceName: Output<String>? = null, hardwareProfile: Output<HardwareProfileArgs>? = null, hwRevision: Output<String>? = null, location: Output<String>? = null, networkProfile: Output<NetworkProfileArgs>? = null, osProfile: Output<OSProfileArgs>? = null, partnerNodeId: Output<String>? = null, powerState: Output<Either<String, AzureBareMetalInstancePowerStateEnum>>? = null, proximityPlacementGroup: Output<String>? = null, resourceGroupName: Output<String>? = null, storageProfile: Output<StorageProfileArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val azureBareMetalInstanceId: Output<String>? = null

Specifies the Azure Bare Metal Instance unique ID.

Link copied to clipboard
val azureBareMetalInstanceName: Output<String>? = null

Name of the Azure Bare Metal Instance, also known as the ResourceName.

Link copied to clipboard

Specifies the hardware settings for the Azure Bare Metal Instance.

Link copied to clipboard
val hwRevision: Output<String>? = null

Hardware revision of an Azure Bare Metal Instance

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val networkProfile: Output<NetworkProfileArgs>? = null

Specifies the network settings for the Azure Bare Metal Instance.

Link copied to clipboard
val osProfile: Output<OSProfileArgs>? = null

Specifies the operating system settings for the Azure Bare Metal Instance.

Link copied to clipboard
val partnerNodeId: Output<String>? = null

ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance

Link copied to clipboard

Resource power state

Link copied to clipboard
val proximityPlacementGroup: Output<String>? = null

Resource proximity placement group

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val storageProfile: Output<StorageProfileArgs>? = null

Specifies the storage settings for the Azure Bare Metal Instance disks.

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

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): AzureBareMetalInstanceArgs