Class ApplicationPassword
Manages a Password associated with an Application within Azure Active Directory.
NOTE: If you're authenticating using a Service Principal then it must have permissions to both
Read and write all applicationsandSign in and read user profilewithin theWindows Azure Active DirectoryAPI.
Example Usage
using Pulumi;
using AzureAD = Pulumi.AzureAD;
class MyStack : Stack
{
public MyStack()
{
var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs
{
AvailableToOtherTenants = false,
Homepage = "http://homepage",
IdentifierUris =
{
"http://uri",
},
Oauth2AllowImplicitFlow = true,
ReplyUrls =
{
"http://replyurl",
},
});
var exampleApplicationPassword = new AzureAD.ApplicationPassword("exampleApplicationPassword", new AzureAD.ApplicationPasswordArgs
{
ApplicationId = exampleApplication.Id,
EndDate = "2099-01-01T01:02:03Z",
Value = "VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#",
});
}
}
Inherited Members
Namespace: Pulumi.AzureAD
Assembly: Pulumi.AzureAD.dll
Syntax
public class ApplicationPassword : CustomResource
Constructors
View SourceApplicationPassword(String, ApplicationPasswordArgs, CustomResourceOptions)
Create a ApplicationPassword resource with the given unique name, arguments, and options.
Declaration
public ApplicationPassword(string name, ApplicationPasswordArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ApplicationPasswordArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceApplicationId
Declaration
public Output<string> ApplicationId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ApplicationObjectId
The Object ID of the Application for which this password should be created. Changing this field forces a new resource to be created.
Declaration
public Output<string> ApplicationObjectId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EndDate
The End Date which the Password is valid until, formatted as a RFC3339 date string (e.g. 2018-01-01T01:02:03Z). Changing this field forces a new resource to be created.
Declaration
public Output<string> EndDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EndDateRelative
A relative duration for which the Password is valid until, for example 240h (10 days) or 2400h30m. Changing this field forces a new resource to be created.
Declaration
public Output<string> EndDateRelative { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyId
A GUID used to uniquely identify this Password. If not specified a GUID will be created. Changing this field forces a new resource to be created.
Declaration
public Output<string> KeyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StartDate
The Start Date which the Password is valid from, formatted as a 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.
Declaration
public Output<string> StartDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Value
The Password for this Application .
Declaration
public Output<string> Value { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ApplicationPasswordState, CustomResourceOptions)
Get an existing ApplicationPassword resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ApplicationPassword Get(string name, Input<string> id, ApplicationPasswordState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ApplicationPasswordState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ApplicationPassword |