Azure Native

v1.88.1 published on Thursday, Dec 1, 2022 by Pulumi

Machine

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

Example Usage

Create or Update a Machine

using System.Collections.Generic;
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/go/azure/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.LocationDataResponse{
				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 pulumi
import pulumi_azure_native as azure_native

machine = azure_native.hybridcompute.Machine("machine",
    client_public_key="string",
    identity=azure_native.hybridcompute.MachineIdentityArgs(
        type="SystemAssigned",
    ),
    location="eastus2euap",
    location_data=azure_native.hybridcompute.LocationDataResponseArgs(
        name="Redmond",
    ),
    name="myMachine",
    resource_group_name="myResourceGroup",
    vm_id="b7a098cc-b0b8-46e8-a205-62f301a62a8f")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const machine = new azure_native.hybridcompute.Machine("machine", {
    clientPublicKey: "string",
    identity: {
        type: "SystemAssigned",
    },
    location: "eastus2euap",
    locationData: {
        name: "Redmond",
    },
    name: "myMachine",
    resourceGroupName: "myResourceGroup",
    vmId: "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
});
resources:
  machine:
    type: azure-native:hybridcompute:Machine
    properties:
      clientPublicKey: string
      identity:
        type: SystemAssigned
      location: eastus2euap
      locationData:
        name: Redmond
      name: myMachine
      resourceGroupName: myResourceGroup
      vmId: b7a098cc-b0b8-46e8-a205-62f301a62a8f

Create Machine Resource

new Machine(name: string, args: MachineArgs, opts?: CustomResourceOptions);
@overload
def Machine(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            client_public_key: Optional[str] = None,
            identity: Optional[MachineIdentityArgs] = None,
            location: Optional[str] = None,
            location_data: Optional[LocationDataArgs] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            vm_id: Optional[str] = None)
@overload
def Machine(resource_name: str,
            args: MachineArgs,
            opts: Optional[ResourceOptions] = None)
func NewMachine(ctx *Context, name string, args MachineArgs, opts ...ResourceOption) (*Machine, error)
public Machine(string name, MachineArgs args, CustomResourceOptions? opts = null)
public Machine(String name, MachineArgs args)
public Machine(String name, MachineArgs args, CustomResourceOptions options)
type: azure-native:hybridcompute:Machine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args MachineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args MachineArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args MachineArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args MachineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args MachineArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Machine Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Machine resource accepts the following input properties:

ResourceGroupName string

The name of the resource group.

ClientPublicKey string

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

Identity Pulumi.AzureNative.HybridCompute.Inputs.MachineIdentityArgs
Location string

The geo-location where the resource lives

LocationData Pulumi.AzureNative.HybridCompute.Inputs.LocationDataArgs

Metadata pertaining to the geographic location of the resource.

Name string

The name of the hybrid machine.

Tags Dictionary<string, string>

Resource tags.

VmId string

Specifies the hybrid machine unique ID.

ResourceGroupName string

The name of the resource group.

ClientPublicKey string

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

Identity MachineIdentityArgs
Location string

The geo-location where the resource lives

LocationData LocationDataArgs

Metadata pertaining to the geographic location of the resource.

Name string

The name of the hybrid machine.

Tags map[string]string

Resource tags.

VmId string

Specifies the hybrid machine unique ID.

resourceGroupName String

The name of the resource group.

clientPublicKey String

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

identity MachineIdentityArgs
location String

The geo-location where the resource lives

locationData LocationDataArgs

Metadata pertaining to the geographic location of the resource.

name String

The name of the hybrid machine.

tags Map<String,String>

Resource tags.

vmId String

Specifies the hybrid machine unique ID.

resourceGroupName string

The name of the resource group.

clientPublicKey string

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

identity MachineIdentityArgs
location string

The geo-location where the resource lives

locationData LocationDataArgs

Metadata pertaining to the geographic location of the resource.

name string

The name of the hybrid machine.

tags {[key: string]: string}

Resource tags.

vmId string

Specifies the hybrid machine unique ID.

resource_group_name str

The name of the resource group.

client_public_key str

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

identity MachineIdentityArgs
location str

The geo-location where the resource lives

location_data LocationDataArgs

Metadata pertaining to the geographic location of the resource.

name str

The name of the hybrid machine.

tags Mapping[str, str]

Resource tags.

vm_id str

Specifies the hybrid machine unique ID.

resourceGroupName String

The name of the resource group.

clientPublicKey String

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

identity Property Map
location String

The geo-location where the resource lives

locationData Property Map

Metadata pertaining to the geographic location of the resource.

name String

The name of the hybrid machine.

tags Map<String>

Resource tags.

vmId String

Specifies the hybrid machine unique ID.

Outputs

All input properties are implicitly available as output properties. Additionally, the Machine resource produces the following output properties:

AdFqdn string

Specifies the AD fully qualified display name.

AgentVersion string

The hybrid machine agent full version.

DisplayName string

Specifies the hybrid machine display name.

DnsFqdn string

Specifies the DNS fully qualified display name.

DomainName string

Specifies the Windows domain name.

ErrorDetails List<Pulumi.AzureNative.HybridCompute.Outputs.ErrorDetailResponse>

Details about the error state.

Extensions List<Pulumi.AzureNative.HybridCompute.Outputs.MachineExtensionInstanceViewResponse>

Machine Extensions information

Id string

The provider-assigned unique ID for this managed resource.

LastStatusChange string

The time of the last status change.

MachineFqdn string

Specifies the hybrid machine FQDN.

OsName string

The Operating System running on the hybrid machine.

OsSku string

Specifies the Operating System product SKU.

OsVersion string

The version of Operating System running on the hybrid machine.

ProvisioningState string

The provisioning state, which only appears in the response.

Status string

The status of the hybrid machine agent.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

VmUuid string

Specifies the Arc Machine's unique SMBIOS ID

OsProfile Pulumi.AzureNative.HybridCompute.Outputs.MachinePropertiesResponseOsProfile

Specifies the operating system settings for the hybrid machine.

AdFqdn string

Specifies the AD fully qualified display name.

AgentVersion string

The hybrid machine agent full version.

DisplayName string

Specifies the hybrid machine display name.

DnsFqdn string

Specifies the DNS fully qualified display name.

DomainName string

Specifies the Windows domain name.

ErrorDetails []ErrorDetailResponse

Details about the error state.

Extensions []MachineExtensionInstanceViewResponse

Machine Extensions information

Id string

The provider-assigned unique ID for this managed resource.

LastStatusChange string

The time of the last status change.

MachineFqdn string

Specifies the hybrid machine FQDN.

OsName string

The Operating System running on the hybrid machine.

OsSku string

Specifies the Operating System product SKU.

OsVersion string

The version of Operating System running on the hybrid machine.

ProvisioningState string

The provisioning state, which only appears in the response.

Status string

The status of the hybrid machine agent.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

VmUuid string

Specifies the Arc Machine's unique SMBIOS ID

OsProfile MachinePropertiesResponseOsProfile

Specifies the operating system settings for the hybrid machine.

adFqdn String

Specifies the AD fully qualified display name.

agentVersion String

The hybrid machine agent full version.

displayName String

Specifies the hybrid machine display name.

dnsFqdn String

Specifies the DNS fully qualified display name.

domainName String

Specifies the Windows domain name.

errorDetails List<ErrorDetailResponse>

Details about the error state.

extensions List<MachineExtensionInstanceViewResponse>

Machine Extensions information

id String

The provider-assigned unique ID for this managed resource.

lastStatusChange String

The time of the last status change.

machineFqdn String

Specifies the hybrid machine FQDN.

osName String

The Operating System running on the hybrid machine.

osSku String

Specifies the Operating System product SKU.

osVersion String

The version of Operating System running on the hybrid machine.

provisioningState String

The provisioning state, which only appears in the response.

status String

The status of the hybrid machine agent.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

vmUuid String

Specifies the Arc Machine's unique SMBIOS ID

osProfile MachinePropertiesResponseOsProfile

Specifies the operating system settings for the hybrid machine.

adFqdn string

Specifies the AD fully qualified display name.

agentVersion string

The hybrid machine agent full version.

displayName string

Specifies the hybrid machine display name.

dnsFqdn string

Specifies the DNS fully qualified display name.

domainName string

Specifies the Windows domain name.

errorDetails ErrorDetailResponse[]

Details about the error state.

extensions MachineExtensionInstanceViewResponse[]

Machine Extensions information

id string

The provider-assigned unique ID for this managed resource.

lastStatusChange string

The time of the last status change.

machineFqdn string

Specifies the hybrid machine FQDN.

osName string

The Operating System running on the hybrid machine.

osSku string

Specifies the Operating System product SKU.

osVersion string

The version of Operating System running on the hybrid machine.

provisioningState string

The provisioning state, which only appears in the response.

status string

The status of the hybrid machine agent.

type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

vmUuid string

Specifies the Arc Machine's unique SMBIOS ID

osProfile MachinePropertiesResponseOsProfile

Specifies the operating system settings for the hybrid machine.

ad_fqdn str

Specifies the AD fully qualified display name.

agent_version str

The hybrid machine agent full version.

display_name str

Specifies the hybrid machine display name.

dns_fqdn str

Specifies the DNS fully qualified display name.

domain_name str

Specifies the Windows domain name.

error_details Sequence[ErrorDetailResponse]

Details about the error state.

extensions Sequence[MachineExtensionInstanceViewResponse]

Machine Extensions information

id str

The provider-assigned unique ID for this managed resource.

last_status_change str

The time of the last status change.

machine_fqdn str

Specifies the hybrid machine FQDN.

os_name str

The Operating System running on the hybrid machine.

os_sku str

Specifies the Operating System product SKU.

os_version str

The version of Operating System running on the hybrid machine.

provisioning_state str

The provisioning state, which only appears in the response.

status str

The status of the hybrid machine agent.

type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

vm_uuid str

Specifies the Arc Machine's unique SMBIOS ID

os_profile MachinePropertiesResponseOsProfile

Specifies the operating system settings for the hybrid machine.

adFqdn String

Specifies the AD fully qualified display name.

agentVersion String

The hybrid machine agent full version.

displayName String

Specifies the hybrid machine display name.

dnsFqdn String

Specifies the DNS fully qualified display name.

domainName String

Specifies the Windows domain name.

errorDetails List<Property Map>

Details about the error state.

extensions List<Property Map>

Machine Extensions information

id String

The provider-assigned unique ID for this managed resource.

lastStatusChange String

The time of the last status change.

machineFqdn String

Specifies the hybrid machine FQDN.

osName String

The Operating System running on the hybrid machine.

osSku String

Specifies the Operating System product SKU.

osVersion String

The version of Operating System running on the hybrid machine.

provisioningState String

The provisioning state, which only appears in the response.

status String

The status of the hybrid machine agent.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

vmUuid String

Specifies the Arc Machine's unique SMBIOS ID

osProfile Property Map

Specifies the operating system settings for the hybrid machine.

Supporting Types

ErrorDetailResponse

Code string

The error's code.

Message string

A human readable error message.

Details List<Pulumi.AzureNative.HybridCompute.Inputs.ErrorDetailResponse>

Additional error details.

Target string

Indicates which property in the request is responsible for the error.

Code string

The error's code.

Message string

A human readable error message.

Details []ErrorDetailResponse

Additional error details.

Target string

Indicates which property in the request is responsible for the error.

code String

The error's code.

message String

A human readable error message.

details List<ErrorDetailResponse>

Additional error details.

target String

Indicates which property in the request is responsible for the error.

code string

The error's code.

message string

A human readable error message.

details ErrorDetailResponse[]

Additional error details.

target string

Indicates which property in the request is responsible for the error.

code str

The error's code.

message str

A human readable error message.

details Sequence[ErrorDetailResponse]

Additional error details.

target str

Indicates which property in the request is responsible for the error.

code String

The error's code.

message String

A human readable error message.

details List<Property Map>

Additional error details.

target String

Indicates which property in the request is responsible for the error.

LocationData

Name string

A canonical name for the geographic or physical location.

City string

The city or locality where the resource is located.

CountryOrRegion string

The country or region where the resource is located

District string

The district, state, or province where the resource is located.

Name string

A canonical name for the geographic or physical location.

City string

The city or locality where the resource is located.

CountryOrRegion string

The country or region where the resource is located

District string

The district, state, or province where the resource is located.

name String

A canonical name for the geographic or physical location.

city String

The city or locality where the resource is located.

countryOrRegion String

The country or region where the resource is located

district String

The district, state, or province where the resource is located.

name string

A canonical name for the geographic or physical location.

city string

The city or locality where the resource is located.

countryOrRegion string

The country or region where the resource is located

district string

The district, state, or province where the resource is located.

name str

A canonical name for the geographic or physical location.

city str

The city or locality where the resource is located.

country_or_region str

The country or region where the resource is located

district str

The district, state, or province where the resource is located.

name String

A canonical name for the geographic or physical location.

city String

The city or locality where the resource is located.

countryOrRegion String

The country or region where the resource is located

district String

The district, state, or province where the resource is located.

LocationDataResponse

Name string

A canonical name for the geographic or physical location.

City string

The city or locality where the resource is located.

CountryOrRegion string

The country or region where the resource is located

District string

The district, state, or province where the resource is located.

Name string

A canonical name for the geographic or physical location.

City string

The city or locality where the resource is located.

CountryOrRegion string

The country or region where the resource is located

District string

The district, state, or province where the resource is located.

name String

A canonical name for the geographic or physical location.

city String

The city or locality where the resource is located.

countryOrRegion String

The country or region where the resource is located

district String

The district, state, or province where the resource is located.

name string

A canonical name for the geographic or physical location.

city string

The city or locality where the resource is located.

countryOrRegion string

The country or region where the resource is located

district string

The district, state, or province where the resource is located.

name str

A canonical name for the geographic or physical location.

city str

The city or locality where the resource is located.

country_or_region str

The country or region where the resource is located

district str

The district, state, or province where the resource is located.

name String

A canonical name for the geographic or physical location.

city String

The city or locality where the resource is located.

countryOrRegion String

The country or region where the resource is located

district String

The district, state, or province where the resource is located.

MachineExtensionInstanceViewResponse

Name string

The machine extension name.

Type string

Specifies the type of the extension; an example is "CustomScriptExtension".

TypeHandlerVersion string

Specifies the version of the script handler.

Status Pulumi.AzureNative.HybridCompute.Inputs.MachineExtensionInstanceViewResponseStatus

Instance view status.

Name string

The machine extension name.

Type string

Specifies the type of the extension; an example is "CustomScriptExtension".

TypeHandlerVersion string

Specifies the version of the script handler.

Status MachineExtensionInstanceViewResponseStatus

Instance view status.

name String

The machine extension name.

type String

Specifies the type of the extension; an example is "CustomScriptExtension".

typeHandlerVersion String

Specifies the version of the script handler.

status MachineExtensionInstanceViewResponseStatus

Instance view status.

name string

The machine extension name.

type string

Specifies the type of the extension; an example is "CustomScriptExtension".

typeHandlerVersion string

Specifies the version of the script handler.

status MachineExtensionInstanceViewResponseStatus

Instance view status.

name str

The machine extension name.

type str

Specifies the type of the extension; an example is "CustomScriptExtension".

type_handler_version str

Specifies the version of the script handler.

status MachineExtensionInstanceViewResponseStatus

Instance view status.

name String

The machine extension name.

type String

Specifies the type of the extension; an example is "CustomScriptExtension".

typeHandlerVersion String

Specifies the version of the script handler.

status Property Map

Instance view status.

MachineExtensionInstanceViewResponseStatus

Code string

The status code.

DisplayStatus string

The short localizable label for the status.

Level string

The level code.

Message string

The detailed status message, including for alerts and error messages.

Time string

The time of the status.

Code string

The status code.

DisplayStatus string

The short localizable label for the status.

Level string

The level code.

Message string

The detailed status message, including for alerts and error messages.

Time string

The time of the status.

code String

The status code.

displayStatus String

The short localizable label for the status.

level String

The level code.

message String

The detailed status message, including for alerts and error messages.

time String

The time of the status.

code string

The status code.

displayStatus string

The short localizable label for the status.

level string

The level code.

message string

The detailed status message, including for alerts and error messages.

time string

The time of the status.

code str

The status code.

display_status str

The short localizable label for the status.

level str

The level code.

message str

The detailed status message, including for alerts and error messages.

time str

The time of the status.

code String

The status code.

displayStatus String

The short localizable label for the status.

level String

The level code.

message String

The detailed status message, including for alerts and error messages.

time String

The time of the status.

MachineIdentity

Type string

The identity type.

Type string

The identity type.

type String

The identity type.

type string

The identity type.

type str

The identity type.

type String

The identity type.

MachinePropertiesResponseOsProfile

ComputerName string

Specifies the host OS name of the hybrid machine.

ComputerName string

Specifies the host OS name of the hybrid machine.

computerName String

Specifies the host OS name of the hybrid machine.

computerName string

Specifies the host OS name of the hybrid machine.

computer_name str

Specifies the host OS name of the hybrid machine.

computerName String

Specifies the host OS name of the hybrid machine.

MachineResponseIdentity

PrincipalId string

The identity's principal id.

TenantId string

The identity's tenant id.

Type string

The identity type.

PrincipalId string

The identity's principal id.

TenantId string

The identity's tenant id.

Type string

The identity type.

principalId String

The identity's principal id.

tenantId String

The identity's tenant id.

type String

The identity type.

principalId string

The identity's principal id.

tenantId string

The identity's tenant id.

type string

The identity type.

principal_id str

The identity's principal id.

tenant_id str

The identity's tenant id.

type str

The identity type.

principalId String

The identity's principal id.

tenantId String

The identity's tenant id.

type String

The identity type.

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 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0