Skip to main content

replicas

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

Overview​

Namereplicas
TypeResource
Idazure.app_configuration.replicas

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
endpointstringThe URI of the replica where the replica API will be available.
locationstringThe location of the replica.
provisioningStatestringThe provisioning state of the replica. Known values are: "Creating", "Succeeded", "Deleting", "Failed", and "Canceled". (Creating, Succeeded, Deleting, Failed, Canceled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, config_store_name, replica_name, subscription_idGets the properties of the specified replica.
list_by_configuration_storeselectresource_group_name, config_store_name, subscription_id$skipTokenLists the replicas for a given configuration store.
createinsertresource_group_name, config_store_name, replica_name, subscription_idCreates a replica with the specified parameters.
deletedeleteresource_group_name, config_store_name, replica_name, subscription_idDeletes a replica.

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
config_store_namestringThe name of the configuration store. Required.
replica_namestringThe name of the replica. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$skipTokenstringA skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None.

SELECT examples​

Gets the properties of the specified replica.

SELECT
id,
name,
endpoint,
location,
provisioningState,
systemData,
type
FROM azure.app_configuration.replicas
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND config_store_name = '{{ config_store_name }}' -- required
AND replica_name = '{{ replica_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples​

Creates a replica with the specified parameters.

INSERT INTO azure.app_configuration.replicas (
properties,
location,
resource_group_name,
config_store_name,
replica_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ resource_group_name }}',
'{{ config_store_name }}',
'{{ replica_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

DELETE examples​

Deletes a replica.

DELETE FROM azure.app_configuration.replicas
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND config_store_name = '{{ config_store_name }}' --required
AND replica_name = '{{ replica_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;