Skip to main content

proximity_placement_groups

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

Overview

Nameproximity_placement_groups
TypeResource
Idazure.compute.proximity_placement_groups

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
availability_setstextfield from the properties object
colocation_statustextfield from the properties object
intenttextfield from the properties object
locationtextResource location
proximityPlacementGroupNametextfield from the properties object
proximity_placement_group_typetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
typetextResource type
virtual_machine_scale_setstextfield from the properties object
virtual_machinestextfield from the properties object
zonestextSpecifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the proximity placement group can be created.

Methods

NameAccessible byRequired ParamsDescription
getSELECTproximityPlacementGroupName, resourceGroupName, subscriptionIdRetrieves information about a proximity placement group .
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all proximity placement groups in a resource group.
list_by_subscriptionSELECTsubscriptionIdLists all proximity placement groups in a subscription.
create_or_updateINSERTproximityPlacementGroupName, resourceGroupName, subscriptionIdCreate or update a proximity placement group.
deleteDELETEproximityPlacementGroupName, resourceGroupName, subscriptionIdDelete a proximity placement group.
updateUPDATEproximityPlacementGroupName, resourceGroupName, subscriptionIdUpdate a proximity placement group.

SELECT examples

Lists all proximity placement groups in a subscription.

SELECT
id,
name,
availability_sets,
colocation_status,
intent,
location,
proximityPlacementGroupName,
proximity_placement_group_type,
resourceGroupName,
subscriptionId,
tags,
type,
virtual_machine_scale_sets,
virtual_machines,
zones
FROM azure.compute.vw_proximity_placement_groups
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new proximity_placement_groups resource.

/*+ create */
INSERT INTO azure.compute.proximity_placement_groups (
proximityPlacementGroupName,
resourceGroupName,
subscriptionId,
properties,
zones,
location,
tags
)
SELECT
'{{ proximityPlacementGroupName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ zones }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a proximity_placement_groups resource.

/*+ update */
UPDATE azure.compute.proximity_placement_groups
SET
tags = '{{ tags }}'
WHERE
proximityPlacementGroupName = '{{ proximityPlacementGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified proximity_placement_groups resource.

/*+ delete */
DELETE FROM azure.compute.proximity_placement_groups
WHERE proximityPlacementGroupName = '{{ proximityPlacementGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';