Last active
October 1, 2021 11:07
-
-
Save nichollsc81/990b3d45041621f9d2ea54b5885f85df to your computer and use it in GitHub Desktop.
Returns AAD Object_ID for given Az Web App
This file contains hidden or 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
#Requires -module az.websites | |
param( | |
$AppName = 'cirrus-a' | |
) | |
$App = [ordered]@{ | |
AppName = $AppName | |
AAD_ID = $((Get-AzWebApp | Where-Object Name -EQ $AppName).Identity.PrincipalId) | |
HostName = $((Get-AzWebApp | Where-Object Name -EQ $AppName).DefaultHostName) | |
} | |
$App | Format-Table -HideTableHeaders -AutoSize | |
'08f0d836-5849-441c-96ad-3a71f52a812a' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment