What is the correct sequence when creating a system-assigned identity for a Function App that needs Key Vault access?
- A Assign the role first, then enable the identity
- B Enable the identity, obtain its principal id, then create the role assignment (correct answer)
- C Create a service principal manually
- D Copy an existing identity
Shortcut: The identity must exist before it can be granted anything. Enabling it produces a principal id, which is then used as the target of the role assignment.