Share via


Microsoft.HybridCompute machines 2019-03-18-preview

Bicep resource definition

The machines resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.HybridCompute/machines resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.HybridCompute/machines@2019-03-18-preview' = {
  identity: {
    type: 'string'
  }
  location: 'string'
  name: 'string'
  properties: {
    clientPublicKey: 'string'
    physicalLocation: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.HybridCompute/machines

Name Description Value
identity Hybrid Compute Machine Managed Identity Identity
location Resource location string (required)
name The resource name string (required)
properties Hybrid Compute Machine properties MachineProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

Identity

Name Description Value
type The identity type. string

MachineProperties

Name Description Value
clientPublicKey Public Key that the client provides to be used during initial resource onboarding string
physicalLocation Resource's Physical Location string

ResourceTags

Name Description Value

Usage Examples

Azure Verified Modules

The following Azure Verified Modules can be used to deploy this resource type.

Module Description
Hybrid Compute Machine AVM Resource Module for Hybrid Compute Machine

Azure Quickstart Samples

The following Azure Quickstart templates contain Bicep samples for deploying this resource type.

Bicep File Description
Create a Linux VM from a gallery image on Azure Stack HCI This template creates a simple Linux VM from the referenced custom image on Azure Stack HCI version 23H2+
Create a VM from the referenced image on Azure Stack HCI This template creates a simple Windows VM from the referenced Azure Marketplace image on Azure Stack HCI version 23H2+

ARM template resource definition

The machines resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.HybridCompute/machines resource, add the following JSON to your template.

{
  "type": "Microsoft.HybridCompute/machines",
  "apiVersion": "2019-03-18-preview",
  "name": "string",
  "identity": {
    "type": "string"
  },
  "location": "string",
  "properties": {
    "clientPublicKey": "string",
    "physicalLocation": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.HybridCompute/machines

Name Description Value
apiVersion The api version '2019-03-18-preview'
identity Hybrid Compute Machine Managed Identity Identity
location Resource location string (required)
name The resource name string (required)
properties Hybrid Compute Machine properties MachineProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.HybridCompute/machines'

Identity

Name Description Value
type The identity type. string

MachineProperties

Name Description Value
clientPublicKey Public Key that the client provides to be used during initial resource onboarding string
physicalLocation Resource's Physical Location string

ResourceTags

Name Description Value

Usage Examples

Azure Quickstart Templates

The following Azure Quickstart templates deploy this resource type.

Template Description
Create a Linux VM from a gallery image on Azure Stack HCI

Deploy to Azure
This template creates a simple Linux VM from the referenced custom image on Azure Stack HCI version 23H2+
Create a VM from the referenced image on Azure Stack HCI

Deploy to Azure
This template creates a simple Windows VM from the referenced Azure Marketplace image on Azure Stack HCI version 23H2+

Terraform (AzAPI provider) resource definition

The machines resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.HybridCompute/machines resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.HybridCompute/machines@2019-03-18-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      clientPublicKey = "string"
      physicalLocation = "string"
    }
  }
}

Property Values

Microsoft.HybridCompute/machines

Name Description Value
identity Hybrid Compute Machine Managed Identity Identity
location Resource location string (required)
name The resource name string (required)
properties Hybrid Compute Machine properties MachineProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.HybridCompute/machines@2019-03-18-preview"

Identity

Name Description Value
type The identity type. string

MachineProperties

Name Description Value
clientPublicKey Public Key that the client provides to be used during initial resource onboarding string
physicalLocation Resource's Physical Location string

ResourceTags

Name Description Value