MachineArgs

data class MachineArgs(val clientPublicKey: Output<String>? = null, val identity: Output<MachineIdentityArgs>? = null, val location: Output<String>? = null, val locationData: Output<LocationDataArgs>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vmId: Output<String>? = null) : ConvertibleToJava<MachineArgs>

Describes a hybrid machine. API Version: 2020-08-02.

Example Usage

Create or Update a Machine

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var machine = new AzureNative.HybridCompute.Machine("machine", new()
{
ClientPublicKey = "string",
Identity = new AzureNative.HybridCompute.Inputs.MachineIdentityArgs
{
Type = "SystemAssigned",
},
Location = "eastus2euap",
LocationData = new AzureNative.HybridCompute.Inputs.LocationDataArgs
{
Name = "Redmond",
},
Name = "myMachine",
ResourceGroupName = "myResourceGroup",
VmId = "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
});
});
package main
import (
hybridcompute "github.com/pulumi/pulumi-azure-native-sdk/hybridcompute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridcompute.NewMachine(ctx, "machine", &hybridcompute.MachineArgs{
ClientPublicKey: pulumi.String("string"),
Identity: &hybridcompute.MachineIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
Location: pulumi.String("eastus2euap"),
LocationData: &hybridcompute.LocationDataArgs{
Name: pulumi.String("Redmond"),
},
Name: pulumi.String("myMachine"),
ResourceGroupName: pulumi.String("myResourceGroup"),
VmId: pulumi.String("b7a098cc-b0b8-46e8-a205-62f301a62a8f"),
})
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.hybridcompute.Machine;
import com.pulumi.azurenative.hybridcompute.MachineArgs;
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 machine = new Machine("machine", MachineArgs.builder()
.clientPublicKey("string")
.identity(Map.of("type", "SystemAssigned"))
.location("eastus2euap")
.locationData(Map.of("name", "Redmond"))
.name("myMachine")
.resourceGroupName("myResourceGroup")
.vmId("b7a098cc-b0b8-46e8-a205-62f301a62a8f")
.build());
}
}

Import

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

$ pulumi import azure-native:hybridcompute:Machine myMachine /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine

Constructors

Link copied to clipboard
constructor(clientPublicKey: Output<String>? = null, identity: Output<MachineIdentityArgs>? = null, location: Output<String>? = null, locationData: Output<LocationDataArgs>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, vmId: Output<String>? = null)

Properties

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

Public Key that the client provides to be used during initial resource onboarding

Link copied to clipboard
val identity: Output<MachineIdentityArgs>? = null
Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val locationData: Output<LocationDataArgs>? = null

Metadata pertaining to the geographic location of the resource.

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

The name of the hybrid machine.

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

The name of the resource group.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

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

Specifies the hybrid machine unique ID.

Functions

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