< Back

New-AzurePrincipalWithCert

Mon Jan 13, 2020 7:13 pm

NAME New-AzurePrincipalWithCert



SYNOPSIS

Adds AzureRM Active Directory Application and persists a cert to Key Vault for it.





SYNTAX

New-AzurePrincipalWithCert [-SystemName] <String> [-PrincipalPurpose] <String> [-EnvironmentName] <String>

[-CertFolderPath] <String> [-CertPassword] <String> [[-VaultSubscriptionId] <String>] [[-PrincipalName] <String>]

[<CommonParameters>]





DESCRIPTION

1. Creates a new Azure Active Directory Application

2. Creates a new cert in Azure Key Vault for the AAD Application.





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



-CertFolderPath <String>

Local path to where the cert will be created.



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CertPassword <String>

The password for the cert.



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-AzurePrincipalWithCert -SystemName 'sys1' `



-PrincipalPurpose 'Authentication' `

-EnvironmentName 'test' `

-CertFolderPath 'C:\\Certificates' `

-CertPassword 'something123$' `

-VaultSubscriptionId '[ID HERE]' `

-PrincipalName 'Keyvault'











RELATED LINKS