Skip to main content

replicas

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

Overview

Namereplicas
TypeResource
Idazure.signalr.replicas

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
region_endpoint_enabledtextfield from the properties object
replicaNametextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
resource_stoppedtextfield from the properties object
skutextThe billing information of the resource.
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTreplicaName, resourceGroupName, resourceName, subscriptionIdGet the replica and its properties.
listSELECTresourceGroupName, resourceName, subscriptionIdList all replicas belong to this resource
create_or_updateINSERTreplicaName, resourceGroupName, resourceName, subscriptionIdCreate or update a replica.
deleteDELETEreplicaName, resourceGroupName, resourceName, subscriptionIdOperation to delete a replica.
updateUPDATEreplicaName, resourceGroupName, resourceName, subscriptionIdOperation to update an exiting replica.
restartEXECreplicaName, resourceGroupName, resourceName, subscriptionIdOperation to restart a replica.

SELECT examples

List all replicas belong to this resource

SELECT
location,
provisioning_state,
region_endpoint_enabled,
replicaName,
resourceGroupName,
resourceName,
resource_stopped,
sku,
subscriptionId,
tags
FROM azure.signalr.vw_replicas
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.signalr.replicas (
replicaName,
resourceGroupName,
resourceName,
subscriptionId,
tags,
location,
sku,
properties
)
SELECT
'{{ replicaName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ sku }}',
'{{ properties }}'
;

UPDATE example

Updates a replicas resource.

/*+ update */
UPDATE azure.signalr.replicas
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
replicaName = '{{ replicaName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified replicas resource.

/*+ delete */
DELETE FROM azure.signalr.replicas
WHERE replicaName = '{{ replicaName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';