Machine Group Args
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
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
User defined name for the group
Link copied to clipboard
Type of the machine group
Link copied to clipboard
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
Resource group name within the specified subscriptionId.
Link copied to clipboard
OMS workspace containing the resources of interest.