< Back
New-AzurePrincipalWithSecret
Post
NAME New-AzurePrincipalWithSecret
SYNOPSIS
Adds AzureRM Active Directory Application and persists secrets to Key Vault for it.
SYNTAX
New-AzurePrincipalWithSecret [-SystemName] <String> [-PrincipalPurpose] <String> [-EnvironmentName] <String>
[-PrincipalPassword] <String> [[-VaultSubscriptionId] <String>] [[-PrincipalName] <String>] [<CommonParameters>]
DESCRIPTION
1. Creates a new Azure Active Directory Application
2. Creates new secrets in Azure Key Vault for the AAD Application, namely the TenantId, IdentifierUri,
ApplicationId and Application Secret
PARAMETERS
-SystemName <String>
The system the application is for.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrincipalPurpose <String>
The purpose of the principal Authentication or Configuration.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-EnvironmentName <String>
The environment the application is for.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrincipalPassword <String>
The password for the principal.
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VaultSubscriptionId <String>
The subscription Id that Key Vault is on.
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrincipalName <String>
The name of the Key Vault principal.
Required? false
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Currently CmdletBinding doesn't have any internal support built-in.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-AzurePrincipalWithSecret -SystemName 'sys1' `
-PrincipalPurpose 'Authentication' `
-EnvironmentName 'test' `
-PrincipalPassword 'something123$' `
-VaultSubscriptionId '[ID HERE]' `
-PrincipalName 'test'
RELATED LINKS
SYNOPSIS
Adds AzureRM Active Directory Application and persists secrets to Key Vault for it.
SYNTAX
New-AzurePrincipalWithSecret [-SystemName] <String> [-PrincipalPurpose] <String> [-EnvironmentName] <String>
[-PrincipalPassword] <String> [[-VaultSubscriptionId] <String>] [[-PrincipalName] <String>] [<CommonParameters>]
DESCRIPTION
1. Creates a new Azure Active Directory Application
2. Creates new secrets in Azure Key Vault for the AAD Application, namely the TenantId, IdentifierUri,
ApplicationId and Application Secret
PARAMETERS
-SystemName <String>
The system the application is for.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrincipalPurpose <String>
The purpose of the principal Authentication or Configuration.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-EnvironmentName <String>
The environment the application is for.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrincipalPassword <String>
The password for the principal.
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VaultSubscriptionId <String>
The subscription Id that Key Vault is on.
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrincipalName <String>
The name of the Key Vault principal.
Required? false
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Currently CmdletBinding doesn't have any internal support built-in.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-AzurePrincipalWithSecret -SystemName 'sys1' `
-PrincipalPurpose 'Authentication' `
-EnvironmentName 'test' `
-PrincipalPassword 'something123$' `
-VaultSubscriptionId '[ID HERE]' `
-PrincipalName 'test'
RELATED LINKS