Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idazure.batch.certificates

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
accountNametextfield from the properties object
certificateNametextfield from the properties object
delete_certificate_errortextfield from the properties object
etagtextThe ETag of the resource, used for concurrency statements.
formattextfield from the properties object
previous_provisioning_statetextfield from the properties object
previous_provisioning_state_transition_timetextfield from the properties object
provisioning_statetextfield from the properties object
provisioning_state_transition_timetextfield from the properties object
public_datatextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
thumbprinttextfield from the properties object
thumbprint_algorithmtextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, certificateName, resourceGroupName, subscriptionIdWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
list_by_batch_accountSELECTaccountName, resourceGroupName, subscriptionIdWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
createINSERTaccountName, certificateName, resourceGroupName, subscriptionIdWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
deleteDELETEaccountName, certificateName, resourceGroupName, subscriptionIdWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
updateUPDATEaccountName, certificateName, resourceGroupName, subscriptionIdWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
cancel_deletionEXECaccountName, certificateName, resourceGroupName, subscriptionIdIf you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.

Warning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead. |

SELECT examples

Warning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.

SELECT
id,
name,
accountName,
certificateName,
delete_certificate_error,
etag,
format,
previous_provisioning_state,
previous_provisioning_state_transition_time,
provisioning_state,
provisioning_state_transition_time,
public_data,
resourceGroupName,
subscriptionId,
tags,
thumbprint,
thumbprint_algorithm,
type
FROM azure.batch.vw_certificates
WHERE accountName = '{{ accountName }}'
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.batch.certificates (
accountName,
certificateName,
resourceGroupName,
subscriptionId,
properties,
tags
)
SELECT
'{{ accountName }}',
'{{ certificateName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}'
;

UPDATE example

Updates a certificates resource.

/*+ update */
UPDATE azure.batch.certificates
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND certificateName = '{{ certificateName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified certificates resource.

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