Skip to main content

virtual_clusters

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

Overview

Namevirtual_clusters
TypeResource
Idazure.sql.virtual_clusters

Fields

NameDatatypeDescription
child_resourcestextfield from the properties object
locationtextResource location.
resourceGroupNametextfield from the properties object
subnet_idtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
versiontextfield from the properties object
virtualClusterNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, virtualClusterNameGets a virtual cluster.
listSELECTsubscriptionIdGets a list of all virtualClusters in the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of virtual clusters in a resource group.
deleteDELETEresourceGroupName, subscriptionId, virtualClusterNameDeletes a virtual cluster.
updateUPDATEresourceGroupName, subscriptionId, virtualClusterNameUpdates an existing virtual cluster.

SELECT examples

Gets a list of all virtualClusters in the subscription.

SELECT
child_resources,
location,
resourceGroupName,
subnet_id,
subscriptionId,
tags,
version,
virtualClusterName
FROM azure.sql.vw_virtual_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a virtual_clusters resource.

/*+ update */
UPDATE azure.sql.virtual_clusters
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualClusterName = '{{ virtualClusterName }}';

DELETE example

Deletes the specified virtual_clusters resource.

/*+ delete */
DELETE FROM azure.sql.virtual_clusters
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualClusterName = '{{ virtualClusterName }}';