Agent Function Key Vault Role Assignment

Agent Function requires access to Key Vault created in Key Vault to encrypt policy and to access configuration secrets.

  1. From Azure console navigate to Key Vaults, select the Key Vault created in Key Vault.
  2. Select Access control (IAM).
  3. Click Add > Add role assignment.
  4. Under Role, search for and select Key Vault Crypto User.
  5. Under Members, select Managed identity and choose the function identity: a. For functions with user-assigned identity, select the identity recorded in step Agent Function User-Assigned Managed Identity. b. For functions with system-assigned identity, select the function name recorded in step Install Agent via ARM template.
  6. Click Review + assign.
  7. Repeat steps 3-6 to assign the Key Vault Secrets User role to the same identity.

Last modified : July 14, 2026