Machine Args
data class MachineArgs(val agentUpgrade: Output<AgentUpgradeArgs>? = null, val clientPublicKey: Output<String>? = null, val extensions: Output<List<MachineExtensionInstanceViewArgs>>? = null, val identity: Output<IdentityArgs>? = null, val location: Output<String>? = null, val locationData: Output<LocationDataArgs>? = null, val machineName: Output<String>? = null, val mssqlDiscovered: Output<String>? = null, val osProfile: Output<OSProfileArgs>? = null, val osType: Output<String>? = null, val parentClusterResourceId: Output<String>? = null, val privateLinkScopeResourceId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serviceStatuses: Output<ServiceStatusesArgs>? = null, val tags: Output<Map<String, String>>? = null, val vmId: Output<String>? = null) : ConvertibleToJava<MachineArgs>
Describes a hybrid machine. Azure REST API version: 2022-12-27. Prior API version in Azure Native 1.x: 2020-08-02. Other available API versions: 2019-03-18-preview, 2019-08-02-preview, 2020-08-02, 2020-08-15-preview, 2022-05-10-preview, 2023-06-20-preview.
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.IdentityArgs
{
Type = AzureNative.HybridCompute.ResourceIdentityType.SystemAssigned,
},
Location = "eastus2euap",
LocationData = new AzureNative.HybridCompute.Inputs.LocationDataArgs
{
Name = "Redmond",
},
MachineName = "myMachine",
ParentClusterResourceId = "{AzureStackHCIResourceId}",
PrivateLinkScopeResourceId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName",
ResourceGroupName = "myResourceGroup",
VmId = "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/hybridcompute/v2"
"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.IdentityArgs{
Type: hybridcompute.ResourceIdentityTypeSystemAssigned,
},
Location: pulumi.String("eastus2euap"),
LocationData: &hybridcompute.LocationDataArgs{
Name: pulumi.String("Redmond"),
},
MachineName: pulumi.String("myMachine"),
ParentClusterResourceId: pulumi.String("{AzureStackHCIResourceId}"),
PrivateLinkScopeResourceId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"),
ResourceGroupName: pulumi.String("myResourceGroup"),
VmId: pulumi.String("b7a098cc-b0b8-46e8-a205-62f301a62a8f"),
})
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.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"))
.machineName("myMachine")
.parentClusterResourceId("{AzureStackHCIResourceId}")
.privateLinkScopeResourceId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName")
.resourceGroupName("myResourceGroup")
.vmId("b7a098cc-b0b8-46e8-a205-62f301a62a8f")
.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:hybridcompute:Machine myMachine /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun MachineArgs(agentUpgrade: Output<AgentUpgradeArgs>? = null, clientPublicKey: Output<String>? = null, extensions: Output<List<MachineExtensionInstanceViewArgs>>? = null, identity: Output<IdentityArgs>? = null, location: Output<String>? = null, locationData: Output<LocationDataArgs>? = null, machineName: Output<String>? = null, mssqlDiscovered: Output<String>? = null, osProfile: Output<OSProfileArgs>? = null, osType: Output<String>? = null, parentClusterResourceId: Output<String>? = null, privateLinkScopeResourceId: Output<String>? = null, resourceGroupName: Output<String>? = null, serviceStatuses: Output<ServiceStatusesArgs>? = null, tags: Output<Map<String, String>>? = null, vmId: Output<String>? = null)