Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idazure.app_containers.certificates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
certificateKeyVaultPropertiesobjectProperties for a certificate stored in a Key Vault.
deploymentErrorsstringAny errors that occurred during deployment or deployment validation.
expirationDatestring (date-time)Certificate expiration date.
issueDatestring (date-time)Certificate issue Date.
issuerstringCertificate issuer.
locationstringThe geo-location where the resource lives. Required.
passwordstringCertificate password.
provisioningStatestringProvisioning state of the certificate. Known values are: "Succeeded", "Failed", "Canceled", "DeleteFailed", "Pending", and "Deleting". (Succeeded, Failed, Canceled, DeleteFailed, Pending, Deleting)
publicKeyHashstringPublic key hash.
subjectAlternativeNamesarraySubject alternative names the certificate applies to.
subjectNamestringSubject name of the certificate.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
thumbprintstringCertificate thumbprint.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
validbooleanIs the certificate valid?.
valuestring (byte)PFX or PEM blob.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, environment_name, certificate_name, subscription_idGet the specified Certificate. Get the specified Certificate.
listselectresource_group_name, environment_name, subscription_idGet the Certificates in a given managed environment. Get the Certificates in a given managed environment.
create_or_updateinsertresource_group_name, environment_name, certificate_name, subscription_id, locationCreate or Update a Certificate. Create or Update a Certificate.
updateupdateresource_group_name, environment_name, certificate_name, subscription_idUpdate properties of a certificate. Patches a certificate. Currently only patching of tags is supported.
create_or_updatereplaceresource_group_name, environment_name, certificate_name, subscription_id, locationCreate or Update a Certificate. Create or Update a Certificate.
deletedeleteresource_group_name, environment_name, certificate_name, subscription_idDeletes the specified Certificate. Deletes the specified Certificate.

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
certificate_namestringName of the Certificate. Required.
environment_namestringName of the Managed Environment. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the specified Certificate. Get the specified Certificate.

SELECT
id,
name,
certificateKeyVaultProperties,
deploymentErrors,
expirationDate,
issueDate,
issuer,
location,
password,
provisioningState,
publicKeyHash,
subjectAlternativeNames,
subjectName,
systemData,
tags,
thumbprint,
type,
valid,
value
FROM azure.app_containers.certificates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND environment_name = '{{ environment_name }}' -- required
AND certificate_name = '{{ certificate_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or Update a Certificate. Create or Update a Certificate.

INSERT INTO azure.app_containers.certificates (
tags,
location,
properties,
resource_group_name,
environment_name,
certificate_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ environment_name }}',
'{{ certificate_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update properties of a certificate. Patches a certificate. Currently only patching of tags is supported.

UPDATE azure.app_containers.certificates
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND certificate_name = '{{ certificate_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or Update a Certificate. Create or Update a Certificate.

REPLACE azure.app_containers.certificates
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND certificate_name = '{{ certificate_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes the specified Certificate. Deletes the specified Certificate.

DELETE FROM azure.app_containers.certificates
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND certificate_name = '{{ certificate_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;