To access Service Bus resources from other services, such as Functions or Logic Apps, we need to set up access permissions. In Service Bus, access permissions are configured using shared access policies. Shared access policies allow us to define the access rights for the entire Service Bus namespace, or separately for each service. After the access policy is configured, it generates a key-based connection string that will be used for the access.
By default, Service Bus will create a new RootManageSharedAccessKey policy which has management permissions over the entire namespace. We could continue using this policy, however, for security purposes, it is important to define the access policies with the least ...