Added shortcodes, lots of improvements and content dump
This commit is contained in:
BIN
assets/apprentice/azure/api-permissions.png
Normal file
BIN
assets/apprentice/azure/api-permissions.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 225 KiB |
BIN
assets/apprentice/azure/app-registry.png
Normal file
BIN
assets/apprentice/azure/app-registry.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
18
assets/apprentice/azure/service-principal.ps1
Normal file
18
assets/apprentice/azure/service-principal.ps1
Normal 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"
|
Reference in New Issue
Block a user