Skip to main content

product_secrets

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

Overview

Nameproduct_secrets
TypeResource
Idazure_stack.deployment_admin.product_secrets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the resource.
namestringName of the resource.
locationstringLocation of the resource.
propertiesobjectProperties of a product secret.
typestringType of Resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, packageId, secretNameReturns the specific product secret.
listselectsubscriptionId, packageIdReturns an array of product secrets.
setexecsubscriptionId, packageId, secretNameImports a product secret.
validateexecsubscriptionId, packageId, secretNameValidates a product secret.

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
packageIdstringThe package identifier.
secretNamestringThe secret name.
subscriptionIdstringSubscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Returns the specific product secret.

SELECT
id,
name,
location,
properties,
type
FROM azure_stack.deployment_admin.product_secrets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND packageId = '{{ packageId }}' -- required
AND secretName = '{{ secretName }}' -- required
;

Lifecycle Methods

Imports a product secret.

EXEC azure_stack.deployment_admin.product_secrets.set 
@subscriptionId='{{ subscriptionId }}' --required,
@packageId='{{ packageId }}' --required,
@secretName='{{ secretName }}' --required
@@json=
'{
"value": "{{ value }}",
"data": "{{ data }}",
"password": "{{ password }}",
"key": "{{ key }}"
}'
;