Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idazure.automation.certificates

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
automationAccountNametextfield from the properties object
certificateNametextfield from the properties object
creation_timetextfield from the properties object
expiry_timetextfield from the properties object
is_exportabletextfield from the properties object
last_modified_timetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
thumbprinttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, certificateName, resourceGroupName, subscriptionIdRetrieve the certificate identified by certificate name.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of certificates.
create_or_updateINSERTautomationAccountName, certificateName, resourceGroupName, subscriptionId, data__name, data__propertiesCreate a certificate.
deleteDELETEautomationAccountName, certificateName, resourceGroupName, subscriptionIdDelete the certificate.
updateUPDATEautomationAccountName, certificateName, resourceGroupName, subscriptionIdUpdate a certificate.

SELECT examples

Retrieve a list of certificates.

SELECT
description,
automationAccountName,
certificateName,
creation_time,
expiry_time,
is_exportable,
last_modified_time,
resourceGroupName,
subscriptionId,
thumbprint
FROM azure.automation.vw_certificates
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.automation.certificates (
automationAccountName,
certificateName,
resourceGroupName,
subscriptionId,
data__name,
data__properties,
name,
properties
)
SELECT
'{{ automationAccountName }}',
'{{ certificateName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__name }}',
'{{ data__properties }}',
'{{ name }}',
'{{ properties }}'
;

UPDATE example

Updates a certificates resource.

/*+ update */
UPDATE azure.automation.certificates
SET
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
automationAccountName = '{{ automationAccountName }}'
AND certificateName = '{{ certificateName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified certificates resource.

/*+ delete */
DELETE FROM azure.automation.certificates
WHERE automationAccountName = '{{ automationAccountName }}'
AND certificateName = '{{ certificateName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';