MachineGroup

class MachineGroup : KotlinCustomResource

A user-defined logical grouping of machines. Uses Azure REST API version 2015-11-01-preview. In version 1.x of the Azure Native provider, it used API version 2015-11-01-preview.

Example Usage

SMMachineGroupsUpdatePut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var machineGroup = new AzureNative.OperationalInsights.MachineGroup("machineGroup", new()
{
Count = 1,
DisplayName = "Foo",
Kind = "machineGroup",
MachineGroupName = "ccfbf4bf-dc08-4371-9e9b-00a8d875d45a",
Machines = new[]
{
new AzureNative.OperationalInsights.Inputs.MachineReferenceWithHintsArgs
{
Id = "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-0fe4b501-7ac9-41d7-a4e1-1591a0789519",
Kind = "ref:machinewithhints",
},
},
ResourceGroupName = "rg-sm",
WorkspaceName = "D6F79F14-E563-469B-84B5-9286D2803B2F",
});
});
package main
import (
operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := operationalinsights.NewMachineGroup(ctx, "machineGroup", &operationalinsights.MachineGroupArgs{
Count: pulumi.Int(1),
DisplayName: pulumi.String("Foo"),
Kind: pulumi.String("machineGroup"),
MachineGroupName: pulumi.String("ccfbf4bf-dc08-4371-9e9b-00a8d875d45a"),
Machines: operationalinsights.MachineReferenceWithHintsArray{
&operationalinsights.MachineReferenceWithHintsArgs{
Id: pulumi.String("/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-0fe4b501-7ac9-41d7-a4e1-1591a0789519"),
Kind: pulumi.String("ref:machinewithhints"),
},
},
ResourceGroupName: pulumi.String("rg-sm"),
WorkspaceName: pulumi.String("D6F79F14-E563-469B-84B5-9286D2803B2F"),
})
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.operationalinsights.MachineGroup;
import com.pulumi.azurenative.operationalinsights.MachineGroupArgs;
import com.pulumi.azurenative.operationalinsights.inputs.MachineReferenceWithHintsArgs;
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 machineGroup = new MachineGroup("machineGroup", MachineGroupArgs.builder()
.count(1)
.displayName("Foo")
.kind("machineGroup")
.machineGroupName("ccfbf4bf-dc08-4371-9e9b-00a8d875d45a")
.machines(MachineReferenceWithHintsArgs.builder()
.id("/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-0fe4b501-7ac9-41d7-a4e1-1591a0789519")
.kind("ref:machinewithhints")
.build())
.resourceGroupName("rg-sm")
.workspaceName("D6F79F14-E563-469B-84B5-9286D2803B2F")
.build());
}
}

Import

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

$ pulumi import azure-native:operationalinsights:MachineGroup ccfbf4bf-dc08-4371-9e9b-00a8d875d45a /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups/{machineGroupName}

Properties

Link copied to clipboard
val count: Output<Int>?

Count of machines in this group. The value of count may be bigger than the number of machines in case of the group has been truncated due to exceeding the max number of machines a group can handle.

Link copied to clipboard
val displayName: Output<String>

User defined name for the group

Link copied to clipboard
val etag: Output<String>?

Resource ETAG.

Link copied to clipboard
val groupType: Output<String>?

Type of the machine group

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

Additional resource type qualifier. Expected value is 'machineGroup'.

Link copied to clipboard

References of the machines in this group. The hints within each reference do not represent the current value of the corresponding fields. They are a snapshot created during the last time the machine group was updated.

Link copied to clipboard
val name: Output<String>

Resource name.

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

Resource type.

Link copied to clipboard
val urn: Output<String>