Skip to main content

import_certificates

Creates, updates, deletes, gets or lists an import_certificates resource.

Overview

Nameimport_certificates
TypeResource
Idazure.key_vault_certificates.import_certificates

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
import_certificateexeccertificate_name, vault_name, valueImports a certificate into a specified key vault. Imports an existing valid certificate, containing a private key, into Azure Key Vault. This operation requires the certificates/import permission. The certificate to be imported can be in either PFX or PEM format. If the certificate is in PEM format the PEM file must contain the key as well as x509 certificates. Key Vault will only accept a key in PKCS#8 format.

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_namestringThe name of the certificate. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information. Required.
vault_namestringKey vault name. (default: )

Lifecycle Methods

Imports a certificate into a specified key vault. Imports an existing valid certificate, containing a private key, into Azure Key Vault. This operation requires the certificates/import permission. The certificate to be imported can be in either PFX or PEM format. If the certificate is in PEM format the PEM file must contain the key as well as x509 certificates. Key Vault will only accept a key in PKCS#8 format.

EXEC azure.key_vault_certificates.import_certificates.import_certificate 
@certificate_name='{{ certificate_name }}' --required,
@vault_name='{{ vault_name }}' --required
@@json=
'{
"value": "{{ value }}",
"pwd": "{{ pwd }}",
"policy": "{{ policy }}",
"attributes": "{{ attributes }}",
"tags": "{{ tags }}",
"preserveCertOrder": {{ preserveCertOrder }}
}'
;