azuread.ServicePrincipalTokenSigningCertificate
Explore with Pulumi AI
Manages a token signing certificate associated with a service principal within Azure Active Directory.
API Permissions
The following API permissions are required in order to use this resource.
When authenticated with a service principal, this resource requires one of the following application roles: Application.ReadWrite.All
or Directory.ReadWrite.All
When authenticated with a user principal, this resource requires one of the following directory roles: Application Administrator
or Global Administrator
Example Usage
Using default settings
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() =>
{
var exampleApplication = new AzureAD.Application("exampleApplication", new()
{
DisplayName = "example",
});
var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new()
{
ApplicationId = exampleApplication.ApplicationId,
});
var exampleServicePrincipalTokenSigningCertificate = new AzureAD.ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", new()
{
ServicePrincipalId = exampleServicePrincipal.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 {
exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{
DisplayName: pulumi.String("example"),
})
if err != nil {
return err
}
exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{
ApplicationId: exampleApplication.ApplicationId,
})
if err != nil {
return err
}
_, err = azuread.NewServicePrincipalTokenSigningCertificate(ctx, "exampleServicePrincipalTokenSigningCertificate", &azuread.ServicePrincipalTokenSigningCertificateArgs{
ServicePrincipalId: exampleServicePrincipal.ID(),
})
if err != nil {
return err
}
return nil
})
}
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 exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
.displayName("example")
.build());
var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder()
.applicationId(exampleApplication.applicationId())
.build());
var exampleServicePrincipalTokenSigningCertificate = new ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", ServicePrincipalTokenSigningCertificateArgs.builder()
.servicePrincipalId(exampleServicePrincipal.id())
.build());
}
}
import pulumi
import pulumi_azuread as azuread
example_application = azuread.Application("exampleApplication", display_name="example")
example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id)
example_service_principal_token_signing_certificate = azuread.ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", service_principal_id=example_service_principal.id)
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const exampleApplication = new azuread.Application("exampleApplication", {displayName: "example"});
const exampleServicePrincipal = new azuread.ServicePrincipal("exampleServicePrincipal", {applicationId: exampleApplication.applicationId});
const exampleServicePrincipalTokenSigningCertificate = new azuread.ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", {servicePrincipalId: exampleServicePrincipal.id});
resources:
exampleApplication:
type: azuread:Application
properties:
displayName: example
exampleServicePrincipal:
type: azuread:ServicePrincipal
properties:
applicationId: ${exampleApplication.applicationId}
exampleServicePrincipalTokenSigningCertificate:
type: azuread:ServicePrincipalTokenSigningCertificate
properties:
servicePrincipalId: ${exampleServicePrincipal.id}
Using custom settings
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() =>
{
var exampleApplication = new AzureAD.Application("exampleApplication", new()
{
DisplayName = "example",
});
var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new()
{
ApplicationId = exampleApplication.ApplicationId,
});
var exampleServicePrincipalTokenSigningCertificate = new AzureAD.ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", new()
{
ServicePrincipalId = exampleServicePrincipal.Id,
DisplayName = "CN=example.com",
EndDate = "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 {
exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{
DisplayName: pulumi.String("example"),
})
if err != nil {
return err
}
exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{
ApplicationId: exampleApplication.ApplicationId,
})
if err != nil {
return err
}
_, err = azuread.NewServicePrincipalTokenSigningCertificate(ctx, "exampleServicePrincipalTokenSigningCertificate", &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
})
}
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 exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
.displayName("example")
.build());
var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder()
.applicationId(exampleApplication.applicationId())
.build());
var exampleServicePrincipalTokenSigningCertificate = new ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", ServicePrincipalTokenSigningCertificateArgs.builder()
.servicePrincipalId(exampleServicePrincipal.id())
.displayName("CN=example.com")
.endDate("2023-05-01T01:02:03Z")
.build());
}
}
import pulumi
import pulumi_azuread as azuread
example_application = azuread.Application("exampleApplication", display_name="example")
example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id)
example_service_principal_token_signing_certificate = azuread.ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate",
service_principal_id=example_service_principal.id,
display_name="CN=example.com",
end_date="2023-05-01T01:02:03Z")
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const exampleApplication = new azuread.Application("exampleApplication", {displayName: "example"});
const exampleServicePrincipal = new azuread.ServicePrincipal("exampleServicePrincipal", {applicationId: exampleApplication.applicationId});
const exampleServicePrincipalTokenSigningCertificate = new azuread.ServicePrincipalTokenSigningCertificate("exampleServicePrincipalTokenSigningCertificate", {
servicePrincipalId: exampleServicePrincipal.id,
displayName: "CN=example.com",
endDate: "2023-05-01T01:02:03Z",
});
resources:
exampleApplication:
type: azuread:Application
properties:
displayName: example
exampleServicePrincipal:
type: azuread:ServicePrincipal
properties:
applicationId: ${exampleApplication.applicationId}
exampleServicePrincipalTokenSigningCertificate:
type: azuread:ServicePrincipalTokenSigningCertificate
properties:
servicePrincipalId: ${exampleServicePrincipal.id}
displayName: CN=example.com
endDate: 2023-05-01T01:02:03Z
Create ServicePrincipalTokenSigningCertificate Resource
new ServicePrincipalTokenSigningCertificate(name: string, args: ServicePrincipalTokenSigningCertificateArgs, opts?: CustomResourceOptions);
@overload
def ServicePrincipalTokenSigningCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
end_date: Optional[str] = None,
service_principal_id: Optional[str] = None)
@overload
def ServicePrincipalTokenSigningCertificate(resource_name: str,
args: ServicePrincipalTokenSigningCertificateArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- Service
Principal stringId 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 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
.- End
Date 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 stringId 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 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
.- End
Date 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 StringId 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 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
.- end
Date 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 stringId 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 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
.- end
Date 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_ strid 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.
- service
Principal StringId 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 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
.- end
Date 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.
- Key
Id string A UUID used to uniquely identify the verify certificate.
- Start
Date 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.
- Key
Id string A UUID used to uniquely identify the verify certificate.
- Start
Date 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.
- key
Id String A UUID used to uniquely identify the verify certificate.
- start
Date 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.
- key
Id string A UUID used to uniquely identify the verify certificate.
- start
Date 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.
- key
Id String A UUID used to uniquely identify the verify certificate.
- start
Date 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.
- Display
Name 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
.- End
Date 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.- Key
Id string A UUID used to uniquely identify the verify certificate.
- Service
Principal stringId 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 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 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
.- End
Date 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.- Key
Id string A UUID used to uniquely identify the verify certificate.
- Service
Principal stringId 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 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 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
.- end
Date 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.- key
Id String A UUID used to uniquely identify the verify certificate.
- service
Principal StringId 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 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 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
.- end
Date 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.- key
Id string A UUID used to uniquely identify the verify certificate.
- service
Principal stringId 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 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_ strid 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-----
.
- display
Name 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
.- end
Date 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.- key
Id String A UUID used to uniquely identify the verify certificate.
- service
Principal StringId 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 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}
.
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.