Microsoft.Compute hostGroups/hosts

The hostGroups/hosts resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Compute/hostGroups/hosts resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Compute/hostGroups/hosts@2021-07-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  sku: {
    capacity: int
    name: 'string'
    tier: 'string'
  }
  parent: parentSymbolicName
  properties: {
    autoReplaceOnFailure: bool
    licenseType: 'string'
    platformFaultDomain: int
  }
}

Property values

hostGroups/hosts

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Compute/hostGroups/hosts'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2021-07-01'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
location Resource location string (required)
tags Resource tags Dictionary of tag names and values. See Tags in templates
sku Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. Sku (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
parentSymbolicName
properties Properties of the dedicated host. DedicatedHostProperties

DedicatedHostProperties

Name Description Value
autoReplaceOnFailure Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. bool
licenseType Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

Possible values are:

None

Windows_Server_Hybrid

Windows_Server_Perpetual

Default: None
'None'
'Windows_Server_Hybrid'
'Windows_Server_Perpetual'
platformFaultDomain Fault domain of the dedicated host within a dedicated host group. int

Sku

Name Description Value
capacity Specifies the number of virtual machines in the scale set. int
name The sku name. string
tier Specifies the tier of virtual machines in a scale set.

Possible Values:

Standard

Basic
string

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Azure Dedicated Hosts

Deploy to Azure
This will deploy an isolated environment using Azure Dedicated Hosts for you to provision VMs.