AssignmentDedicatedHost

class AssignmentDedicatedHost : KotlinCustomResource

Manages a maintenance assignment to Dedicated Host.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.compute.DedicatedHostGroup;
import com.pulumi.azure.compute.DedicatedHostGroupArgs;
import com.pulumi.azure.compute.DedicatedHost;
import com.pulumi.azure.compute.DedicatedHostArgs;
import com.pulumi.azure.maintenance.Configuration;
import com.pulumi.azure.maintenance.ConfigurationArgs;
import com.pulumi.azure.maintenance.AssignmentDedicatedHost;
import com.pulumi.azure.maintenance.AssignmentDedicatedHostArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleDedicatedHostGroup = new DedicatedHostGroup("exampleDedicatedHostGroup", DedicatedHostGroupArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.platformFaultDomainCount(2)
.build());
var exampleDedicatedHost = new DedicatedHost("exampleDedicatedHost", DedicatedHostArgs.builder()
.location(exampleResourceGroup.location())
.dedicatedHostGroupId(exampleDedicatedHostGroup.id())
.skuName("DSv3-Type1")
.platformFaultDomain(1)
.build());
var exampleConfiguration = new Configuration("exampleConfiguration", ConfigurationArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.scope("Host")
.build());
var exampleAssignmentDedicatedHost = new AssignmentDedicatedHost("exampleAssignmentDedicatedHost", AssignmentDedicatedHostArgs.builder()
.location(exampleResourceGroup.location())
.maintenanceConfigurationId(exampleConfiguration.id())
.dedicatedHostId(exampleDedicatedHost.id())
.build());
}
}

Import

Maintenance Assignment can be imported using the resource id, e.g.

$ pulumi import azure:maintenance/assignmentDedicatedHost:AssignmentDedicatedHost example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Compute/hostGroups/group1/hosts/host1/providers/Microsoft.Maintenance/configurationAssignments/assign1

Properties

Link copied to clipboard
val dedicatedHostId: Output<String>

Specifies the Dedicated Host ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Link copied to clipboard

Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>