Dedicated Host Args
data class DedicatedHostArgs(val autoReplaceOnFailure: Output<Boolean>? = null, val hostGroupName: Output<String>? = null, val hostName: Output<String>? = null, val licenseType: Output<DedicatedHostLicenseTypes>? = null, val location: Output<String>? = null, val platformFaultDomain: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DedicatedHostArgs>
Specifies information about the Dedicated host. API Version: 2020-12-01.
Example Usage
Create or update a dedicated host .
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dedicatedHost = new AzureNative.Compute.DedicatedHost("dedicatedHost", new()
{
HostGroupName = "myDedicatedHostGroup",
HostName = "myDedicatedHost",
Location = "westus",
PlatformFaultDomain = 1,
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.Compute.Inputs.SkuArgs
{
Name = "DSv3-Type1",
},
Tags =
{
{ "department", "HR" },
},
});
});
Content copied to clipboard
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDedicatedHost(ctx, "dedicatedHost", &compute.DedicatedHostArgs{
HostGroupName: pulumi.String("myDedicatedHostGroup"),
HostName: pulumi.String("myDedicatedHost"),
Location: pulumi.String("westus"),
PlatformFaultDomain: pulumi.Int(1),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &compute.SkuArgs{
Name: pulumi.String("DSv3-Type1"),
},
Tags: pulumi.StringMap{
"department": pulumi.String("HR"),
},
})
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.compute.DedicatedHost;
import com.pulumi.azurenative.compute.DedicatedHostArgs;
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 dedicatedHost = new DedicatedHost("dedicatedHost", DedicatedHostArgs.builder()
.hostGroupName("myDedicatedHostGroup")
.hostName("myDedicatedHost")
.location("westus")
.platformFaultDomain(1)
.resourceGroupName("myResourceGroup")
.sku(Map.of("name", "DSv3-Type1"))
.tags(Map.of("department", "HR"))
.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:compute:DedicatedHost myDedicatedHost /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/HostGroups/myDedicatedHostGroup/hosts/myDedicatedHost
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(autoReplaceOnFailure: Output<Boolean>? = null, hostGroupName: Output<String>? = null, hostName: Output<String>? = null, licenseType: Output<DedicatedHostLicenseTypes>? = null, location: Output<String>? = null, platformFaultDomain: Output<Int>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.
Link copied to clipboard
The name of the dedicated host group.
Link copied to clipboard
Specifies the software license type that will be applied to the VMs deployed on the dedicated host.
Possible values are:
None
Windows_Server_Hybrid
Windows_Server_Perpetual
Default: None
Link copied to clipboard
Fault domain of the dedicated host within a dedicated host group.
Link copied to clipboard
The name of the resource group.