MachineGroupArgs

data class MachineGroupArgs(val count: Output<Int>? = null, val displayName: Output<String>? = null, val groupType: Output<Either<String, MachineGroupType>>? = null, val kind: Output<String>? = null, val machineGroupName: Output<String>? = null, val machines: Output<List<MachineReferenceWithHintsArgs>>? = null, val resourceGroupName: Output<String>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<MachineGroupArgs>

A user-defined logical grouping of machines. Uses Azure REST API version 2015-11-01-preview. In version 2.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}

Constructors

Link copied to clipboard
constructor(count: Output<Int>? = null, displayName: Output<String>? = null, groupType: Output<Either<String, MachineGroupType>>? = null, kind: Output<String>? = null, machineGroupName: Output<String>? = null, machines: Output<List<MachineReferenceWithHintsArgs>>? = null, resourceGroupName: Output<String>? = null, workspaceName: Output<String>? = null)

Properties

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

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>? = null

User defined name for the group

Link copied to clipboard
val groupType: Output<Either<String, MachineGroupType>>? = null

Type of the machine group

Link copied to clipboard
val kind: Output<String>? = null

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

Link copied to clipboard
val machineGroupName: Output<String>? = null

Machine Group resource name.

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 resourceGroupName: Output<String>? = null

Resource group name within the specified subscriptionId.

Link copied to clipboard
val workspaceName: Output<String>? = null

OMS workspace containing the resources of interest.

Functions

Link copied to clipboard
open override fun toJava(): MachineGroupArgs