Skip to main content

managed_certificates

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

Overview

Namemanaged_certificates
TypeResource
Idazure.app_containers.managed_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.
domainControlValidationstringSelected type of domain control validation for managed certificates. Known values are: "CNAME", "HTTP", and "TXT". (CNAME, HTTP, TXT)
errorstringAny error occurred during the certificate provision.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringProvisioning state of the certificate. Known values are: "Succeeded", "Failed", "Canceled", "DeleteFailed", "Pending", and "Deleting". (Succeeded, Failed, Canceled, DeleteFailed, Pending, Deleting)
subjectNamestringSubject name of the certificate.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
validationTokenstringA TXT token used for DNS TXT domain control validation when issuing this type of managed certificates.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, environment_name, managed_certificate_name, subscription_idGet the specified Managed Certificate. Get the specified Managed Certificate.
listselectresource_group_name, environment_name, subscription_idGet the Managed Certificates in a given managed environment. Get the Managed Certificates in a given managed environment.
create_or_updateinsertresource_group_name, environment_name, managed_certificate_name, subscription_id, locationCreate or Update a Managed Certificate. Create or Update a Managed Certificate.
updateupdateresource_group_name, environment_name, managed_certificate_name, subscription_idUpdate tags of a managed certificate. Patches a managed certificate. Oly patching of tags is supported.
create_or_updatereplaceresource_group_name, environment_name, managed_certificate_name, subscription_id, locationCreate or Update a Managed Certificate. Create or Update a Managed Certificate.
deletedeleteresource_group_name, environment_name, managed_certificate_name, subscription_idDeletes the specified Managed Certificate. Deletes the specified Managed 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
environment_namestringName of the Environment. Required.
managed_certificate_namestringName of the Managed Certificate. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the specified Managed Certificate. Get the specified Managed Certificate.

SELECT
id,
name,
domainControlValidation,
error,
location,
provisioningState,
subjectName,
systemData,
tags,
type,
validationToken
FROM azure.app_containers.managed_certificates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND environment_name = '{{ environment_name }}' -- required
AND managed_certificate_name = '{{ managed_certificate_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

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

UPDATE examples

Update tags of a managed certificate. Patches a managed certificate. Oly patching of tags is supported.

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

REPLACE examples

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

REPLACE azure.app_containers.managed_certificates
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND managed_certificate_name = '{{ managed_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 Managed Certificate. Deletes the specified Managed Certificate.

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