Dr Schizo
Dr Schizo

Reputation: 4386

Get Service Principle ID from ARM Template

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

Answers (2)

DreadedFrost
DreadedFrost

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

Joey Cai
Joey Cai

Reputation: 20127

Get Service Principle ID from ARM Template

It seems that you could not get service principle id from ARM template. You could vote up this feedback to promote this features to be achieved.

Upvotes: 0

Related Questions