Skip to main content

clouds

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

Overview

Nameclouds
TypeResource
Idazure.system_center_vm_manager.clouds

Fields

NameDatatypeDescription
cloudResourceNametextfield from the properties object
cloud_capacitytextfield from the properties object
cloud_nametextfield from the properties object
extended_locationtextfield from the properties object
inventory_item_idtextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
storage_qo_s_policiestextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
uuidtextfield from the properties object
vmm_server_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloudResourceName, resourceGroupName, subscriptionIdImplements Cloud GET method.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList of Clouds in a resource group.
list_by_subscriptionSELECTsubscriptionIdList of Clouds in a subscription.
create_or_updateINSERTcloudResourceName, resourceGroupName, subscriptionId, data__extendedLocationOnboards the ScVmm fabric cloud as an Azure cloud resource.
deleteDELETEcloudResourceName, resourceGroupName, subscriptionIdDeregisters the ScVmm fabric cloud from Azure.
updateUPDATEcloudResourceName, resourceGroupName, subscriptionIdUpdates the Clouds resource.

SELECT examples

List of Clouds in a subscription.

SELECT
cloudResourceName,
cloud_capacity,
cloud_name,
extended_location,
inventory_item_id,
location,
provisioning_state,
resourceGroupName,
storage_qo_s_policies,
subscriptionId,
tags,
uuid,
vmm_server_id
FROM azure.system_center_vm_manager.vw_clouds
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a clouds resource.

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

DELETE example

Deletes the specified clouds resource.

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