Added shortcodes, lots of improvements and content dump

This commit is contained in:
2022-06-07 13:54:07 +00:00
parent 6c98fcf57a
commit 9859c9e5ba
34 changed files with 448 additions and 59 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@@ -0,0 +1,18 @@
param([String]$tid='', [String]$app='')
if ($tid -eq '' or $app -eq '') {
$name = [Environment]::GetCommandLineArgs()[0]
Write-Host "Usage: pwsh $name -tid [tenant id] -app [app id]"
exit
}
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
if ((Get-module -ListAvailable -name 'AzureAD') -eq $null) {
Install-Module 'AzureAD' -Scope CurrentUser
}
Import-Module AzureAD
Connect-AzureAD -TenantID "$tid"
New-AzureADServicePrincipal -AppId "$app"