pulumi_wasm_providers_azure_mini::compute

Module dedicated_host_group

source
Expand description

Manage 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-rg-compute")
            .build_struct(),
    );
    let exampleDedicatedHostGroup = dedicated_host_group::create(
        "exampleDedicatedHostGroup",
        DedicatedHostGroupArgs::builder()
            .location("${example.location}")
            .name("example-dedicated-host-group")
            .platform_fault_domain_count(1)
            .resource_group_name("${example.name}")
            .build_struct(),
    );
}

§Import

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

$ pulumi import azure:compute/dedicatedHostGroup:DedicatedHostGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/hostGroups/group1

Structs§

Functions§

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