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
idstringResource Id
namestringResource name
locationstringResource location
propertiesobjectDedicated Host Group Properties.
tagsobjectResource tags
typestringResource type
zonesarrayAvailability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, hostGroupName, subscriptionId$expandRetrieves information about a dedicated host group.
list_by_resource_groupselectresourceGroupName, subscriptionIdLists 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_subscriptionselectsubscriptionIdLists 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_updateinsertresourceGroupName, hostGroupName, subscriptionIdCreate 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)
updateupdateresourceGroupName, hostGroupName, subscriptionIdUpdate an dedicated host group.
deletedeleteresourceGroupName, hostGroupName, subscriptionIdDelete 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
hostGroupNamestringThe name of the dedicated host group.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$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.

SELECT examples

Retrieves information about a dedicated host group.

SELECT
id,
name,
location,
properties,
tags,
type,
zones
FROM azure.compute.dedicated_host_groups
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND hostGroupName = '{{ hostGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- 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 (
data__properties,
data__zones,
data__location,
data__tags,
resourceGroupName,
hostGroupName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ zones }}',
'{{ location }}',
'{{ tags }}',
'{{ resourceGroupName }}',
'{{ hostGroupName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
location,
properties,
tags,
type,
zones
;

UPDATE examples

Update an dedicated host group.

UPDATE azure.compute.dedicated_host_groups
SET
data__properties = '{{ properties }}',
data__zones = '{{ zones }}',
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND hostGroupName = '{{ hostGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type,
zones;

DELETE examples

Delete a dedicated host group.

DELETE FROM azure.compute.dedicated_host_groups
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND hostGroupName = '{{ hostGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;