We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.nginx.getCertificate
Use this data source to access information about an existing NGINX Certificate.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.nginx.getCertificate({
name: "existing",
nginxDeploymentId: exampleAzurermNginxDeployment.id,
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.nginx.get_certificate(name="existing",
nginx_deployment_id=example_azurerm_nginx_deployment["id"])
pulumi.export("id", example.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/nginx"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := nginx.LookupCertificate(ctx, &nginx.LookupCertificateArgs{
Name: "existing",
NginxDeploymentId: exampleAzurermNginxDeployment.Id,
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Nginx.GetCertificate.Invoke(new()
{
Name = "existing",
NginxDeploymentId = exampleAzurermNginxDeployment.Id,
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getCertificateResult => getCertificateResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.nginx.NginxFunctions;
import com.pulumi.azure.nginx.inputs.GetCertificateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = NginxFunctions.getCertificate(GetCertificateArgs.builder()
.name("existing")
.nginxDeploymentId(exampleAzurermNginxDeployment.id())
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:nginx:getCertificate
arguments:
name: existing
nginxDeploymentId: ${exampleAzurermNginxDeployment.id}
outputs:
id: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Nginx.NginxPlus- 2024-11-01-preview
Using getCertificate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
function getCertificateOutput(args: GetCertificateOutputArgs, opts?: InvokeOptions): Output<GetCertificateResult>def get_certificate(name: Optional[str] = None,
nginx_deployment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCertificateResult
def get_certificate_output(name: Optional[pulumi.Input[str]] = None,
nginx_deployment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]func LookupCertificate(ctx *Context, args *LookupCertificateArgs, opts ...InvokeOption) (*LookupCertificateResult, error)
func LookupCertificateOutput(ctx *Context, args *LookupCertificateOutputArgs, opts ...InvokeOption) LookupCertificateResultOutput> Note: This function is named LookupCertificate in the Go SDK.
public static class GetCertificate
{
public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
public static Output<GetCertificateResult> Invoke(GetCertificateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
public static Output<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
fn::invoke:
function: azure:nginx/getCertificate:getCertificate
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the NGINX Certificate.
- Nginx
Deployment stringId - The ID of the NGINX Deployment that the certificate is associated with.
- Name string
- The name of the NGINX Certificate.
- Nginx
Deployment stringId - The ID of the NGINX Deployment that the certificate is associated with.
- name String
- The name of the NGINX Certificate.
- nginx
Deployment StringId - The ID of the NGINX Deployment that the certificate is associated with.
- name string
- The name of the NGINX Certificate.
- nginx
Deployment stringId - The ID of the NGINX Deployment that the certificate is associated with.
- name str
- The name of the NGINX Certificate.
- nginx_
deployment_ strid - The ID of the NGINX Deployment that the certificate is associated with.
- name String
- The name of the NGINX Certificate.
- nginx
Deployment StringId - The ID of the NGINX Deployment that the certificate is associated with.
getCertificate Result
The following output properties are available:
- Certificate
Virtual stringPath - The path to the certificate file of the certificate.
- Error
Code string - The error code of the certificate error, if any.
- Error
Message string - The error message of the certificate error, if any.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Vault stringSecret Creation Date - The date/time the certificate was created in Azure Key Vault.
- Key
Vault stringSecret Id - The ID of the Key Vault Secret for the certificate.
- Key
Vault stringSecret Version - The version of the certificate.
- Key
Virtual stringPath - The path to the key file of the certificate.
- Name string
- Nginx
Deployment stringId - Sha1Thumbprint string
- The SHA-1 thumbprint of the certificate.
- Certificate
Virtual stringPath - The path to the certificate file of the certificate.
- Error
Code string - The error code of the certificate error, if any.
- Error
Message string - The error message of the certificate error, if any.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Vault stringSecret Creation Date - The date/time the certificate was created in Azure Key Vault.
- Key
Vault stringSecret Id - The ID of the Key Vault Secret for the certificate.
- Key
Vault stringSecret Version - The version of the certificate.
- Key
Virtual stringPath - The path to the key file of the certificate.
- Name string
- Nginx
Deployment stringId - Sha1Thumbprint string
- The SHA-1 thumbprint of the certificate.
- certificate
Virtual StringPath - The path to the certificate file of the certificate.
- error
Code String - The error code of the certificate error, if any.
- error
Message String - The error message of the certificate error, if any.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Vault StringSecret Creation Date - The date/time the certificate was created in Azure Key Vault.
- key
Vault StringSecret Id - The ID of the Key Vault Secret for the certificate.
- key
Vault StringSecret Version - The version of the certificate.
- key
Virtual StringPath - The path to the key file of the certificate.
- name String
- nginx
Deployment StringId - sha1Thumbprint String
- The SHA-1 thumbprint of the certificate.
- certificate
Virtual stringPath - The path to the certificate file of the certificate.
- error
Code string - The error code of the certificate error, if any.
- error
Message string - The error message of the certificate error, if any.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Vault stringSecret Creation Date - The date/time the certificate was created in Azure Key Vault.
- key
Vault stringSecret Id - The ID of the Key Vault Secret for the certificate.
- key
Vault stringSecret Version - The version of the certificate.
- key
Virtual stringPath - The path to the key file of the certificate.
- name string
- nginx
Deployment stringId - sha1Thumbprint string
- The SHA-1 thumbprint of the certificate.
- certificate_
virtual_ strpath - The path to the certificate file of the certificate.
- error_
code str - The error code of the certificate error, if any.
- error_
message str - The error message of the certificate error, if any.
- id str
- The provider-assigned unique ID for this managed resource.
- key_
vault_ strsecret_ creation_ date - The date/time the certificate was created in Azure Key Vault.
- key_
vault_ strsecret_ id - The ID of the Key Vault Secret for the certificate.
- key_
vault_ strsecret_ version - The version of the certificate.
- key_
virtual_ strpath - The path to the key file of the certificate.
- name str
- nginx_
deployment_ strid - sha1_
thumbprint str - The SHA-1 thumbprint of the certificate.
- certificate
Virtual StringPath - The path to the certificate file of the certificate.
- error
Code String - The error code of the certificate error, if any.
- error
Message String - The error message of the certificate error, if any.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Vault StringSecret Creation Date - The date/time the certificate was created in Azure Key Vault.
- key
Vault StringSecret Id - The ID of the Key Vault Secret for the certificate.
- key
Vault StringSecret Version - The version of the certificate.
- key
Virtual StringPath - The path to the key file of the certificate.
- name String
- nginx
Deployment StringId - sha1Thumbprint String
- The SHA-1 thumbprint of the certificate.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
