Debug/AzurePrincipalWithCert.ps1
$vaultSubscriptionId = '[ID HERE]' Remove-Module -Name DevOpsFlex.Automation.PowerShell -ErrorAction SilentlyContinue -Verbose Import-Module $PSScriptRoot\..\DevOpsFlex.Automation.PowerShell.psd1 -Force -Verbose $azureAdApplication = New-AzurePrincipalWithCert -SystemName 'djfr' ` -PrincipalPurpose 'Authentication' ` -EnvironmentName 'test' ` -CertFolderPath 'D:\Certificates' ` -CertPassword 'djfrpwd' ` -VaultSubscriptionId $vaultSubscriptionId ` -PrincipalName 'Keyvault' $azureAdApplication | Remove-AzurePrincipalWithCert -VaultSubscriptionId $vaultSubscriptionId #Remove-AzurePrincipalWithCert -ADApplicationId '[ID HERE]' -VaultSubscriptionId $vaultSubscriptionId |