pulumi_wasm_providers_azure_mini::compute

Module dedicated_host

source
Expand description

Manage a Dedicated Host within a Dedicated Host Group.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let example = resource_group::create(
        "example",
        ResourceGroupArgs::builder()
            .location("West Europe")
            .name("example-resources")
            .build_struct(),
    );
    let exampleDedicatedHost = dedicated_host::create(
        "exampleDedicatedHost",
        DedicatedHostArgs::builder()
            .dedicated_host_group_id("${exampleDedicatedHostGroup.id}")
            .location("${example.location}")
            .name("example-host")
            .platform_fault_domain(1)
            .sku_name("DSv3-Type3")
            .build_struct(),
    );
    let exampleDedicatedHostGroup = dedicated_host_group::create(
        "exampleDedicatedHostGroup",
        DedicatedHostGroupArgs::builder()
            .location("${example.location}")
            .name("example-host-group")
            .platform_fault_domain_count(2)
            .resource_group_name("${example.name}")
            .build_struct(),
    );
}

§Import

Dedicated Hosts can be imported using the resource id, e.g.

$ pulumi import azure:compute/dedicatedHost:DedicatedHost example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/hostGroups/group1/hosts/host1

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments