getCertificate

Use this data source to access information about an App Service Certificate.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getCertificate({
name: "example-app-service-certificate",
resourceGroupName: "example-rg",
});
export const appServiceCertificateId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.appservice.get_certificate(name="example-app-service-certificate",
resource_group_name="example-rg")
pulumi.export("appServiceCertificateId", example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.AppService.GetCertificate.Invoke(new()
{
Name = "example-app-service-certificate",
ResourceGroupName = "example-rg",
});
return new Dictionary<string, object?>
{
["appServiceCertificateId"] = example.Apply(getCertificateResult => getCertificateResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := appservice.LookupCertificate(ctx, &appservice.LookupCertificateArgs{
Name: "example-app-service-certificate",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("appServiceCertificateId", example.Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appservice.AppserviceFunctions;
import com.pulumi.azure.appservice.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 = AppserviceFunctions.getCertificate(GetCertificateArgs.builder()
.name("example-app-service-certificate")
.resourceGroupName("example-rg")
.build());
ctx.export("appServiceCertificateId", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:appservice:getCertificate
arguments:
name: example-app-service-certificate
resourceGroupName: example-rg
outputs:
appServiceCertificateId: ${example.id}

Return

A collection of values returned by getCertificate.

Parameters

argument

A collection of arguments for invoking getCertificate.


suspend fun getCertificate(name: String, resourceGroupName: String, tags: Map<String, String>? = null): GetCertificateResult

Return

A collection of values returned by getCertificate.

Parameters

name

Specifies the name of the certificate.

resourceGroupName

The name of the resource group in which to create the certificate.

tags

See also


Return

A collection of values returned by getCertificate.

Parameters

argument

Builder for com.pulumi.azure.appservice.kotlin.inputs.GetCertificatePlainArgs.

See also