azuread.ServicePrincipalPassword
Explore with Pulumi AI
Manages a password credential associated with a service principal within Azure Active Directory. See also the azuread.ApplicationPassword resource.
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
Basic example
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 exampleServicePrincipalPassword = new AzureAD.ServicePrincipalPassword("exampleServicePrincipalPassword", new()
{
ServicePrincipalId = exampleServicePrincipal.ObjectId,
});
});
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.NewServicePrincipalPassword(ctx, "exampleServicePrincipalPassword", &azuread.ServicePrincipalPasswordArgs{
ServicePrincipalId: exampleServicePrincipal.ObjectId,
})
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.ServicePrincipalPassword;
import com.pulumi.azuread.ServicePrincipalPasswordArgs;
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 exampleServicePrincipalPassword = new ServicePrincipalPassword("exampleServicePrincipalPassword", ServicePrincipalPasswordArgs.builder()
.servicePrincipalId(exampleServicePrincipal.objectId())
.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_password = azuread.ServicePrincipalPassword("exampleServicePrincipalPassword", service_principal_id=example_service_principal.object_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 exampleServicePrincipalPassword = new azuread.ServicePrincipalPassword("exampleServicePrincipalPassword", {servicePrincipalId: exampleServicePrincipal.objectId});
resources:
exampleApplication:
type: azuread:Application
properties:
displayName: example
exampleServicePrincipal:
type: azuread:ServicePrincipal
properties:
applicationId: ${exampleApplication.applicationId}
exampleServicePrincipalPassword:
type: azuread:ServicePrincipalPassword
properties:
servicePrincipalId: ${exampleServicePrincipal.objectId}
Time-based rotation
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureAD = Pulumi.AzureAD;
using Time = Pulumiverse.Time;
return await Deployment.RunAsync(() =>
{
var exampleApplication = new AzureAD.Application("exampleApplication", new()
{
DisplayName = "example",
});
var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new()
{
ApplicationId = exampleApplication.ApplicationId,
});
var exampleRotating = new Time.Rotating("exampleRotating", new()
{
RotationDays = 7,
});
var exampleServicePrincipalPassword = new AzureAD.ServicePrincipalPassword("exampleServicePrincipalPassword", new()
{
ServicePrincipalId = exampleServicePrincipal.ObjectId,
RotateWhenChanged =
{
{ "rotation", exampleRotating.Id },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
"github.com/pulumi/pulumi-time/sdk/go/time"
"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
}
exampleRotating, err := time.NewRotating(ctx, "exampleRotating", &time.RotatingArgs{
RotationDays: pulumi.Int(7),
})
if err != nil {
return err
}
_, err = azuread.NewServicePrincipalPassword(ctx, "exampleServicePrincipalPassword", &azuread.ServicePrincipalPasswordArgs{
ServicePrincipalId: exampleServicePrincipal.ObjectId,
RotateWhenChanged: pulumi.StringMap{
"rotation": exampleRotating.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.time.Rotating;
import com.pulumi.time.RotatingArgs;
import com.pulumi.azuread.ServicePrincipalPassword;
import com.pulumi.azuread.ServicePrincipalPasswordArgs;
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 exampleRotating = new Rotating("exampleRotating", RotatingArgs.builder()
.rotationDays(7)
.build());
var exampleServicePrincipalPassword = new ServicePrincipalPassword("exampleServicePrincipalPassword", ServicePrincipalPasswordArgs.builder()
.servicePrincipalId(exampleServicePrincipal.objectId())
.rotateWhenChanged(Map.of("rotation", exampleRotating.id()))
.build());
}
}
import pulumi
import pulumi_azuread as azuread
import pulumiverse_time as time
example_application = azuread.Application("exampleApplication", display_name="example")
example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id)
example_rotating = time.Rotating("exampleRotating", rotation_days=7)
example_service_principal_password = azuread.ServicePrincipalPassword("exampleServicePrincipalPassword",
service_principal_id=example_service_principal.object_id,
rotate_when_changed={
"rotation": example_rotating.id,
})
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
import * as time from "@pulumiverse/time";
const exampleApplication = new azuread.Application("exampleApplication", {displayName: "example"});
const exampleServicePrincipal = new azuread.ServicePrincipal("exampleServicePrincipal", {applicationId: exampleApplication.applicationId});
const exampleRotating = new time.Rotating("exampleRotating", {rotationDays: 7});
const exampleServicePrincipalPassword = new azuread.ServicePrincipalPassword("exampleServicePrincipalPassword", {
servicePrincipalId: exampleServicePrincipal.objectId,
rotateWhenChanged: {
rotation: exampleRotating.id,
},
});
resources:
exampleApplication:
type: azuread:Application
properties:
displayName: example
exampleServicePrincipal:
type: azuread:ServicePrincipal
properties:
applicationId: ${exampleApplication.applicationId}
exampleRotating:
type: time:Rotating
properties:
rotationDays: 7
exampleServicePrincipalPassword:
type: azuread:ServicePrincipalPassword
properties:
servicePrincipalId: ${exampleServicePrincipal.objectId}
rotateWhenChanged:
rotation: ${exampleRotating.id}
Create ServicePrincipalPassword Resource
new ServicePrincipalPassword(name: string, args: ServicePrincipalPasswordArgs, opts?: CustomResourceOptions);
@overload
def ServicePrincipalPassword(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
end_date: Optional[str] = None,
end_date_relative: Optional[str] = None,
rotate_when_changed: Optional[Mapping[str, str]] = None,
service_principal_id: Optional[str] = None,
start_date: Optional[str] = None)
@overload
def ServicePrincipalPassword(resource_name: str,
args: ServicePrincipalPasswordArgs,
opts: Optional[ResourceOptions] = None)
func NewServicePrincipalPassword(ctx *Context, name string, args ServicePrincipalPasswordArgs, opts ...ResourceOption) (*ServicePrincipalPassword, error)
public ServicePrincipalPassword(string name, ServicePrincipalPasswordArgs args, CustomResourceOptions? opts = null)
public ServicePrincipalPassword(String name, ServicePrincipalPasswordArgs args)
public ServicePrincipalPassword(String name, ServicePrincipalPasswordArgs args, CustomResourceOptions options)
type: azuread:ServicePrincipalPassword
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServicePrincipalPasswordArgs
- 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 ServicePrincipalPasswordArgs
- 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 ServicePrincipalPasswordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServicePrincipalPasswordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServicePrincipalPasswordArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ServicePrincipalPassword 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 ServicePrincipalPassword resource accepts the following input properties:
- Service
Principal stringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- Display
Name string A display name for the password.
- End
Date string The end date until which the password 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.- End
Date stringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- Rotate
When Dictionary<string, string>Changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- Start
Date string The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
- Service
Principal stringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- Display
Name string A display name for the password.
- End
Date string The end date until which the password 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.- End
Date stringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- Rotate
When map[string]stringChanged A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- Start
Date string The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
- service
Principal StringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- display
Name String A display name for the password.
- end
Date String The end date until which the password 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.- end
Date StringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- rotate
When Map<String,String>Changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- start
Date String The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
- service
Principal stringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- display
Name string A display name for the password.
- end
Date string The end date until which the password 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.- end
Date stringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- rotate
When {[key: string]: string}Changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- start
Date string The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
- service_
principal_ strid The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- display_
name str A display name for the password.
- end_
date str The end date until which the password 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.- end_
date_ strrelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- rotate_
when_ Mapping[str, str]changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- start_
date str The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
- service
Principal StringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- display
Name String A display name for the password.
- end
Date String The end date until which the password 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.- end
Date StringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- rotate
When Map<String>Changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- start
Date String The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServicePrincipalPassword resource produces the following output properties:
Look up Existing ServicePrincipalPassword Resource
Get an existing ServicePrincipalPassword 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?: ServicePrincipalPasswordState, opts?: CustomResourceOptions): ServicePrincipalPassword
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
end_date: Optional[str] = None,
end_date_relative: Optional[str] = None,
key_id: Optional[str] = None,
rotate_when_changed: Optional[Mapping[str, str]] = None,
service_principal_id: Optional[str] = None,
start_date: Optional[str] = None,
value: Optional[str] = None) -> ServicePrincipalPassword
func GetServicePrincipalPassword(ctx *Context, name string, id IDInput, state *ServicePrincipalPasswordState, opts ...ResourceOption) (*ServicePrincipalPassword, error)
public static ServicePrincipalPassword Get(string name, Input<string> id, ServicePrincipalPasswordState? state, CustomResourceOptions? opts = null)
public static ServicePrincipalPassword get(String name, Output<String> id, ServicePrincipalPasswordState 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 A display name for the password.
- End
Date string The end date until which the password 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.- End
Date stringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- Key
Id string A UUID used to uniquely identify this password credential.
- Rotate
When Dictionary<string, string>Changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- Service
Principal stringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- Start
Date string The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.- Value string
The password for this service principal, which is generated by Azure Active Directory.
- Display
Name string A display name for the password.
- End
Date string The end date until which the password 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.- End
Date stringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- Key
Id string A UUID used to uniquely identify this password credential.
- Rotate
When map[string]stringChanged A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- Service
Principal stringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- Start
Date string The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.- Value string
The password for this service principal, which is generated by Azure Active Directory.
- display
Name String A display name for the password.
- end
Date String The end date until which the password 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.- end
Date StringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- key
Id String A UUID used to uniquely identify this password credential.
- rotate
When Map<String,String>Changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- service
Principal StringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- start
Date String The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.- value String
The password for this service principal, which is generated by Azure Active Directory.
- display
Name string A display name for the password.
- end
Date string The end date until which the password 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.- end
Date stringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- key
Id string A UUID used to uniquely identify this password credential.
- rotate
When {[key: string]: string}Changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- service
Principal stringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- start
Date string The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.- value string
The password for this service principal, which is generated by Azure Active Directory.
- display_
name str A display name for the password.
- end_
date str The end date until which the password 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.- end_
date_ strrelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- key_
id str A UUID used to uniquely identify this password credential.
- rotate_
when_ Mapping[str, str]changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- service_
principal_ strid The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- start_
date str The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.- value str
The password for this service principal, which is generated by Azure Active Directory.
- display
Name String A display name for the password.
- end
Date String The end date until which the password 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.- end
Date StringRelative A relative duration for which the password is valid until, for example
240h
(10 days) or2400h30m
. Changing this field forces a new resource to be created.- key
Id String A UUID used to uniquely identify this password credential.
- rotate
When Map<String>Changed A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
- service
Principal StringId The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
- start
Date String The start date from which the password is valid, formatted as an RFC3339 date string (e.g.
2018-01-01T01:02:03Z
). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.- value String
The password for this service principal, which is generated by Azure Active Directory.
Import
This resource does not support importing.
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.