Skip to main content

dedicated_host_groups

Creates, updates, deletes, gets or lists a dedicated_host_groups resource.

Overview

Namededicated_host_groups
TypeResource
Idazure.compute.dedicated_host_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
additionalCapabilitiesobjectEnables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01.
hostsarrayA list of references to all dedicated hosts in the dedicated host group.
instanceViewobjectThe dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group.
locationstringThe geo-location where the resource lives. Required.
platformFaultDomainCountintegerNumber of fault domains that the host group can span. Required.
supportAutomaticPlacementbooleanSpecifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: 2020-06-01.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
zonesarrayThe availability zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, host_group_name, subscription_id$expandRetrieves information about a dedicated host group.
list_by_resource_groupselectresource_group_name, subscription_idLists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups.
list_by_subscriptionselectsubscription_idLists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.
create_or_updateinsertresource_group_name, host_group_name, subscription_id, locationCreate or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596 _).
updateupdateresource_group_name, host_group_name, subscription_idUpdate an dedicated host group.
create_or_updatereplaceresource_group_name, host_group_name, subscription_id, locationCreate or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596 _).
deletedeleteresource_group_name, host_group_name, subscription_idDelete a dedicated host group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
host_group_namestringThe name of the dedicated host group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringThe expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated hosts under the dedicated host group. 'UserData' is not supported for dedicated host group. Known values are: "instanceView", "userData", and "resiliencyView". Default value is None.

SELECT examples

Retrieves information about a dedicated host group.

SELECT
id,
name,
additionalCapabilities,
hosts,
instanceView,
location,
platformFaultDomainCount,
supportAutomaticPlacement,
systemData,
tags,
type,
zones
FROM azure.compute.dedicated_host_groups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND host_group_name = '{{ host_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596 _).

INSERT INTO azure.compute.dedicated_host_groups (
tags,
location,
properties,
zones,
resource_group_name,
host_group_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ zones }}',
'{{ resource_group_name }}',
'{{ host_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type,
zones
;

UPDATE examples

Update an dedicated host group.

UPDATE azure.compute.dedicated_host_groups
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND host_group_name = '{{ host_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type,
zones;

REPLACE examples

Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596 _).

REPLACE azure.compute.dedicated_host_groups
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND host_group_name = '{{ host_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type,
zones;

DELETE examples

Delete a dedicated host group.

DELETE FROM azure.compute.dedicated_host_groups
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND host_group_name = '{{ host_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;