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:

NameDatatypeDescription
detailsobjectFault simulation details.
endTimestring (date-time)The end time of the fault simulation.
simulationIdstringunique identifier for the fault simulation.
startTimestring (date-time)The start time of the fault simulation.
statusstringFault simulation status. Known values are: "Starting", "Active", "Stopping", "Done", "StartFailed", and "StopFailed". (Starting, Active, Stopping, Done, StartFailed, StopFailed)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_fault_simulationselectresource_group_name, cluster_name, subscription_idGets a fault simulation by the simulationId.
getselectresource_group_name, cluster_name, subscription_idGet a Service Fabric managed cluster resource created or in the process of being created in the specified resource group.
list_by_resource_groupselectresource_group_name, subscription_idGets all Service Fabric cluster resources created or in the process of being created in the resource group.
list_by_subscriptionselectsubscription_idGets all Service Fabric cluster resources created or in the process of being created in the subscription.
create_or_updateinsertresource_group_name, cluster_name, subscription_id, location, skuCreate or update a Service Fabric managed cluster resource with the specified name.
updateupdateresource_group_name, cluster_name, subscription_idUpdate the tags of of a Service Fabric managed cluster resource with the specified name.
create_or_updatereplaceresource_group_name, cluster_name, subscription_id, location, skuCreate or update a Service Fabric managed cluster resource with the specified name.
deletedeleteresource_group_name, cluster_name, subscription_idDelete a Service Fabric managed cluster resource with the specified name.
list_fault_simulationexecresource_group_name, cluster_name, subscription_idGets the list of recent fault simulations for the cluster.
start_fault_simulationexecresource_group_name, cluster_name, subscription_id, parametersStarts a fault simulation on the cluster.
stop_fault_simulationexecresource_group_name, cluster_name, subscription_id, simulationIdStops a fault simulation on the cluster.

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
cluster_namestringThe name of the cluster resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets a fault simulation by the simulationId.

SELECT
details,
endTime,
simulationId,
startTime,
status
FROM azure.service_fabric_managed_clusters.managed_clusters
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure.service_fabric_managed_clusters.managed_clusters (
tags,
location,
properties,
sku,
resource_group_name,
cluster_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ sku }}' /* required */,
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ subscription_id }}'
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
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

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

REPLACE azure.service_fabric_managed_clusters.managed_clusters
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND sku = '{{ sku }}' --required
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 resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the list of recent fault simulations for the cluster.

EXEC azure.service_fabric_managed_clusters.managed_clusters.list_fault_simulation 
@resource_group_name='{{ resource_group_name }}' --required,
@cluster_name='{{ cluster_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;