Skip to main content

managed_clusters

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

Overview

Namemanaged_clusters
TypeResource
Idazure.service_fabric_managed_clusters.managed_clusters

Fields

The following fields are returned by SELECT queries:

The operation completed successfully.

NameDatatypeDescription
idstringAzure resource identifier.
namestringAzure resource name.
etagstringAzure resource etag.
locationstringAzure resource location.
propertiesobjectThe managed cluster resource properties
skuobjectThe sku of the managed cluster
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectAzure resource tags.
typestringAzure resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, clusterName, subscriptionIdapi-versionGet a Service Fabric managed cluster resource created or in the process of being created in the specified resource group.
list_by_resource_groupselectresourceGroupName, subscriptionIdapi-versionGets all Service Fabric cluster resources created or in the process of being created in the resource group.
list_by_subscriptionselectsubscriptionIdapi-versionGets all Service Fabric cluster resources created or in the process of being created in the subscription.
create_or_updateinsertresourceGroupName, clusterName, subscriptionId, data__skuapi-versionCreate or update a Service Fabric managed cluster resource with the specified name.
updateupdateresourceGroupName, clusterName, subscriptionIdapi-versionUpdate the tags of of a Service Fabric managed cluster resource with the specified name.
deletedeleteresourceGroupName, clusterName, subscriptionIdapi-versionDelete a Service Fabric managed cluster resource with the specified name.
apply_maintenance_windowexecresourceGroupName, clusterName, subscriptionIdapi-versionAction to Apply Maintenance window on the Service Fabric Managed Clusters, right now. Any pending update will be applied.

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
clusterNamestringThe name of the cluster resource.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe customer subscription identifier.
api-versionstringThe version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2024-06-01-preview" for this specification.

SELECT examples

Get a Service Fabric managed cluster resource created or in the process of being created in the specified resource group.

SELECT
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.service_fabric_managed_clusters.managed_clusters
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create or update a Service Fabric managed cluster resource with the specified name.

INSERT INTO azure.service_fabric_managed_clusters.managed_clusters (
data__location,
data__tags,
data__properties,
data__sku,
resourceGroupName,
clusterName,
subscriptionId,
api-version
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ sku }}' /* required */,
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ subscriptionId }}',
'{{ api-version }}'
RETURNING
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update the tags of of a Service Fabric managed cluster resource with the specified name.

UPDATE azure.service_fabric_managed_clusters.managed_clusters
SET
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND api-version = '{{ api-version}}'
RETURNING
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Delete a Service Fabric managed cluster resource with the specified name.

DELETE FROM azure.service_fabric_managed_clusters.managed_clusters
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Action to Apply Maintenance window on the Service Fabric Managed Clusters, right now. Any pending update will be applied.

EXEC azure.service_fabric_managed_clusters.managed_clusters.apply_maintenance_window 
@resourceGroupName='{{ resourceGroupName }}' --required,
@clusterName='{{ clusterName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@api-version='{{ api-version }}'
;