Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
- Latest
- 2026-09-01
- 2026-07-15
- 2026-06-16-preview
- 2026-06-04-preview
- 2026-02-12-preview
- 2025-09-16-preview
- 2025-08-21-preview
- 2025-06-01
- 2025-02-19-preview
- 2025-01-13
- 2024-11-10-preview
- 2024-09-10-preview
- 2024-07-31-preview
- 2024-07-10
- 2024-05-20-preview
- 2024-03-31-preview
- 2023-10-03-preview
- 2023-06-20-preview
- 2023-03-15-preview
- 2022-12-27
- 2022-12-27-preview
- 2022-11-10
- 2022-08-11-preview
- 2022-05-10-preview
- 2022-03-10
- 2021-12-10-preview
- 2021-06-10-preview
- 2021-05-20
- 2021-05-17-preview
- 2021-04-22-preview
- 2021-03-25-preview
- 2021-01-28-preview
- 2020-08-15-preview
- 2020-08-02
- 2020-07-30-preview
- 2019-12-12
- 2019-08-02-preview
- 2019-03-18-preview
Bicep resource definition
The machines resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Usage Examples
Bicep Samples
A basic example of deploying Hybrid Compute Machine.
param resourceName string = 'acctest0001'
param location string = 'westus'
resource machine 'Microsoft.HybridCompute/machines@2024-07-10' = {
name: '${resourceName}hcm'
location: location
kind: 'SCVMM'
}
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+ |
Resource format
To create a Microsoft.HybridCompute/machines resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.HybridCompute/machines@2020-08-02' = {
identity: {
type: 'string'
}
location: 'string'
name: 'string'
properties: {
clientPublicKey: 'string'
locationData: {
city: 'string'
countryOrRegion: 'string'
district: 'string'
name: 'string'
}
osProfile: {}
vmId: 'string'
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.HybridCompute/machines
| Name | Description | Value |
|---|---|---|
| identity | MachineIdentity | |
| location | The geo-location where the resource lives | 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 |
LocationData
| Name | Description | Value |
|---|---|---|
| city | The city or locality where the resource is located. | string |
| countryOrRegion | The country or region where the resource is located | string |
| district | The district, state, or province where the resource is located. | string |
| name | A canonical name for the geographic or physical location. | string Constraints: Max length = 256 (required) |
MachineIdentity
| 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 |
| locationData | Metadata pertaining to the geographic location of the resource. | LocationData |
| osProfile | Specifies the operating system settings for the hybrid machine. | MachinePropertiesOsProfile |
| vmId | Specifies the hybrid machine unique ID. | string Constraints: Min length = 36 Max length = 36 Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
MachinePropertiesOsProfile
| Name | Description | Value |
|---|
TrackedResourceTags
| Name | Description | Value |
|---|
ARM template resource definition
The machines resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands For a list of changed properties in each API version, see change log.
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 |
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+ |
Resource format
To create a Microsoft.HybridCompute/machines resource, add the following JSON to your template.
{
"type": "Microsoft.HybridCompute/machines",
"apiVersion": "2020-08-02",
"name": "string",
"identity": {
"type": "string"
},
"location": "string",
"properties": {
"clientPublicKey": "string",
"locationData": {
"city": "string",
"countryOrRegion": "string",
"district": "string",
"name": "string"
},
"osProfile": {
},
"vmId": "string"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.HybridCompute/machines
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2020-08-02' |
| identity | MachineIdentity | |
| location | The geo-location where the resource lives | 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' |
LocationData
| Name | Description | Value |
|---|---|---|
| city | The city or locality where the resource is located. | string |
| countryOrRegion | The country or region where the resource is located | string |
| district | The district, state, or province where the resource is located. | string |
| name | A canonical name for the geographic or physical location. | string Constraints: Max length = 256 (required) |
MachineIdentity
| 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 |
| locationData | Metadata pertaining to the geographic location of the resource. | LocationData |
| osProfile | Specifies the operating system settings for the hybrid machine. | MachinePropertiesOsProfile |
| vmId | Specifies the hybrid machine unique ID. | string Constraints: Min length = 36 Max length = 36 Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
MachinePropertiesOsProfile
| Name | Description | Value |
|---|
TrackedResourceTags
| Name | Description | Value |
|---|
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.
Usage Examples
Terraform Samples
A basic example of deploying Hybrid Compute Machine.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westus"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "machine" {
type = "Microsoft.HybridCompute/machines@2024-07-10"
parent_id = azapi_resource.resourceGroup.id
name = "${var.resource_name}hcm"
location = var.location
body = {
kind = "SCVMM"
}
}
Resource format
To create a Microsoft.HybridCompute/machines resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.HybridCompute/machines@2020-08-02"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
clientPublicKey = "string"
locationData = {
city = "string"
countryOrRegion = "string"
district = "string"
name = "string"
}
osProfile = {
}
vmId = "string"
}
}
}
Property Values
Microsoft.HybridCompute/machines
| Name | Description | Value |
|---|---|---|
| identity | MachineIdentity | |
| location | The geo-location where the resource lives | 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@2020-08-02" |
LocationData
| Name | Description | Value |
|---|---|---|
| city | The city or locality where the resource is located. | string |
| countryOrRegion | The country or region where the resource is located | string |
| district | The district, state, or province where the resource is located. | string |
| name | A canonical name for the geographic or physical location. | string Constraints: Max length = 256 (required) |
MachineIdentity
| 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 |
| locationData | Metadata pertaining to the geographic location of the resource. | LocationData |
| osProfile | Specifies the operating system settings for the hybrid machine. | MachinePropertiesOsProfile |
| vmId | Specifies the hybrid machine unique ID. | string Constraints: Min length = 36 Max length = 36 Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
MachinePropertiesOsProfile
| Name | Description | Value |
|---|
TrackedResourceTags
| Name | Description | Value |
|---|