Skip to main content

key_values

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

Overview

Namekey_values
TypeResource
Idazure.app_configuration.key_values

Fields

NameDatatypeDescription
idtextThe resource ID.
nametextThe name of the resource.
configStoreNametextfield from the properties object
content_typetextfield from the properties object
e_tagtextfield from the properties object
keytextfield from the properties object
keyValueNametextfield from the properties object
labeltextfield from the properties object
last_modifiedtextfield from the properties object
lockedtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextfield from the properties object
typetextThe type of the resource.
valuetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigStoreName, keyValueName, resourceGroupName, subscriptionIdGets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
create_or_updateINSERTconfigStoreName, keyValueName, resourceGroupName, subscriptionIdCreates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
deleteDELETEconfigStoreName, keyValueName, resourceGroupName, subscriptionIdDeletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.

SELECT examples

Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.

SELECT
id,
name,
configStoreName,
content_type,
e_tag,
key,
keyValueName,
label,
last_modified,
locked,
resourceGroupName,
subscriptionId,
tags,
type,
value
FROM azure.app_configuration.vw_key_values
WHERE configStoreName = '{{ configStoreName }}'
AND keyValueName = '{{ keyValueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_configuration.key_values (
configStoreName,
keyValueName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ configStoreName }}',
'{{ keyValueName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified key_values resource.

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