Using power-shell set/get System Identity for Azure Function App
#Connect to required Azure Subscription
write $subscriptionID
#Set System Identity for function app
Set-AzWebApp -AssignIdentity $true -Name "FuntionApp1" -ResourceGroupName "FuntionApp1"
#get system Identity for function app
$objectID = (Get-AzResource -Name FuntionApp1).Identity.PrincipalId
write $objectID
Comments
Post a Comment