Skip to main content

certificate_profiles

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

Overview

Namecertificate_profiles
TypeResource
Idazure.artifact_signing.certificate_profiles

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.
certificatesarrayList of renewed certificates.
identityValidationIdstringIdentity validation id used for the certificate subject name. Required.
includeCitybooleanWhether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types.
includeCountrybooleanWhether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types.
includePostalCodebooleanWhether to include PC in the certificate subject name.
includeStatebooleanWhether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types.
includeStreetAddressbooleanWhether to include STREET in the certificate subject name.
profileTypestringProfile type of the certificate. Required. Known values are: "PublicTrust", "PrivateTrust", "PrivateTrustCIPolicy", "VBSEnclave", and "PublicTrustTest". (PublicTrust, PrivateTrust, PrivateTrustCIPolicy, VBSEnclave, PublicTrustTest)
programTypestringIndicates whether the resource is intended for a specific usage scenario.
provisioningStatestringStatus of the current operation on certificate profile. Known values are: "Succeeded", "Failed", "Canceled", "Updating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Updating, Deleting, Accepted)
statusstringStatus of the certificate profile. Known values are: "Active", "Disabled", and "Suspended". (Active, Disabled, Suspended)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, profile_name, subscription_idGet details of a certificate profile.
list_by_code_signing_accountselectresource_group_name, account_name, subscription_idList certificate profiles under an artifact signing account.
createinsertresource_group_name, account_name, profile_name, subscription_idCreate a certificate profile.
deletedeleteresource_group_name, account_name, profile_name, subscription_idDelete a certificate profile.
revoke_certificatesexecresource_group_name, account_name, profile_name, subscription_id, revokeCertificatesRevokes certificates under a certificate profile.

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
account_namestringArtifact Signing account name. Required.
profile_namestringCertificate profile name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get details of a certificate profile.

SELECT
id,
name,
certificates,
identityValidationId,
includeCity,
includeCountry,
includePostalCode,
includeState,
includeStreetAddress,
profileType,
programType,
provisioningState,
status,
systemData,
type
FROM azure.artifact_signing.certificate_profiles
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a certificate profile.

INSERT INTO azure.artifact_signing.certificate_profiles (
properties,
resource_group_name,
account_name,
profile_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ profile_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete a certificate profile.

DELETE FROM azure.artifact_signing.certificate_profiles
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Revokes certificates under a certificate profile.

EXEC azure.artifact_signing.certificate_profiles.revoke_certificates 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@profile_name='{{ profile_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"revokeCertificates": "{{ revokeCertificates }}"
}'
;