Skip to main content

availability_sets

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

Overview

Nameavailability_sets
TypeResource
Idazure.system_center_vm_manager.availability_sets

Fields

NameDatatypeDescription
availabilitySetResourceNametextfield from the properties object
availability_set_nametextfield from the properties object
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
vmm_server_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTavailabilitySetResourceName, resourceGroupName, subscriptionIdImplements AvailabilitySet GET method.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList of AvailabilitySets in a resource group.
list_by_subscriptionSELECTsubscriptionIdList of AvailabilitySets in a subscription.
create_or_updateINSERTavailabilitySetResourceName, resourceGroupName, subscriptionId, data__extendedLocationOnboards the ScVmm availability set as an Azure resource.
deleteDELETEavailabilitySetResourceName, resourceGroupName, subscriptionIdDeregisters the ScVmm availability set from Azure.
updateUPDATEavailabilitySetResourceName, resourceGroupName, subscriptionIdUpdates the AvailabilitySets resource.

SELECT examples

List of AvailabilitySets in a subscription.

SELECT
availabilitySetResourceName,
availability_set_name,
extended_location,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
vmm_server_id
FROM azure.system_center_vm_manager.vw_availability_sets
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.system_center_vm_manager.availability_sets (
availabilitySetResourceName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ availabilitySetResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a availability_sets resource.

/*+ update */
UPDATE azure.system_center_vm_manager.availability_sets
SET
tags = '{{ tags }}'
WHERE
availabilitySetResourceName = '{{ availabilitySetResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified availability_sets resource.

/*+ delete */
DELETE FROM azure.system_center_vm_manager.availability_sets
WHERE availabilitySetResourceName = '{{ availabilitySetResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';