Reputation: 4386
Is it possible to get the ServicePrincipleID
via an ARM Template? The examples I am seeing is I need to use some PowerShell to get it then inject it in as a parameter, is this still the case? Ultimately, I am trying to get the ServicePrincipleID
of an AD App and then assign it to an instance of KeyVault.
Upvotes: 1
Views: 1792
Reputation: 2998
Why not use Managed Service Identity Here is a link to a previous answer on how to accomplish this via ARM. Would have to pass in the name of the app service though
"principalId": "[reference(resourceId('Microsoft.Web/sites', variables('webSiteName')), '2018-02-01', 'Full').identity.principalId]"
Upvotes: 1