Grant Azure resource permissions
Before you start
Prerequisite stages
Confirm the following stages have been completed:
Parameters
The following values from the parameters workbook are required:
- {DataLoader-Storage-Account}
- {Key-Vault-Name}
- {Web-App-Name}
- {Function-App-Name}
- {Deployment-Accounts}
Permission required
Use an account with the following permissions:
- Azure Administrator
Add role assignments
User with Owner or User Access Administrator role must execute these steps.
Data Loader Storage Account
The following roles should be assigned to the Data Loader Storage Account {DataLoader-Storage-Account}:
| Role | Assignee Type | Assignee |
|---|---|---|
| Contributor | Managed Identity | Function App {Function-App-Name} in parameters workbook. |
| Storage Queue Data Contributor | Managed Identity | Function App {Function-App-Name} in parameters workbook. |
| Storage Queue Data Contributor | Managed Identity | Web App {Web-App-Name} in parameters workbook. |
| Storage Blob Data Contributor | Managed Identity | Function App {Function-App-Name} in parameters workbook. |
| Storage Blob Data Contributor | Managed Identity | Web App {Web-App-Name} in parameters workbook. |
| Storage Blob Data Contributor | User | Deployment Account {Deployment-Accounts} in parameters workbook. |
| Storage Blob Data Contributor | User or group | Any user or a group in addition to {Deployment-Accounts} who will require access to storage accounts to manage data loader files (optional). |
Key Vault
The following roles should be assigned to the Key Vault resource {Key-Vault-Name}:
| Role | Assignee Type | Assignee |
|---|---|---|
| Key Vault Certificates Officer | User | Deployment Account {Deployment-Accounts} in parameters workbook. |
| Key Vault Crypto Officer | User | Deployment Account {Deployment-Accounts} in parameters workbook. |
| Key Vault Secrets Officer | User | Deployment Account {Deployment-Accounts} in parameters workbook. |
| Key Vault Secrets User | Managed Identity | Function App {Function-App-Name} in parameters workbook. |
| Key Vault Secrets User | Managed Identity | Web App {Web-App-Name} in parameters workbook. |
These roles allow the deployment account to read, create, update, and delete certificates, keys, and secrets in the Key Vault during deployment without granting full Key Vault administration rights.
See following link for Microsoft documentation on adding role assignments: https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal?tabs=delegate-condition The following steps should be executed for each role:
- Navigate to the Data Loader Storage Account or Key Vault resource in Azure
- Go to Access Control (IAM) -> Role assignments -> Add -> Add role assignment
- On Role tab select role (Contributor is under Privileged administrator roles section).
- On Members tab select Managed Identity or User, group, or service principal based on the assignee type.
- Press Select members.
- Select required members from the list. Repeat for each member. Press Select
- Go to Review + Assign and press Review + assign.