1. Packages
  2. Azure Active Directory (Azure AD)
  3. API Docs
  4. ServicePrincipalTokenSigningCertificate
Azure Active Directory (Azure AD) v5.48.0 published on Monday, Apr 15, 2024 by Pulumi

azuread.ServicePrincipalTokenSigningCertificate

Explore with Pulumi AI

azuread logo
Azure Active Directory (Azure AD) v5.48.0 published on Monday, Apr 15, 2024 by Pulumi

    Example Usage

    Using default settings

    import * as pulumi from "@pulumi/pulumi";
    import * as azuread from "@pulumi/azuread";
    
    const example = new azuread.Application("example", {displayName: "example"});
    const exampleServicePrincipal = new azuread.ServicePrincipal("example", {applicationId: example.applicationId});
    const exampleServicePrincipalTokenSigningCertificate = new azuread.ServicePrincipalTokenSigningCertificate("example", {servicePrincipalId: exampleServicePrincipal.id});
    
    import pulumi
    import pulumi_azuread as azuread
    
    example = azuread.Application("example", display_name="example")
    example_service_principal = azuread.ServicePrincipal("example", application_id=example.application_id)
    example_service_principal_token_signing_certificate = azuread.ServicePrincipalTokenSigningCertificate("example", service_principal_id=example_service_principal.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{
    			DisplayName: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "example", &azuread.ServicePrincipalArgs{
    			ApplicationId: example.ApplicationId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuread.NewServicePrincipalTokenSigningCertificate(ctx, "example", &azuread.ServicePrincipalTokenSigningCertificateArgs{
    			ServicePrincipalId: exampleServicePrincipal.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureAD = Pulumi.AzureAD;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AzureAD.Application("example", new()
        {
            DisplayName = "example",
        });
    
        var exampleServicePrincipal = new AzureAD.ServicePrincipal("example", new()
        {
            ApplicationId = example.ApplicationId,
        });
    
        var exampleServicePrincipalTokenSigningCertificate = new AzureAD.ServicePrincipalTokenSigningCertificate("example", new()
        {
            ServicePrincipalId = exampleServicePrincipal.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuread.Application;
    import com.pulumi.azuread.ApplicationArgs;
    import com.pulumi.azuread.ServicePrincipal;
    import com.pulumi.azuread.ServicePrincipalArgs;
    import com.pulumi.azuread.ServicePrincipalTokenSigningCertificate;
    import com.pulumi.azuread.ServicePrincipalTokenSigningCertificateArgs;
    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) {
            var example = new Application("example", ApplicationArgs.builder()        
                .displayName("example")
                .build());
    
            var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder()        
                .applicationId(example.applicationId())
                .build());
    
            var exampleServicePrincipalTokenSigningCertificate = new ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", ServicePrincipalTokenSigningCertificateArgs.builder()        
                .servicePrincipalId(exampleServicePrincipal.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuread:Application
        properties:
          displayName: example
      exampleServicePrincipal:
        type: azuread:ServicePrincipal
        name: example
        properties:
          applicationId: ${example.applicationId}
      exampleServicePrincipalTokenSigningCertificate:
        type: azuread:ServicePrincipalTokenSigningCertificate
        name: example
        properties:
          servicePrincipalId: ${exampleServicePrincipal.id}
    

    Using custom settings

    import * as pulumi from "@pulumi/pulumi";
    import * as azuread from "@pulumi/azuread";
    
    const example = new azuread.Application("example", {displayName: "example"});
    const exampleServicePrincipal = new azuread.ServicePrincipal("example", {applicationId: example.applicationId});
    const exampleServicePrincipalTokenSigningCertificate = new azuread.ServicePrincipalTokenSigningCertificate("example", {
        servicePrincipalId: exampleServicePrincipal.id,
        displayName: "CN=example.com",
        endDate: "2023-05-01T01:02:03Z",
    });
    
    import pulumi
    import pulumi_azuread as azuread
    
    example = azuread.Application("example", display_name="example")
    example_service_principal = azuread.ServicePrincipal("example", application_id=example.application_id)
    example_service_principal_token_signing_certificate = azuread.ServicePrincipalTokenSigningCertificate("example",
        service_principal_id=example_service_principal.id,
        display_name="CN=example.com",
        end_date="2023-05-01T01:02:03Z")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{
    			DisplayName: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "example", &azuread.ServicePrincipalArgs{
    			ApplicationId: example.ApplicationId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuread.NewServicePrincipalTokenSigningCertificate(ctx, "example", &azuread.ServicePrincipalTokenSigningCertificateArgs{
    			ServicePrincipalId: exampleServicePrincipal.ID(),
    			DisplayName:        pulumi.String("CN=example.com"),
    			EndDate:            pulumi.String("2023-05-01T01:02:03Z"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureAD = Pulumi.AzureAD;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AzureAD.Application("example", new()
        {
            DisplayName = "example",
        });
    
        var exampleServicePrincipal = new AzureAD.ServicePrincipal("example", new()
        {
            ApplicationId = example.ApplicationId,
        });
    
        var exampleServicePrincipalTokenSigningCertificate = new AzureAD.ServicePrincipalTokenSigningCertificate("example", new()
        {
            ServicePrincipalId = exampleServicePrincipal.Id,
            DisplayName = "CN=example.com",
            EndDate = "2023-05-01T01:02:03Z",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuread.Application;
    import com.pulumi.azuread.ApplicationArgs;
    import com.pulumi.azuread.ServicePrincipal;
    import com.pulumi.azuread.ServicePrincipalArgs;
    import com.pulumi.azuread.ServicePrincipalTokenSigningCertificate;
    import com.pulumi.azuread.ServicePrincipalTokenSigningCertificateArgs;
    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) {
            var example = new Application("example", ApplicationArgs.builder()        
                .displayName("example")
                .build());
    
            var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder()        
                .applicationId(example.applicationId())
                .build());
    
            var exampleServicePrincipalTokenSigningCertificate = new ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", ServicePrincipalTokenSigningCertificateArgs.builder()        
                .servicePrincipalId(exampleServicePrincipal.id())
                .displayName("CN=example.com")
                .endDate("2023-05-01T01:02:03Z")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuread:Application
        properties:
          displayName: example
      exampleServicePrincipal:
        type: azuread:ServicePrincipal
        name: example
        properties:
          applicationId: ${example.applicationId}
      exampleServicePrincipalTokenSigningCertificate:
        type: azuread:ServicePrincipalTokenSigningCertificate
        name: example
        properties:
          servicePrincipalId: ${exampleServicePrincipal.id}
          displayName: CN=example.com
          endDate: 2023-05-01T01:02:03Z
    

    Create ServicePrincipalTokenSigningCertificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServicePrincipalTokenSigningCertificate(name: string, args: ServicePrincipalTokenSigningCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def ServicePrincipalTokenSigningCertificate(resource_name: str,
                                                args: ServicePrincipalTokenSigningCertificateArgs,
                                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServicePrincipalTokenSigningCertificate(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                service_principal_id: Optional[str] = None,
                                                display_name: Optional[str] = None,
                                                end_date: Optional[str] = None)
    func NewServicePrincipalTokenSigningCertificate(ctx *Context, name string, args ServicePrincipalTokenSigningCertificateArgs, opts ...ResourceOption) (*ServicePrincipalTokenSigningCertificate, error)
    public ServicePrincipalTokenSigningCertificate(string name, ServicePrincipalTokenSigningCertificateArgs args, CustomResourceOptions? opts = null)
    public ServicePrincipalTokenSigningCertificate(String name, ServicePrincipalTokenSigningCertificateArgs args)
    public ServicePrincipalTokenSigningCertificate(String name, ServicePrincipalTokenSigningCertificateArgs args, CustomResourceOptions options)
    
    type: azuread:ServicePrincipalTokenSigningCertificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServicePrincipalTokenSigningCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServicePrincipalTokenSigningCertificateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServicePrincipalTokenSigningCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServicePrincipalTokenSigningCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServicePrincipalTokenSigningCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var servicePrincipalTokenSigningCertificateResource = new AzureAD.ServicePrincipalTokenSigningCertificate("servicePrincipalTokenSigningCertificateResource", new()
    {
        ServicePrincipalId = "string",
        DisplayName = "string",
        EndDate = "string",
    });
    
    example, err := azuread.NewServicePrincipalTokenSigningCertificate(ctx, "servicePrincipalTokenSigningCertificateResource", &azuread.ServicePrincipalTokenSigningCertificateArgs{
    	ServicePrincipalId: pulumi.String("string"),
    	DisplayName:        pulumi.String("string"),
    	EndDate:            pulumi.String("string"),
    })
    
    var servicePrincipalTokenSigningCertificateResource = new ServicePrincipalTokenSigningCertificate("servicePrincipalTokenSigningCertificateResource", ServicePrincipalTokenSigningCertificateArgs.builder()        
        .servicePrincipalId("string")
        .displayName("string")
        .endDate("string")
        .build());
    
    service_principal_token_signing_certificate_resource = azuread.ServicePrincipalTokenSigningCertificate("servicePrincipalTokenSigningCertificateResource",
        service_principal_id="string",
        display_name="string",
        end_date="string")
    
    const servicePrincipalTokenSigningCertificateResource = new azuread.ServicePrincipalTokenSigningCertificate("servicePrincipalTokenSigningCertificateResource", {
        servicePrincipalId: "string",
        displayName: "string",
        endDate: "string",
    });
    
    type: azuread:ServicePrincipalTokenSigningCertificate
    properties:
        displayName: string
        endDate: string
        servicePrincipalId: string
    

    ServicePrincipalTokenSigningCertificate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServicePrincipalTokenSigningCertificate resource accepts the following input properties:

    ServicePrincipalId string
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    DisplayName string

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    EndDate string
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    ServicePrincipalId string
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    DisplayName string

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    EndDate string
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    servicePrincipalId String
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    displayName String

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    endDate String
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    servicePrincipalId string
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    displayName string

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    endDate string
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    service_principal_id str
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    display_name str

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    end_date str
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    servicePrincipalId String
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    displayName String

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    endDate String
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServicePrincipalTokenSigningCertificate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    KeyId string
    A UUID used to uniquely identify the verify certificate.
    StartDate string
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    Thumbprint string
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    Value string
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyId string
    A UUID used to uniquely identify the verify certificate.
    StartDate string
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    Thumbprint string
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    Value string
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    id String
    The provider-assigned unique ID for this managed resource.
    keyId String
    A UUID used to uniquely identify the verify certificate.
    startDate String
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    thumbprint String
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    value String
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    id string
    The provider-assigned unique ID for this managed resource.
    keyId string
    A UUID used to uniquely identify the verify certificate.
    startDate string
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    thumbprint string
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    value string
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    id str
    The provider-assigned unique ID for this managed resource.
    key_id str
    A UUID used to uniquely identify the verify certificate.
    start_date str
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    thumbprint str
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    value str
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    id String
    The provider-assigned unique ID for this managed resource.
    keyId String
    A UUID used to uniquely identify the verify certificate.
    startDate String
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    thumbprint String
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    value String
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.

    Look up Existing ServicePrincipalTokenSigningCertificate Resource

    Get an existing ServicePrincipalTokenSigningCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServicePrincipalTokenSigningCertificateState, opts?: CustomResourceOptions): ServicePrincipalTokenSigningCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            display_name: Optional[str] = None,
            end_date: Optional[str] = None,
            key_id: Optional[str] = None,
            service_principal_id: Optional[str] = None,
            start_date: Optional[str] = None,
            thumbprint: Optional[str] = None,
            value: Optional[str] = None) -> ServicePrincipalTokenSigningCertificate
    func GetServicePrincipalTokenSigningCertificate(ctx *Context, name string, id IDInput, state *ServicePrincipalTokenSigningCertificateState, opts ...ResourceOption) (*ServicePrincipalTokenSigningCertificate, error)
    public static ServicePrincipalTokenSigningCertificate Get(string name, Input<string> id, ServicePrincipalTokenSigningCertificateState? state, CustomResourceOptions? opts = null)
    public static ServicePrincipalTokenSigningCertificate get(String name, Output<String> id, ServicePrincipalTokenSigningCertificateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DisplayName string

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    EndDate string
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    KeyId string
    A UUID used to uniquely identify the verify certificate.
    ServicePrincipalId string
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    StartDate string
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    Thumbprint string
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    Value string
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    DisplayName string

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    EndDate string
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    KeyId string
    A UUID used to uniquely identify the verify certificate.
    ServicePrincipalId string
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    StartDate string
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    Thumbprint string
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    Value string
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    displayName String

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    endDate String
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    keyId String
    A UUID used to uniquely identify the verify certificate.
    servicePrincipalId String
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    startDate String
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    thumbprint String
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    value String
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    displayName string

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    endDate string
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    keyId string
    A UUID used to uniquely identify the verify certificate.
    servicePrincipalId string
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    startDate string
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    thumbprint string
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    value string
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    display_name str

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    end_date str
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    key_id str
    A UUID used to uniquely identify the verify certificate.
    service_principal_id str
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    start_date str
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    thumbprint str
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    value str
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.
    displayName String

    Specifies a friendly name for the certificate. Must start with CN=. Changing this field forces a new resource to be created.

    If not specified, it will default to CN=Microsoft Azure Federated SSO Certificate.

    endDate String
    The end date until which the token signing certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
    keyId String
    A UUID used to uniquely identify the verify certificate.
    servicePrincipalId String
    The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.
    startDate String
    The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
    thumbprint String
    A SHA-1 generated thumbprint of the token signing certificate, which can be used to set the preferred signing certificate for a service principal.
    value String
    The certificate data, which is PEM encoded but does not include the header -----BEGIN CERTIFICATE-----\n or the footer \n-----END CERTIFICATE-----.

    Import

    Token signing certificates can be imported using the object ID of the associated service principal and the key ID of the verify certificate credential, e.g.

    $ pulumi import azuread:index/servicePrincipalTokenSigningCertificate:ServicePrincipalTokenSigningCertificate example 00000000-0000-0000-0000-000000000000/tokenSigningCertificate/11111111-1111-1111-1111-111111111111
    

    -> This ID format is unique to Terraform and is composed of the service principal’s object ID, the string “tokenSigningCertificate” and the verify certificate’s key ID in the format {ServicePrincipalObjectId}/tokenSigningCertificate/{CertificateKeyId}.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Active Directory (Azure AD) pulumi/pulumi-azuread
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azuread Terraform Provider.
    azuread logo
    Azure Active Directory (Azure AD) v5.48.0 published on Monday, Apr 15, 2024 by Pulumi