Created
May 4, 2023 06:23
-
-
Save moiaune/aca9dec568a018d65f1328ce303c424f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app = Get-AzADApplication -DisplayName $displayName | |
if (-not ($app)) { | |
Write-Verbose -Message "Azure Application was not found. Creating..." | |
$params = @{ | |
DisplayName = $displayName | |
SignInAudience = "AzureADMyOrg" | |
IsFallbackPublicClient = $true | |
} | |
$app = New-AzADApplication @params | |
Write-Verbose -Message "Azure Application created: $($app.AppId)" | |
} else { | |
Write-Verbose -Message ("App Registration {0} already exists" -f $displayName) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment