The minimal permission we need in the function is a Listen permission over the Service Bus namespace (currently cannot limit it to a particular queue).
To create the Listen Access Policy which we will use in the Azure Function, execute the following steps:
- Navigate to Service Bus Overview -> Shared Access Policies -> Add.
- Enter the Policy name as ListenPolicy, and check the Listen permission only:
- When the policy is created, we will need to copy the Email Queue connection string that we will use to access this queue in our function.
- To copy the connection string, navigate to Service Bus Namespace ...