Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idazure.batch.certificates

Fields

The following fields are returned by SELECT queries:

The operation was successful. The response contains the certificate entity.

NameDatatypeDescription
idstringThe ID of the resource.
namestringThe name of the resource.
etagstringThe ETag of the resource, used for concurrency statements.
propertiesobjectThe properties associated with the certificate.
tagsobjectThe tags of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, accountName, certificateName, subscriptionIdWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
list_by_batch_accountselectresourceGroupName, accountName, subscriptionIdmaxresults, $select, $filterWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
createinsertresourceGroupName, accountName, certificateName, subscriptionIdIf-Match, If-None-MatchWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
updateupdateresourceGroupName, accountName, certificateName, subscriptionIdIf-MatchWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
deletedeleteresourceGroupName, accountName, certificateName, subscriptionIdWarning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
cancel_deletionexecresourceGroupName, accountName, certificateName, 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.

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
accountNamestringThe name of the Batch account.
certificateNamestringThe identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
resourceGroupNamestringThe name of the resource group that contains the Batch account.
subscriptionIdstringThe Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
$filterstringOData filter expression. Valid properties for filtering are "properties/provisioningState", "properties/provisioningStateTransitionTime", "name".
$selectstringComma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection.
If-MatchstringThe entity state (ETag) version of the certificate to update. This value can be omitted or set to "*" to apply the operation unconditionally.
If-None-MatchstringSet to '*' to allow a new certificate to be created, but to prevent updating an existing certificate. Other values will be ignored.
maxresultsinteger (int32)The maximum number of items to return in the response.

SELECT examples

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

SELECT
id,
name,
etag,
properties,
tags,
type
FROM azure.batch.certificates
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND certificateName = '{{ certificateName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

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

INSERT INTO azure.batch.certificates (
data__properties,
data__tags,
resourceGroupName,
accountName,
certificateName,
subscriptionId,
If-Match,
If-None-Match
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ certificateName }}',
'{{ subscriptionId }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
id,
name,
etag,
properties,
tags,
type
;

UPDATE examples

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

UPDATE azure.batch.certificates
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND certificateName = '{{ certificateName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
id,
name,
etag,
properties,
tags,
type;

DELETE examples

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

DELETE FROM azure.batch.certificates
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND certificateName = '{{ certificateName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

If 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.

EXEC azure.batch.certificates.cancel_deletion 
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required,
@certificateName='{{ certificateName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;