Skip to main content

replicas

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

Overview

Namereplicas
TypeResource
Idazure.app_configuration.replicas

Fields

NameDatatypeDescription
idtextThe resource ID.
nametextThe name of the replica.
configStoreNametextfield from the properties object
endpointtextfield from the properties object
locationtextThe location of the replica.
provisioning_statetextfield from the properties object
replicaNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigStoreName, replicaName, resourceGroupName, subscriptionIdGets the properties of the specified replica.
list_by_configuration_storeSELECTconfigStoreName, resourceGroupName, subscriptionIdLists the replicas for a given configuration store.
createINSERTconfigStoreName, replicaName, resourceGroupName, subscriptionIdCreates a replica with the specified parameters.
deleteDELETEconfigStoreName, replicaName, resourceGroupName, subscriptionIdDeletes a replica.

SELECT examples

Lists the replicas for a given configuration store.

SELECT
id,
name,
configStoreName,
endpoint,
location,
provisioning_state,
replicaName,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.app_configuration.vw_replicas
WHERE configStoreName = '{{ configStoreName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_configuration.replicas (
configStoreName,
replicaName,
resourceGroupName,
subscriptionId,
location
)
SELECT
'{{ configStoreName }}',
'{{ replicaName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}'
;

DELETE example

Deletes the specified replicas resource.

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