使用 ARM 使用 MSI 设置 App Service 访问

Use ARM to setup App Service access using MSI

密钥保管库文档中列出了两个属性:

问题:

Should I be using objectId for the MSI principalId?

是的,您应该使用 MSI 的对象 ID。你可以用 Power Shell 得到它。例如:

Get-AzureRmADServicePrincipal -SearchString "azure-cli-2017-04-13-02-33-36"\

或在 Azure 门户上获取。

Is the concept of applicationId redudant when working with MSI. There's so much documentation on MSDN that I'm having a hard time figuring out which approach to take, and whether the concept of applicationId/secrets is redudant when using MSI.

当你创建MSI时,它会创建一个服务主体,applicationId是sp的应用程序id。

Is TenantId required?

是的,这是必需的。